/* ============================================================
   student_login.css — Green Mount Academy Student Portal
   Theme  : Main website green (#0f6b3e) — NOT the teal palette
   Font   : Poppins (same as main website header.css)
   Mobile : 100vw full-screen card, desktop: centered two-panel
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800&family=Playfair+Display:wght@600;700&display=swap');

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
    --green:      #0f6b3e;
    --green-dk:   #0a4d2c;
    --green-mid:  #1a8a52;
    --green-lt:   #e8f5ee;
    --green-100:  #c6e9d6;
    --green-200:  #8fd4b0;

    --accent:     #f5a623;
    --cream:      #f4f6f4;
    --white:      #ffffff;

    --text:       #1a2e1e;
    --text-mid:   #3d5c45;
    --text-lt:    #7a9e85;
    --border:     #c6e9d6;

    --shadow-sm:  0 2px 8px  rgba(15,107,62,.10);
    --shadow-md:  0 8px 32px rgba(15,107,62,.15);
    --shadow-lg:  0 24px 64px rgba(15,107,62,.20);

    --radius:     18px;
    --radius-sm:  11px;
    --radius-xs:  8px;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    background: var(--cream);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* decorative background blobs */
body::before,
body::after {
    content: '';
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    opacity: .15;
    animation: blobDrift 14s ease-in-out infinite alternate;
}
body::before {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--green-200), var(--green-100));
    top: -160px; left: -160px;
    filter: blur(90px);
}
body::after {
    width: 400px; height: 400px;
    background: radial-gradient(circle, var(--green-100), var(--green-lt));
    bottom: -120px; right: -120px;
    filter: blur(80px);
    animation-delay: -7s;
}
@keyframes blobDrift {
    from { transform: translate(0, 0) scale(1); }
    to   { transform: translate(40px, 40px) scale(1.1); }
}

.full-tab {
    width: 100%;
    max-width: 980px;
    min-height: 600px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    position: relative;
    z-index: 1;
    margin: 24px 16px;
}
/* ── LEFT PANEL ──────────────────────────────────────────── */
.left-panel {
    background: linear-gradient(155deg, var(--green-dk) 0%, var(--green) 55%, var(--green-mid) 100%);
    padding: 52px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

/* decorative circles inside left panel */
.left-panel::before {
    content: '';
    position: absolute;
    width: 280px; height: 280px;
    border-radius: 50%;
    background: rgba(255,255,255,.06);
    top: -80px; right: -80px;
}
.left-panel::after {
    content: '';
    position: absolute;
    width: 180px; height: 180px;
    border-radius: 50%;
    background: rgba(255,255,255,.05);
    bottom: -50px; left: -50px;
}

.lp-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}
.lp-logo img {
    width: 44px; height: 44px;
    object-fit: contain;
}
.lp-logo-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}
.lp-logo-text span {
    font-size: .75rem;
    opacity: .75;
    font-weight: 400;
}

.lp-headline {
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 14px;
    position: relative;
    z-index: 1;
}
.lp-headline em {
    font-style: normal;
    color: var(--green-200);
}

.lp-tagline {
    font-size: .88rem;
    opacity: .82;
    line-height: 1.7;
    margin-bottom: 36px;
    position: relative;
    z-index: 1;
}

.feature-list {
    list-style: none;
    position: relative;
    z-index: 1;
}
.feature-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .875rem;
    margin-bottom: 14px;
    opacity: .92;
}
.feature-list li i {
    width: 34px; height: 34px;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    border: 1px solid rgba(255,255,255,.2);
    display: flex; align-items: center; justify-content: center;
    font-size: .9rem;
    flex-shrink: 0;
}

/* ── RIGHT PANEL ─────────────────────────────────────────── */
.right-panel {
    background: var(--white);
    position: relative;
    overflow: hidden;
}

/* ── PANEL SLIDE SYSTEM ──────────────────────────────────── */
.log-sin-tab {
    position: absolute;
    inset: 0;
    padding: 40px 44px;
    overflow-y: auto;
    transition: transform .42s cubic-bezier(.77,0,.175,1), opacity .42s ease;
    will-change: transform, opacity;
}

