/* ========================================
   Auth Pages (Login, Registro, Activacion)
   2026 Premium Redesign — Gold Accent
   ======================================== */

.auth-page {
    min-height: calc(100vh - var(--nav-height));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-3xl) var(--space-md);
    margin-top: var(--nav-height);
    background: var(--color-bg);
}

.auth-card {
    width: 100%;
    max-width: 480px;
    background: var(--color-white);
    border-radius: 16px;
    padding: var(--space-2xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 1px 4px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(255, 215, 0, 0.14);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #FFD700 0%, #FFA500 50%, #FFD700 100%);
}

.auth-card--wide {
    max-width: 540px;
}

.auth-card__logo {
    display: block;
    width: 120px;
    height: auto;
    margin: 0 auto var(--space-xl);
    filter: drop-shadow(0 2px 8px rgba(255, 215, 0, 0.18));
}

.auth-card__title {
    text-align: center;
    font-size: var(--font-size-2xl);
    font-weight: 800;
    margin-bottom: var(--space-xs);
    letter-spacing: -0.02em;
}

.auth-card__subtitle {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    margin-bottom: var(--space-2xl);
    line-height: 1.5;
}

.auth-card__footer {
    text-align: center;
    margin-top: var(--space-xl);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--color-border-light);
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
}

.auth-card__footer a {
    color: #b8860b;
    font-weight: 600;
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.auth-card__footer a:hover {
    color: var(--color-gold-hover);
    text-decoration: underline;
}

/* Success state after login/register */
.auth-success {
    text-align: center;
    display: none;
}

.auth-success__icon {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: rgba(40, 167, 69, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-lg);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-success__icon svg {
    width: 32px;
    height: 32px;
    color: var(--color-success);
}

.auth-success h3 {
    font-size: var(--font-size-xl);
    font-weight: 800;
    margin-bottom: var(--space-sm);
    letter-spacing: -0.02em;
}

.auth-success p {
    color: var(--color-text-muted);
    margin-bottom: var(--space-lg);
    line-height: 1.5;
}

.auth-success__actions {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
}

/* Forgot password / auth links */
.auth-links {
    margin-top: calc(-1 * var(--space-xs));
    margin-bottom: var(--space-lg);
}

.auth-forgot {
    display: block;
    text-align: right;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: calc(-1 * var(--space-sm));
    margin-bottom: var(--space-lg);
    transition: color 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-forgot:hover {
    color: #b8860b;
}

/* Form focus enhancements for auth pages */
.auth-card .form-input:focus {
    border-color: #FFD700;
    box-shadow: 0 0 0 4px rgba(255, 215, 0, 0.15), 0 1px 3px rgba(255, 215, 0, 0.1);
}

.auth-card .form-input {
    border-radius: 14px;
    transition: border-color 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card .btn--gold {
    border-radius: 16px;
    font-weight: 700;
    letter-spacing: 0.02em;
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.3);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s cubic-bezier(0.4, 0, 0.2, 1), filter 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card .btn--gold:hover {
    box-shadow: 0 8px 28px rgba(255, 215, 0, 0.4);
}

.auth-card .btn--outline {
    border-radius: 16px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Password toggle in auth context */
.auth-card .password-toggle {
    transition: color 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-card .password-toggle:hover {
    color: #b8860b;
}

/* Checkbox gold accent */
.auth-card .form-check input[type="checkbox"]:checked {
    accent-color: #b8860b;
}

/* Loading spinner for buttons */
.btn--loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

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

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

/* Alert styling in auth */
.auth-card .alert {
    border-radius: 14px;
}

/* Responsive - Tablet */
@media (max-width: 768px) {
    .auth-page {
        padding: var(--space-xl) var(--space-md);
    }

    .auth-card {
        padding: var(--space-xl);
        border-radius: 14px;
    }

    .auth-card__title {
        font-size: var(--font-size-xl);
    }

    .auth-card__logo {
        width: 100px;
    }
}

/* Responsive - Small phones */
@media (max-width: 480px) {
    .auth-page {
        padding: var(--space-lg) var(--space-sm);
    }

    .auth-card {
        padding: var(--space-lg);
        border-radius: 12px;
    }

    .auth-card--wide {
        max-width: 100%;
    }

    .auth-card__title {
        font-size: var(--font-size-lg);
    }

    .auth-card__subtitle {
        margin-bottom: var(--space-lg);
    }

    .auth-card__logo {
        width: 80px;
        margin-bottom: var(--space-lg);
    }
}
