/**
 * TeacherAI WooCommerce Login Styling
 * 
 * PURPOSE: Brand the /my-account/ login page with purple gradient magic
 * CREATED: Claude 241 + Claude 240 (Advisor) + Tony | January 10, 2026
 * TEAM TEACHAI FOREVER! 💜
 */

/* ===== NUCLEAR GRADIENT - OVERRIDE EVERYTHING ===== */
html body.woocommerce-account:not(.logged-in),
html body.woocommerce-account:not(.logged-in) .site,
html body.woocommerce-account:not(.logged-in) #page {
    background: linear-gradient(135deg, #38bdf8 0%, #8b5cf6 100%) !important;
    min-height: 100vh !important;
}

/* Hide header/footer */
html body.woocommerce-account:not(.logged-in) header,
html body.woocommerce-account:not(.logged-in) footer,
html body.woocommerce-account:not(.logged-in) .site-header,
html body.woocommerce-account:not(.logged-in) .site-footer {
    display: none !important;
}

/* Hide "Login" text */
html body.woocommerce-account:not(.logged-in) .entry-header,
html body.woocommerce-account:not(.logged-in) .page-title,
html body.woocommerce-account:not(.logged-in) .woocommerce > h2 {
    display: none !important;
}

/* Center content */
html body.woocommerce-account:not(.logged-in) .site-content,
html body.woocommerce-account:not(.logged-in) .content-area,
html body.woocommerce-account:not(.logged-in) main,
html body.woocommerce-account:not(.logged-in) .woocommerce {
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    min-height: 100vh !important;
    padding: 2rem !important;
    background: transparent !important;
}

/* ===== SPARKLE LOGO ===== */
html body.woocommerce-account:not(.logged-in) .woocommerce-form-login::before {
    content: '' !important;
    display: block !important;
    width: 80px !important;
    height: 80px !important;
    background-image: url('/wp-content/themes/teacherai/assets/images/teacherai-logo.svg') !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    margin: 0 auto 1.5rem auto !important;
}

/* ===== FORM BOX ===== */
html body.woocommerce-account:not(.logged-in) .woocommerce-form-login {
    background: white !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
    padding: 2rem !important;
    width: 100% !important;
    max-width: 400px !important;
}

/* ===== INPUTS ===== */
html body.woocommerce-account:not(.logged-in) .woocommerce-form-login input[type="text"],
html body.woocommerce-account:not(.logged-in) .woocommerce-form-login input[type="password"],
html body.woocommerce-account:not(.logged-in) .woocommerce-form-login input[type="email"] {
    width: 100% !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 8px !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
}

html body.woocommerce-account:not(.logged-in) .woocommerce-form-login input:focus {
    border-color: #8b5cf6 !important;
    box-shadow: 0 0 0 3px rgba(139, 92, 246, 0.2) !important;
    outline: none !important;
}

/* ===== BUTTON ===== */
html body.woocommerce-account:not(.logged-in) .woocommerce-form-login button[type="submit"] {
    background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
    border: none !important;
    border-radius: 8px !important;
    padding: 12px 24px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: white !important;
    box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3) !important;
}

/* ===== LOST PASSWORD - PURPLE LINK ===== */
html body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword {
    text-align: center !important;
    margin-top: 1rem !important;
}

html body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword a {
    color: #8b5cf6 !important;
    text-decoration: none !important;
    font-size: 14px !important;
}

html body.woocommerce-account:not(.logged-in) .woocommerce-LostPassword a:hover {
    text-decoration: underline !important;
}

/* ===== LOGGED IN STATE - RESET ===== */
html body.woocommerce-account.logged-in {
    background: #f8fafc !important;
}