.log-sin-tab.active { transform: translateX(0);    opacity: 1; pointer-events: all; }
.log-sin-tab.left   { transform: translateX(-100%); opacity: 0; pointer-events: none; }
.log-sin-tab.right  { transform: translateX(100%);  opacity: 0; pointer-events: none; }

/* scrollbar */
.log-sin-tab::-webkit-scrollbar { width: 4px; }
.log-sin-tab::-webkit-scrollbar-thumb { background: var(--green-100); border-radius: 2px; }

/* ── PANEL HEADER ────────────────────────────────────────── */
.panel-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.65rem; font-weight: 700;
    color: var(--text); margin-bottom: 4px;
}
.panel-sub {
    font-size: .86rem; color: var(--text-lt);
    margin-bottom: 28px; line-height: 1.5;
}

/* ── AUTH TABS (Login / Sign Up) ─────────────────────────── */
.change-buttons {
    display: flex;
    background: var(--green-lt);
    border-radius: var(--radius-sm);
    border: 1.5px solid var(--border);
    padding: 4px; gap: 4px;
    margin-bottom: 28px;
}
.change-button {
    flex: 1; text-align: center;
    padding: 8px 12px; border-radius: 8px;
    font-size: .875rem; font-weight: 600;
    cursor: pointer; color: var(--text-lt);
    transition: background .2s, color .2s, box-shadow .2s;
    user-select: none;
}
.change-button.active {
    background: var(--white); color: var(--green);
    box-shadow: var(--shadow-sm);
}

/* ── FORM ELEMENTS ───────────────────────────────────────── */
.form-label {
    font-size: .78rem; font-weight: 700;
    color: var(--text-mid);
    text-transform: uppercase; letter-spacing: .06em;
    margin-bottom: 6px; display: block;
}

.form-control,
.form-select {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    padding: 10px 14px;
    font-size: .9rem;
    font-family: 'Poppins', sans-serif;
    color: var(--text);
    background: var(--green-lt);
    transition: border-color .2s, box-shadow .2s, background .2s;
}
.form-control:focus,
.form-select:focus {
    border-color: var(--green);
    box-shadow: 0 0 0 3px rgba(15,107,62,.14);
    background: var(--white);
    outline: none;
}
.form-control::placeholder { color: var(--text-lt); }

/* input group */
.input-group-text {
    background: var(--green-lt);
    border: 1.5px solid var(--border);
    border-right: none;
    border-radius: var(--radius-xs) 0 0 var(--radius-xs) !important;
    color: var(--green);
}
.input-group .form-control {
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0 !important;
    border-left: none;
}
.input-group .form-control:focus { border-color: var(--green); }
.input-group:focus-within .input-group-text {
    border-color: var(--green); background: var(--white);
}

/* eye toggle */
.eye-btn {
    background: var(--green-lt);
    border: 1.5px solid var(--border);
    border-left: none;
    border-radius: 0 var(--radius-xs) var(--radius-xs) 0 !important;
    color: var(--text-lt); cursor: pointer;
    padding: 0 12px;
    transition: color .2s;
}
.eye-btn:hover { color: var(--green); }

/* ── PASSWORD STRENGTH ───────────────────────────────────── */
.strength-bar {
    height: 4px; border-radius: 2px;
    background: var(--green-100); overflow: hidden; margin-top: 6px;
}
.strength-fill {
    height: 100%; border-radius: 2px; width: 0;
    transition: width .3s ease, background .3s ease;
}

/* ── STEP DOTS ───────────────────────────────────────────── */
.step-dots { display: flex; gap: 8px; margin-bottom: 22px; }
.step-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--green-100);
    transition: background .3s, width .3s;
}
.step-dot.active {
    background: var(--green); width: 24px; border-radius: 4px;
}

