/* ============================================================
   EduMagix – Login & Select Organisation CSS
   ============================================================ */

.auth-bg {
    min-height: 100vh;
    background: #fef8ee;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}
/* White radial glow in centre – mimics the notebook-paper clear area */
.auth-bg::before {
    content: ''; position: absolute; inset: 0;
    background: radial-gradient(ellipse 54% 64% at center,
        rgba(255,255,255,.96) 0%,
        rgba(255,255,252,.55) 62%,
        transparent 100%);
    pointer-events: none; z-index: 0;
}
.auth-bg::after { content: none; }

/* ── Floating education doodle icons ── */
.edu-deco { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.edu-deco i {
    position: absolute; opacity: .82; line-height: 1;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,.10));
}
@media (max-width: 767px) { .edu-deco { display: none; } }

/* ── Card ── */
.auth-card {
    background: #fff; border-radius: 18px;
    width: 550px; max-width: 96vw;
    box-shadow: 0 20px 56px rgba(0,0,0,.3);
    position: relative; z-index: 1; overflow: hidden;
}
.auth-card-header {
    background: linear-gradient(135deg, #0f1923 0%, #1a3a5c 100%);
    padding: 28px 32px 22px; text-align: center;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.auth-logo-wrap {
    display: inline-flex; align-items: center; gap: 12px;
    background: rgba(255,255,255,.06); padding: 11px 18px;
    border-radius: 13px; margin-bottom: 6px;
    border: 1px solid rgba(255,255,255,.08);
}
.auth-logo-icon {
    width: 42px; height: 42px; border-radius: 11px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 12px rgba(0,180,216,.4);
}
.auth-logo-icon i { color: #fff; font-size: 19px; }
.auth-logo-text .brand-name {
    font-size: 21px; font-weight: 800; letter-spacing: -.3px;
    background: linear-gradient(135deg, #00b4d8, #90e0ef);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; line-height: 1;
}
.auth-logo-text .brand-sub { font-size: 10px; color: #6b8299; margin-top: 2px; }
.auth-card-header p { color: #6b8299; font-size: 12px; margin-top: 6px; }

/* ── Body ── */
.auth-card-body { padding: 26px 30px 22px; }
.auth-section-title { font-size: 14px; font-weight: 600; color: #1e293b; margin-bottom: 16px; }

/* ── Tabs (User / School login) ── */
.auth-tabs { display: flex; gap: 0; margin-bottom: 20px; border-radius: 9px; overflow: hidden; border: 1.5px solid #e2e8f0; }
.auth-tab {
    flex: 1; text-align: center; padding: 9px 0;
    font-size: 13px; font-weight: 600; cursor: pointer;
    background: #f8fafc; color: #64748b;
    border: none; font-family: inherit;
    transition: background .14s, color .14s;
}
.auth-tab.active { background: linear-gradient(135deg,#0f1923,#1a3a5c); color: #00b4d8; }

/* ── Select dropdowns with icons ── */
.select-wrap { position: relative; }
.select-wrap .sel-icon {
    position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 14px; pointer-events: none; z-index: 1;
}
.select-wrap .sel-arrow {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    color: #94a3b8; font-size: 12px; pointer-events: none; z-index: 1;
}
.select-wrap select { padding-left: 38px; padding-right: 34px; appearance: none; background-image: none; }

/* ── Buttons ── */
.login-submit-btn, .continue-btn {
    width: 100%; height: 46px; border: none; border-radius: 10px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    color: #fff; font-size: 14px; font-weight: 700;
    cursor: pointer; margin-top: 8px;
    box-shadow: 0 4px 16px rgba(0,180,216,.3); font-family: inherit;
    transition: all .15s; letter-spacing: .3px;
}
.login-submit-btn:hover, .continue-btn:hover {
    transform: translateY(-1px); box-shadow: 0 6px 22px rgba(0,180,216,.45);
}
.continue-btn { margin-top: 20px; }

/* ── Footer ── */
.auth-footer { text-align: center; padding: 11px 16px; border-top: 1px solid #f1f5f9; }
.auth-footer span { font-size: 11px; color: #94a3b8; }

/* ============================================================
   EduMagix – Split-Screen ERP Login (Login.aspx only)
   Namespaced with "elogin-" so it never touches auth-* rules
   shared by SelectOrg.aspx.
   ============================================================ */

@keyframes eloginGradientMove {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes eloginFloatY {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50%      { transform: translateY(-18px) rotate(6deg); }
}
@keyframes eloginBlobDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(24px, -18px) scale(1.08); }
}
@keyframes eloginFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes eloginPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.25); }
    50%      { box-shadow: 0 0 0 10px rgba(255,255,255,0); }
}

.elogin-wrap { min-height: 100vh; display: flex; }

/* ── LEFT — branding panel (60%) ── */
.elogin-left {
    flex: 0 0 60%; max-width: 60%; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    padding: 48px 56px;
    background: linear-gradient(120deg, #063a5e 0%, #0077b6 42%, #00b4d8 78%, #48cae4 100%);
    background-size: 220% 220%;
    animation: eloginGradientMove 16s ease-in-out infinite;
    color: #fff;
}

.elogin-blob { position: absolute; border-radius: 50%; filter: blur(2px); pointer-events: none; opacity: .35; animation: eloginBlobDrift 12s ease-in-out infinite; }
.elogin-blob.b1 { width: 340px; height: 340px; top: -80px; left: -100px; background: radial-gradient(circle, rgba(255,255,255,.5), transparent 70%); }
.elogin-blob.b2 { width: 280px; height: 280px; bottom: -70px; right: -60px; background: radial-gradient(circle, rgba(144,224,239,.5), transparent 70%); animation-duration: 15s; animation-delay: -3s; }
.elogin-blob.b3 { width: 200px; height: 200px; bottom: 20%; left: 8%; background: radial-gradient(circle, rgba(255,255,255,.3), transparent 70%); animation-duration: 10s; animation-delay: -6s; }

.elogin-floaters { position: absolute; inset: 0; pointer-events: none; }
.elogin-floaters i { position: absolute; color: rgba(255,255,255,.55); animation: eloginFloatY 6s ease-in-out infinite; }
.elogin-floaters .f1 { top: 10%; left: 8%;  font-size: 26px; animation-delay: 0s; }
.elogin-floaters .f2 { top: 20%; right: 10%; font-size: 22px; animation-delay: -1.2s; }
.elogin-floaters .f3 { bottom: 16%; left: 6%; font-size: 24px; animation-delay: -2.4s; }
.elogin-floaters .f4 { top: 55%; right: 6%;  font-size: 20px; animation-delay: -3.6s; }
.elogin-floaters .f5 { bottom: 8%; right: 22%; font-size: 20px; animation-delay: -.8s; }
.elogin-floaters .f6 { top: 8%; right: 32%;  font-size: 16px; animation-delay: -4.2s; }
.elogin-floaters .f7 { bottom: 32%; left: 16%; font-size: 18px; animation-delay: -2s; }
.elogin-floaters .f8 { top: 42%; left: 4%;   font-size: 20px; animation-delay: -5s; }

.elogin-left-inner { position: relative; z-index: 1; max-width: 560px; width: 100%; }

.elogin-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; opacity: 0; animation: eloginFadeUp .6s ease-out .05s forwards; }
.elogin-brand-icon {
    width: 40px; height: 40px; border-radius: 10px;
    background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3);
    display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.elogin-brand-name { font-size: 19px; font-weight: 800; letter-spacing: -.2px; }

/* Hero mockup illustration */
.elogin-hero { position: relative; width: 100%; max-width: 420px; height: 220px; margin: 0 auto 34px; opacity: 0; animation: eloginFadeUp .7s ease-out .15s forwards; }
.elogin-hero-glass {
    position: absolute; inset: 18px 60px; border-radius: 16px;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.35);
    backdrop-filter: blur(6px); box-shadow: 0 18px 40px rgba(3,26,46,.3);
    padding: 16px 18px;
}
.hero-dots { display: flex; gap: 5px; margin-bottom: 14px; }
.hero-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); display: inline-block; }
.hero-chart { display: flex; align-items: flex-end; gap: 6px; height: 60px; margin-bottom: 14px; }
.hero-chart .bar { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #fff, rgba(255,255,255,.4)); opacity: .85; }
.hero-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.hero-dot { width: 8px; height: 8px; border-radius: 50%; background: #90e0ef; flex-shrink: 0; }
.hero-line { height: 6px; border-radius: 3px; background: rgba(255,255,255,.35); }
.hero-line.l1 { width: 70%; } .hero-line.l2 { width: 50%; } .hero-line.l3 { width: 62%; }

.hero-badge {
    position: absolute; width: 46px; height: 46px; border-radius: 13px;
    background: rgba(255,255,255,.95); color: #0077b6;
    display: flex; align-items: center; justify-content: center; font-size: 18px;
    box-shadow: 0 10px 22px rgba(3,26,46,.28);
    animation: eloginFloatY 5s ease-in-out infinite;
}
.hero-badge:hover { animation-play-state: paused; transform: translateY(-4px) scale(1.08); }
.hero-badge.hb1 { top: -6px;  left: 6px;   animation-delay: 0s; }
.hero-badge.hb2 { top: 30px;  right: -4px; animation-delay: -1s; }
.hero-badge.hb3 { bottom: 34px; left: -12px; animation-delay: -2s; }
.hero-badge.hb4 { bottom: -8px; left: 40%;  animation-delay: -3s; }
.hero-badge.hb5 { bottom: 20px; right: 4px; animation-delay: -1.6s; }
.hero-badge.hb6 { top: -4px; right: 34%;    animation-delay: -2.6s; }

.elogin-heading {
    font-size: 34px; font-weight: 800; letter-spacing: -.4px; line-height: 1.15;
    margin-bottom: 10px; opacity: 0; animation: eloginFadeUp .6s ease-out .25s forwards;
}
.elogin-sub {
    font-size: 15px; color: rgba(255,255,255,.85); margin-bottom: 26px;
    opacity: 0; animation: eloginFadeUp .6s ease-out .35s forwards;
}

.elogin-features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 20px; }
.elogin-features li {
    display: flex; align-items: center; gap: 9px; font-size: 13.5px; font-weight: 500;
    color: rgba(255,255,255,.95); opacity: 0; animation: eloginFadeUp .5s ease-out forwards;
    transition: transform .15s;
}
.elogin-features li:hover { transform: translateX(4px); }
.elogin-features li i { color: #7bf1c4; font-size: 15px; flex-shrink: 0; }
.elogin-features li:nth-child(1) { animation-delay: .45s; }
.elogin-features li:nth-child(2) { animation-delay: .52s; }
.elogin-features li:nth-child(3) { animation-delay: .59s; }
.elogin-features li:nth-child(4) { animation-delay: .66s; }
.elogin-features li:nth-child(5) { animation-delay: .73s; }
.elogin-features li:nth-child(6) { animation-delay: .80s; }
.elogin-features li:nth-child(7) { animation-delay: .87s; }

/* ── RIGHT — login panel (40%) ── */
.elogin-right {
    flex: 1; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(160deg, #eaf6fb 0%, #f7fbfe 45%, #edf1fb 100%);
    padding: 40px 32px;
}
.elogin-right::before, .elogin-right::after {
    content: ''; position: absolute; border-radius: 50%; pointer-events: none;
    filter: blur(6px); animation: eloginBlobDrift 14s ease-in-out infinite;
}
.elogin-right::before {
    width: 320px; height: 320px; top: -90px; right: -90px;
    background: radial-gradient(circle, rgba(0,180,216,.22), transparent 70%);
}
.elogin-right::after {
    width: 260px; height: 260px; bottom: -80px; left: -70px;
    background: radial-gradient(circle, rgba(0,119,182,.16), transparent 70%);
    animation-duration: 17s; animation-delay: -5s;
}

/* Glassmorphism card */
.elogin-right-inner {
    position: relative; z-index: 1; width: 100%; max-width: 380px;
    background: rgba(255,255,255,.55);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 22px;
    box-shadow: 0 8px 32px rgba(15,60,90,.16), inset 0 1px 0 rgba(255,255,255,.7);
    padding: 40px 34px;
    opacity: 0; animation: eloginFadeUp .55s ease-out .2s forwards;
}
.elogin-right-inner .form-ctrl {
    background: rgba(255,255,255,.55); border-color: rgba(255,255,255,.8);
}
.elogin-right-inner .form-ctrl:focus { background: rgba(255,255,255,.85); }

.elogin-form-header { text-align: center; margin-bottom: 26px; }
.elogin-form-logo {
    width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 14px;
    background: linear-gradient(135deg, #00b4d8, #0077b6);
    display: flex; align-items: center; justify-content: center;
    color: #fff; font-size: 22px; box-shadow: 0 8px 20px rgba(0,180,216,.35);
    animation: eloginPulse 2.6s ease-in-out infinite;
}
.elogin-form-header h2 { font-size: 22px; font-weight: 800; color: #10233a; margin-bottom: 4px; }
.elogin-form-header p { font-size: 13px; color: #6b8299; }

.elogin-form-footer { text-align: center; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(148,163,184,.25); }
.elogin-form-footer span { font-size: 11px; color: #6b8299; }

/* ── Responsive ──
   Desktop  (≥1200px): both sections at full size.
   Tablet   (768px–1199px): both sections visible, illustration/left panel scaled down.
   Mobile   (<768px): left section hidden, login card centered full-bleed.
*/
@media (max-width: 1199px) and (min-width: 768px) {
    .elogin-left { flex: 0 0 54%; max-width: 54%; padding: 32px 26px; }
    .elogin-right { flex: 0 0 46%; padding: 32px 22px; }
    .elogin-hero { max-width: 260px; height: 140px; margin-bottom: 20px; }
    .hero-badge { width: 38px; height: 38px; font-size: 15px; border-radius: 11px; }
    .elogin-brand { margin-bottom: 20px; }
    .elogin-heading { font-size: 25px; margin-bottom: 8px; }
    .elogin-sub { font-size: 13px; margin-bottom: 18px; }
    .elogin-features { gap: 8px 14px; }
    .elogin-features li { font-size: 12px; }
    .elogin-features li i { font-size: 13px; }
    .elogin-floaters { display: none; }
    .elogin-right-inner { max-width: 340px; padding: 32px 26px; }
}

@media (max-width: 767px) {
    .elogin-wrap { min-height: 100vh; }
    .elogin-left { display: none; }
    .elogin-right {
        flex: 1 1 100%; width: 100%; min-height: 100vh;
        padding: 24px 14px;
    }
    .elogin-right::before, .elogin-right::after { display: none; }
    .elogin-right-inner { max-width: 440px; width: 100%; padding: 30px 22px; }
}
@media (prefers-reduced-motion: reduce) {
    .elogin-left, .elogin-blob, .elogin-floaters i, .hero-badge,
    .elogin-brand, .elogin-hero, .elogin-heading, .elogin-sub,
    .elogin-features li, .elogin-right-inner, .elogin-form-logo {
        animation: none !important; opacity: 1 !important; transform: none !important;
    }
}
