/* Auth Pages */
.auth-page {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: calc(100vh - var(--header-height) - 120px);
    padding: 40px 24px;
}

.auth-card {
    width: 100%;
    max-width: 420px;
    background: var(--card-bg);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--border-light);
}

.auth-card h1 {
    font-size: 1.5rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 8px;
    letter-spacing: -0.03em;
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 32px;
}

/* Google Button */
.btn-google {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition);
    color: var(--text-color);
    font-family: inherit;
}

.btn-google:hover {
    background: var(--border-light);
    border-color: var(--text-light);
}

.btn-google svg {
    width: 20px;
    height: 20px;
}

/* Password toggle */
.password-wrapper {
    position: relative;
}

.password-wrapper .form-input {
    padding-right: 44px;
}

.btn-password-toggle {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    padding: 4px;
    display: flex;
    align-items: center;
    transition: color var(--transition);
}

.btn-password-toggle:hover {
    color: var(--text-color);
}

/* Auth footer links */
.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.875rem;
    color: var(--text-muted);
}

.auth-footer a {
    color: var(--text-color);
    font-weight: 600;
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    text-underline-offset: 2px;
    transition: text-decoration-color var(--transition);
}

.auth-footer a:hover {
    text-decoration-color: var(--text-color);
}

/* Success state */
.auth-success {
    text-align: center;
    padding: 20px 0;
}

.auth-success-icon {
    color: var(--text-color);
    margin-bottom: 16px;
}

.auth-success h2 {
    font-size: 1.25rem;
    margin-bottom: 8px;
    letter-spacing: -0.02em;
}

.auth-success p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: 24px;
}

/* Loading state for buttons */
.btn-loading {
    position: relative;
    pointer-events: none;
    opacity: 0.7;
}

.btn-loading .btn-text {
    visibility: hidden;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btn-spin 0.6s linear infinite;
}

@keyframes btn-spin {
    to { transform: rotate(360deg); }
}

@media (max-width: 480px) {
    .auth-card {
        padding: 32px 20px;
    }
}