/* ── ALERT BOX ───────────────────────────────────────────── */
.alert-box {
    border-radius: var(--radius-xs);
    font-size: .86rem; padding: 10px 14px;
    display: none; margin-bottom: 16px;
    font-weight: 500; line-height: 1.5;
}
.alert-box.error   { background: #fef2f2; border: 1.5px solid #fca5a5; color: #b91c1c; }
.alert-box.success { background: #f0fdf4; border: 1.5px solid #86efac; color: #166534; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn-main {
    width: 100%; padding: 11px 24px;
    background: linear-gradient(135deg, var(--green), var(--green-mid));
    border: none; border-radius: var(--radius-xs);
    color: var(--white); font-family: 'Poppins', sans-serif;
    font-weight: 700; font-size: .92rem;
    cursor: pointer; letter-spacing: .3px;
    box-shadow: 0 4px 16px rgba(15,107,62,.28);
    transition: transform .18s, box-shadow .18s;
    display: flex; align-items: center; justify-content: center; gap: 8px;
}
.btn-main:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(15,107,62,.36);
}
.btn-main:active { transform: translateY(0); }
.btn-main:disabled {
    opacity: .7; cursor: not-allowed; transform: none;
}

.btn-ghost {
    background: transparent;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-xs);
    color: var(--green); font-family: 'Poppins', sans-serif;
    font-weight: 600; font-size: .84rem;
    padding: 8px 18px; cursor: pointer;
    transition: background .18s, border-color .18s;
    display: inline-flex; align-items: center; gap: 5px;
}
.btn-ghost:hover { background: var(--green-lt); border-color: var(--green); }

.link-btn {
    background: none; border: none;
    color: var(--green); font-weight: 700;
    font-size: .86rem; font-family: 'Poppins', sans-serif;
    cursor: pointer; padding: 0;
    transition: color .15s; text-decoration: none;
}
.link-btn:hover { color: var(--green-dk); text-decoration: underline; }

/* ── DIVIDER ─────────────────────────────────────────────── */
.divider {
    display: flex; align-items: center;
    gap: 12px; color: var(--text-lt);
    font-size: .78rem; margin: 16px 0;
}
.divider::before, .divider::after {
    content: ''; flex: 1; height: 1px; background: var(--border);
}

/* ── SPINNER ─────────────────────────────────────────────── */
.spinner {
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin .7s linear infinite;
    display: inline-block; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══════════════════════════════════════════
   MOBILE  (≤ 768px)
══════════════════════════════════════════ */
@media (max-width: 768px) {
    body { align-items: flex-start; background: var(--white); }

    /* blobs off on mobile — saves GPU */
    body::before, body::after { display: none; }

    .full-tab {
        grid-template-columns: 1fr;
        max-width: 100%; margin: 0;
        border-radius: 0; box-shadow: none;
        min-height: 100vh;
    }

    /* left panel becomes a compact top banner on mobile */
    .left-panel {
        padding: 0;
        flex-direction: row;
        align-items: center;
        min-height: unset;
        background: linear-gradient(135deg, var(--green-dk), var(--green));
    }
    .left-panel::before, .left-panel::after { display: none; }

    /* show only the logo bar on mobile, hide big text */
    .lp-headline, .lp-tagline, .feature-list { display: none; }

    .lp-logo {
        padding: 14px 20px; margin-bottom: 0;
        width: 100%;
    }
    .lp-logo-text h2 { font-size: 1rem; }

    .right-panel { min-height: calc(100vh - 70px); }

    .log-sin-tab { padding: 28px 22px; }

    .panel-title { font-size: 1.45rem; }
}

/* ══════════════════════════════════════════
   TABLET  (769px – 991px)
══════════════════════════════════════════ */
@media (min-width: 769px) and (max-width: 991px) {
    .full-tab { max-width: 680px; grid-template-columns: 1fr; }
    .left-panel {
        padding: 28px 36px;
        flex-direction: row;
        align-items: center; gap: 20px;
        min-height: unset;
    }
    .lp-headline, .lp-tagline, .feature-list { display: none; }
    .lp-logo { margin-bottom: 0; }
}