/* ============================================================
   auth.css  —  Career Counseling Portal
   Central stylesheet for ALL auth/public pages:
   login.php · forgot_password.php · verify_reset_otp.php · reset_password.php

   HOW IT WORKS:
   - Har auth file ke <head> mein Tailwind ke BAAD:
       <link rel="stylesheet" href="assets/css/auth.css">
   - Local <style> block mein sirf truly page-specific CSS rakhein
   - Tailwind utility classes (bg-*, text-*, etc) waise hi rahein
   - Sirf CUSTOM components yahan hain — Tailwind replace nahi hoti

   SAME CONVENTION as panel-common.css:
   - Variables: --ac-* prefix (ac = auth)
   - Sections: §1 §2 §3 ... same style
   ============================================================ */


/* ============================================================
   §1  CSS VARIABLES
   1 jagah change = saari auth pages update
   ============================================================ */
:root {
    /* Brand — panel-common ke --cc-primary se match karta hai */
    --ac-primary:        #7e22ce;
  

    --ac-primary-dark:   #978989de;
    --ac-primary-mid:    #a855f7;
    --ac-primary-light:  #f3e8ff;
    --ac-primary-glow:   rgba(126,34,206,0.15);

    /* Neutrals — panel-common ke --cc-* se match */
    --ac-text-dark:      #111827;
    --ac-text-body:      #374151;
    --ac-text-muted:     #6b7280;
    --ac-text-ph:        #9ca3af;
    --ac-text-disabled:  #d1d5db;
    --ac-bg:             #ffffff;
    --ac-bg-soft:        #f9fafb;
    --ac-bg-page:        #f3f4f6;
    --ac-border:         #e5e7eb;
    --ac-border-input:   #d1d5db;
}


/* ============================================================
   §2  BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
body { font-family: 'Inter', sans-serif; }


/* ============================================================
   §3  BRAND LOGO
   login.php · forgot_password.php · verify_reset_otp.php · reset_password.php
   HTML: <a class="brand-logo"> ya <h2 class="brand-logo">
   ============================================================ */
.brand-logo {
    font-weight: 800;
    letter-spacing: -1px;
    text-decoration: none;
    background: linear-gradient(to right, var(--ac-primary), var(--ac-primary-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}
/* login.php mein thoda chota size */
.brand-logo.sm { font-size: 2rem; }
/* forgot/reset/verify mein bada */
.brand-logo.lg { font-size: 2.25rem; }


/* ============================================================
   §4  AUTH CARD
   Sab pages ka white card wrapper — same shape
   ============================================================ */
.auth-card {
    background: var(--ac-bg);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    padding: 32px;
    width: 100%;
    max-width: 384px;
    margin: 0 auto;
}


/* ============================================================
   §5  FORM ELEMENTS
   Custom inputs — Tailwind ke focus:ring replace karta hai
   ============================================================ */
.auth-input {
    display: block;
    width: 100%;
    padding: 10px 16px;
    border: 1.5px solid var(--ac-border);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--ac-text-dark);
    background: var(--ac-bg);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-top: 4px;
}
.auth-input:focus {
    border-color: var(--ac-primary);
    box-shadow: 0 0 0 3px var(--ac-primary-glow);
}
.auth-input[readonly],
.auth-input:disabled {
    background: var(--ac-bg-page);
    color: var(--ac-text-muted);
    cursor: not-allowed;
}

/* OTP input — verify pages */
.auth-input-otp {
    display: block;
    width: 100%;
    padding: 16px 24px;
    border: 1.5px solid var(--ac-border);
    border-radius: 8px;
    font-size: 1.875rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.25em;
    color: var(--ac-text-dark);
    background: var(--ac-bg);
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    margin-top: 4px;
}
.auth-input-otp:focus {
    border-color: var(--ac-primary);
    box-shadow: 0 0 0 3px var(--ac-primary-glow);
}

.auth-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--ac-text-body);
    margin-bottom: 4px;
}


/* ============================================================
   §6  BUTTONS
   panel-common ke btn-cc-primary jaisi — same feel, auth context
   ============================================================ */
.auth-btn-primary {
    display: block;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, var(--ac-primary), #9333ea);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(126,34,206,0.25);
    text-align: center;
}
.auth-btn-primary:hover {
    background: linear-gradient(135deg, var(--ac-primary-dark), var(--ac-primary));
    box-shadow: 0 6px 18px rgba(126,34,206,0.35);
    transform: translateY(-1px);
}
.auth-btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
}

