/* Auth Page Styles */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    padding: 2rem;
}

.auth-container {
    position: relative;
    width: 100%;
    max-width: 440px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-2xl);
    padding: 2.5rem;
    position: relative;
    z-index: 1;
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header .logo {
    display: inline-flex;
    margin-bottom: 1.5rem;
}

.auth-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: var(--gray-500);
}

/* Tabs */
.auth-tabs {
    display: flex;
    background: var(--gray-100);
    border-radius: var(--radius-lg);
    padding: 0.25rem;
    margin-bottom: 1.5rem;
}

.auth-tab {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-500);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.auth-tab.active {
    background: var(--white);
    color: var(--gray-900);
    box-shadow: var(--shadow-sm);
}

.auth-tab:hover:not(.active) {
    color: var(--gray-700);
}

/* Forms */
.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.3s ease;
}

.password-input-wrapper {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    padding: 0.25rem;
}

.password-toggle:hover {
    color: var(--gray-600);
}

.eye-icon {
    width: 20px;
    height: 20px;
}

.form-hint {
    display: block;
    font-size: 0.8125rem;
    color: var(--gray-400);
    margin-top: 0.375rem;
}

.form-error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    min-height: 1.25rem;
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
    color: var(--gray-400);
    font-size: 0.875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span {
    padding: 0 1rem;
}

/* Loading */
.btn-loader {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner-small {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* Decorations */
.auth-decoration {
    position: absolute;
    inset: -50px;
    pointer-events: none;
    overflow: hidden;
    z-index: 0;
}

.decoration-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.6;
}

.decoration-1 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, var(--primary-200), var(--primary-100));
    top: -100px;
    right: -50px;
}

.decoration-2 {
    width: 150px;
    height: 150px;
    background: linear-gradient(135deg, #a855f7, #ec4899);
    opacity: 0.3;
    bottom: -50px;
    left: -50px;
}

.decoration-3 {
    width: 100px;
    height: 100px;
    background: var(--accent-400);
    opacity: 0.4;
    top: 50%;
    left: -30px;
}

@media (max-width: 480px) {
    .auth-page {
        padding: 1rem;
    }

    .auth-card {
        padding: 1.5rem;
    }
}