/**
 * Member Login Page
 *
 * Branded auth page using Hypotential design system.
 * Dark hero header, card-based form, gold accents.
 *
 * @package Hypotential
 * @since 1.4.0
 */


/* ==========================================================================
   1. Hero Header
   ========================================================================== */

.auth-hero {
    background: var(--color-black, #000);
    padding: 3.5rem 1.5rem 3rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.auth-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 120%, rgba(201, 162, 39, 0.12) 0%, transparent 65%);
    pointer-events: none;
}

.auth-hero__inner {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.auth-hero__logo {
    display: inline-block;
    margin-bottom: 1.75rem;
}

.auth-hero__logo img {
    max-width: 160px;
    height: auto;
}

.auth-hero__heading {
    font-family: var(--font-heading, 'Eurostile', sans-serif);
    font-weight: 800;
    font-size: clamp(1.5rem, 3.5vw, 2rem);
    color: var(--color-white, #fff);
    margin: 0 0 0.625rem;
    letter-spacing: -0.01em;
}

.auth-hero__subheading {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.65);
    margin: 0;
    line-height: 1.6;
}

.auth-hero__accent {
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-gold, #D4AF37);
    border-radius: 2px;
    margin: 1rem auto 0;
}


/* ==========================================================================
   2. Layout — fill viewport so off-white runs to the footer
   ========================================================================== */

/* Seamless off-white background from auth-body through to footer */
.page-template-page-member-login {
    background-color: var(--color-light-gray, #F5F5F5);
}

.page-template-page-member-login .site-main {
    min-height: 0;
}

.auth-body {
    background: var(--color-light-gray, #F5F5F5);
    padding: 3rem 1rem 4rem;
}

.auth-wrap {
    max-width: 460px;
    margin: 0 auto;
}

.auth-card {
    background: var(--color-white, #fff);
    border-radius: 0 0 12px 12px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.auth-card__body {
    padding: 2rem 2.5rem 2.5rem;
}


/* ==========================================================================
   3. Messages
   ========================================================================== */

.auth-message {
    padding: 0.875rem 1.25rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-family: var(--font-body, 'Poppins', sans-serif);
    margin-bottom: 1.5rem;
    line-height: 1.5;
}

.auth-message--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.auth-message--success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
}


/* ==========================================================================
   4. Form Elements
   ========================================================================== */

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.auth-label {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-black, #000);
}

.auth-input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 1rem;
    padding: 0.875rem 1rem;
    color: var(--color-black, #000);
    background: var(--color-white, #fff);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.auth-input:focus {
    outline: none;
    border-color: var(--color-gold, #D4AF37);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.15);
}

.auth-input::placeholder {
    color: #999;
}


/* ==========================================================================
   5. Password Field with Toggle
   ========================================================================== */

.auth-password-wrap {
    position: relative;
}

.auth-password-wrap .auth-input {
    padding-right: 3rem;
}

.auth-password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--color-medium-gray, #666);
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: color 0.2s ease;
}

.auth-password-toggle:hover {
    color: var(--color-gold, #D4AF37);
}


/* ==========================================================================
   6. Remember Me & Forgot Password
   ========================================================================== */

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.auth-remember {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 0.875rem;
    color: var(--color-dark-gray, #3B3B3A);
    cursor: pointer;
}

.auth-remember input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--color-gold, #D4AF37);
    cursor: pointer;
}

.auth-forgot {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 0.875rem;
    color: var(--color-dark-gray, #3B3B3A);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.auth-forgot:hover {
    color: var(--color-gold, #D4AF37);
}


/* ==========================================================================
   7. Submit Button
   ========================================================================== */

.auth-submit {
    display: block;
    width: 100%;
    background: var(--color-gold, #D4AF37);
    color: var(--color-black, #000);
    border: 2px solid var(--color-gold, #D4AF37);
    border-radius: 8px;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-weight: 700;
    font-size: 1rem;
    padding: 0.875rem 1.5rem;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    text-align: center;
    margin-top: 0.25rem;
}

.auth-submit:hover {
    background: var(--color-gold-dark, #96762F);
    border-color: var(--color-gold-dark, #96762F);
    color: var(--color-white, #fff);
}

.auth-submit:active {
    transform: translateY(1px);
}


/* ==========================================================================
   8. Auth Switch (register link)
   ========================================================================== */

.auth-switch {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid #eee;
    margin-top: 1.5rem;
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 0.875rem;
    color: var(--color-medium-gray, #666);
}

.auth-switch a {
    color: var(--color-gold, #D4AF37);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-switch a:hover {
    color: var(--color-gold-dark, #96762F);
    text-decoration: underline;
}


/* ==========================================================================
   9. Auth Links (back to login, etc.)
   ========================================================================== */

.auth-links {
    text-align: center;
}

.auth-links a {
    font-family: var(--font-body, 'Poppins', sans-serif);
    font-size: 0.875rem;
    color: var(--color-dark-gray, #3B3B3A);
    text-decoration: underline;
    transition: color 0.2s ease;
}

.auth-links a:hover {
    color: var(--color-gold, #D4AF37);
}


/* ==========================================================================
   10. Responsive
   ========================================================================== */

@media (max-width: 480px) {
    .auth-hero {
        padding: 2.5rem 1.25rem 2rem;
    }

    .auth-hero__heading {
        font-size: 1.4rem;
    }

    .auth-card__body {
        padding: 1.5rem 1.25rem 2rem;
    }

    .auth-options {
        flex-direction: column;
        align-items: flex-start;
    }
}