/* Text links — "Back", "Forgot password", etc */
.auth-link {
    color: var(--ac-primary);
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s;
}
.auth-link:hover { color: var(--ac-primary-dark); }

.auth-link-underline {
    color: var(--ac-primary);
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s;
}
.auth-link-underline:hover { color: var(--ac-primary-dark); }
/* §6 BUTTONS ke andar add karo */
.auth-btn-link {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 0.875rem;
    color: var(--ac-primary);
    font-weight: 500;
    text-decoration: underline;
    transition: color 0.2s;
}
.auth-btn-link:hover { color: var(--ac-primary-dark); }

/* ============================================================
   §7  FLASH MESSAGES
   Error / success alerts — same style across all auth pages
   ============================================================ */
.auth-alert {
    padding: 14px 16px;
    border-radius: 8px;
    border-left: 4px solid;
    font-size: 0.875rem;
    margin-bottom: 20px;
}
.auth-alert-error {
    background: #fef2f2;
    border-color: #ef4444;
    color: #b91c1c;
}
.auth-alert-success {
    background: #f0fdf4;
    border-color: #22c55e;
    color: #15803d;
}


/* ============================================================
   §8  CAPTCHA  (login.php)
   ============================================================ */
.captcha-box {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--ac-bg-page);
    border: 1.5px solid var(--ac-border);
    border-radius: 10px;
    padding: 10px 14px;
}
.captcha-question {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ac-primary);
    white-space: nowrap;
    letter-spacing: 1px;
}
.captcha-eq {
    color: var(--ac-text-muted);
    font-weight: 600;
}
.captcha-input {
    width: 70px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
    border: 1.5px solid var(--ac-border-input);
    border-radius: 7px;
    padding: 6px 8px;
    outline: none;
    transition: border-color 0.2s;
}
.captcha-input:focus { border-color: var(--ac-primary); }
.captcha-refresh {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: var(--ac-text-ph);
    font-size: 1rem;
    line-height: 1;
    transition: color 0.2s;
}
.captcha-refresh:hover { color: var(--ac-primary); }
/* §8 ke andar, captcha-refresh ke baad add karo */
@media (max-width: 480px) {
    .captcha-box {
        flex-wrap: wrap;
        gap: 8px;
        padding: 10px 12px;
    }
    .captcha-input {
        width: 60px;
    }
}

/* ============================================================
   §9  FORM SECTION TOGGLE  (login.php — signup/signin switch)
   ============================================================ */
.form-section        { display: none; }
.form-section.active { display: block; }
.hidden              { display: none !important; }


/* ============================================================
   §10  RESPONSIVE
   ============================================================ */
@media (max-width: 480px) {
    .auth-card { padding: 24px 20px; border-radius: 12px; }
    .brand-logo.lg { font-size: 1.9rem; }
    .brand-logo.sm { font-size: 1.75rem; }
    .auth-input-otp { font-size: 1.5rem; padding: 12px 16px; }
}

/* ============================================================
   §11  SPLIT-SCREEN LAYOUT  (login.php only)
   ============================================================ */
.auth-split-wrapper {
    display: flex;
    min-height: 100vh;
    width: 100%;
    overflow: hidden;
}

/* LEFT — form directly on page, no card */
/* NEW */
.auth-split-left {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40%;
    min-height: 100vh;
    background: #ffffff;
    padding: 16px 40px;
    position: relative;
    z-index: 2;
    overflow-y: auto;
    box-shadow: none;
}

/* NEW */
.auth-split-right {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: fixed;
    top: 0;
    right: 0;
    width: 60%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
background: linear-gradient(160deg, var(--ac-primary) 10%, #1565c0  40%, var(--ac-primary) 110%);
}

.auth-split-right .auth-right-overlay {
    display: none;
}




/* Blue panel content */
.auth-left-panel-content {
    position: relative;
    z-index: 2;
    padding: 40px;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: 100%;
    width: 100%;
}
.auth-left-panel-content .panel-logo {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    opacity: 0.9;
    margin-bottom: 48px;
}
.auth-left-panel-content .panel-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}
.auth-left-panel-content .panel-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.auth-left-panel-content .panel-bullets li {
    font-size: 0.875rem;
    opacity: 0.85;
    padding-left: 20px;
    position: relative;
}
.auth-left-panel-content .panel-bullets li::before {
    content: '•';
    position: absolute;
    left: 0;
    opacity: 0.6;
}
.auth-panel-illustration {
    width: 100%;
    max-width: 340px;
    margin: 0 auto;
    display: block;
}
/* ============================================================
   §12  RESPONSIVE — ALL BREAKPOINTS
   ============================================================ */
@media (max-width: 1024px) {
    .auth-split-wrapper {
        flex-direction: column;
        position: relative;
    }

    /* Form panel — SVG ke upar, semi-transparent dark overlay */
  /* NEW */

.auth-split-left {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: 100vh;
    padding: 36px 28px;
    background: transparent;
}


  /* NEW */
.auth-split-right {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    order: -1;
    z-index: 0;
}
.auth-split-right .auth-left-panel-content {
    justify-content: flex-end;
    padding-bottom: 0;
}

.auth-split-right .panel-logo,
.auth-split-right .panel-title,
.auth-split-right .panel-bullets {
    display: none;
}

.auth-split-right .auth-panel-illustration {
    max-width: 280px;
    opacity: 0.25;
    position: fixed;
    bottom: 0;
    right: 0;
    margin: 0;
}
    /* ── TEXT COLORS — dark bg pe white ── */
    .auth-split-left .text-gray-700,
    .auth-split-left label,
    .auth-split-left .block { color: rgba(255,255,255,0.85) !important; }

    .auth-split-left .text-gray-500,
    .auth-split-left .text-gray-600,
    .auth-split-left .text-gray-400,
    .auth-split-left .text-muted,
    .auth-split-left .text-xs { color: rgba(255,255,255,0.5) !important; }

    /* ── INPUTS ── */
.auth-split-left .auth-input {
    background: rgba(255,255,255,0.62) !important;
    border-color: rgba(255,255,255,0.40) !important;
    color: #ffffff !important;
}
.auth-split-left .auth-input::placeholder {
    color: rgba(255,255,255,0.75) !important;
}
    .auth-split-left .auth-input:focus {
        border-color: #a855f7 !important;
        box-shadow: 0 0 0 3px rgba(168,85,247,0.2) !important;
    }

    /* ── CAPTCHA ── */
    .auth-split-left .captcha-box {
        background: rgba(255,255,255,0.06) !important;
        /* border-color: rgba(168,85,247,0.35) !important; */
    }
  .auth-split-left .captcha-input {
    background: rgba(255,255,255,0.62) !important;
    border-color: rgba(255,255,255,0.40) !important;
    color: #ffffff !important;
}

    /* ── FLASH ALERTS ── */
    .auth-split-left .auth-alert-error {
        background: rgba(239,68,68,0.15) !important;
        color: #fca5a5 !important;
    }
    .auth-split-left .auth-alert-success {
        background: rgba(34,197,94,0.15) !important;
        color: #86efac !important;
    }
/* ── TOGGLE TEXT ── */
#toggle-text,
#toggle-text a {
    color: rgba(255,255,255,0.90) !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.5);
}


/* ── FORGOT PASSWORD LINK — small screens ── */
.auth-split-left .auth-link-underline,
.auth-split-left .auth-link {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
    /* ── MISC ── */
    .auth-card { padding: 20px 16px; border-radius: 10px; }
    .brand-logo.sm { font-size: 1.75rem; }
    .auth-input-otp { font-size: 1.5rem; padding: 12px 16px; }

    /* ── LOGO GLOW — dark bg pe ── */
.auth-split-left .auth-logo {
    filter: drop-shadow(0 0 6px rgba(255,255,255,1))
            drop-shadow(0 0 15px rgba(255,255,255,0.95))
            drop-shadow(0 0 35px rgba(255,255,255,0.80))
            drop-shadow(0 0 60px rgba(255,255,255,0.50))
            drop-shadow(0 0 90px rgba(255,255,255,0.25));
}
    
}

.auth-heading-glow {
    background: linear-gradient(to right, var(--ac-primary), var(--ac-primary-mid));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

@media (max-width: 1024px) {
    .auth-heading-glow {
        background: none;
        -webkit-background-clip: unset;
        -webkit-text-fill-color: #ffffff;
        background-clip: unset;
        filter: none;
        color: #ffffff;
    }
    /* Purple links — auth-link, auth-btn-link small screens pe white glow */
    .auth-split-left .auth-link,
    .auth-split-left .auth-link-underline,
    .auth-split-left .auth-btn-link {
        filter: drop-shadow(0 0 6px rgba(255,255,255,0.8))
                drop-shadow(0 0 15px rgba(255,255,255,0.4));
    }
}
