/* ===== EduERP login — ADYCORE split layout ===== */
html, body.auth { margin: 0; }
.auth, .auth *, .auth *::before, .auth *::after { box-sizing: border-box; }
.auth {
    --auth-bg: #eef3fb;
    --auth-card: #ffffff;
    --auth-text: #0f1b33;
    --auth-muted: #6b7a93;
    --auth-label: #1b2a41;
    --auth-input: #eaf1fd;
    --auth-input-border: #eaf1fd;
    --auth-input-focus: #0f1b33;
    --auth-shadow: 0 30px 60px -20px rgba(1, 27, 62, .25), 0 12px 24px -12px rgba(1, 27, 62, .12);
    font-family: "Plus Jakarta Sans", "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
    min-height: 100vh; margin: 0; display: grid; place-items: center; padding: 1rem;
    color: var(--auth-text);
    background:
        radial-gradient(900px 500px at 0% 0%, #ffffff 0%, transparent 60%),
        radial-gradient(900px 600px at 100% 100%, #dfe9f8 0%, transparent 60%),
        var(--auth-bg);
    transition: background-color .25s ease, color .25s ease;
}
.auth[data-theme="dark"] {
    --auth-bg: #07111f;
    --auth-card: #0f1b30;
    --auth-text: #e8eef9;
    --auth-muted: #93a3bd;
    --auth-label: #c9d5ea;
    --auth-input: #16253f;
    --auth-input-border: #1f3150;
    --auth-input-focus: #02affe;
    --auth-shadow: 0 30px 60px -20px rgba(0,0,0,.6);
    background: radial-gradient(900px 600px at 100% 100%, #0b2a5b 0%, transparent 60%), var(--auth-bg);
}

.auth-theme-toggle {
    position: fixed; top: .9rem; right: 1rem; width: 36px; height: 36px; border-radius: 50%;
    border: 0; background: transparent; color: #6b7a93; font-size: 1.1rem; display: grid; place-items: center;
    cursor: pointer; transition: background .2s, color .2s;
}
.auth-theme-toggle:hover { background: rgba(10, 102, 214, .08); color: #0a66d6; }
.auth[data-theme="dark"] .auth-theme-toggle { color: #ffd166; }

.auth-shell {
    width: 100%; max-width: 980px; display: grid; grid-template-columns: 1fr 1.05fr;
    background: var(--auth-card); border-radius: 22px; overflow: hidden; box-shadow: var(--auth-shadow);
}

/* ---- Left brand panel ---- */
.auth-hero {
    position: relative; overflow: hidden; color: #fff; padding: 2.1rem 2.25rem 1.6rem;
    display: flex; flex-direction: column;
    background:
        radial-gradient(520px 380px at 0% 0%, rgba(2, 175, 254, .55) 0%, transparent 70%),
        linear-gradient(160deg, #0b2a5b 0%, #0a4fc4 55%, #0071e4 100%);
}
.auth-hero::before, .auth-hero::after {
    content: ""; position: absolute; border-radius: 50%; pointer-events: none;
    background: rgba(255, 255, 255, .07);
}
.auth-hero::before { width: 340px; height: 340px; top: -110px; right: -130px; }
.auth-hero::after  { width: 240px; height: 240px; bottom: -120px; left: -100px; background: rgba(1, 27, 62, .18); }
.auth-hero > * { position: relative; z-index: 1; }

.auth-brand { display: flex; align-items: center; gap: .7rem; }
.auth-brand-logo {
    width: 44px; height: 44px; border-radius: 11px; background: #fff; display: grid; place-items: center;
    box-shadow: 0 6px 16px rgba(1, 27, 62, .25); padding: 5px;
}
.auth-brand-logo img { width: 100%; height: 100%; object-fit: contain; }
.auth-brand-name { font-size: 1.25rem; font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.auth-brand-tag { font-size: .62rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; opacity: .75; margin-top: .15rem; }

.auth-pill {
    align-self: flex-start; display: inline-flex; align-items: center; gap: .4rem; margin-top: .8rem;
    padding: .3rem .8rem; border-radius: 999px; font-size: .75rem; font-weight: 600;
    background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); backdrop-filter: blur(6px);
}
.auth-hero h1 {
    font-size: clamp(1.55rem, 2.3vw, 2.1rem); font-weight: 800; line-height: 1.15; letter-spacing: -.02em;
    margin: 1.5rem 0 .8rem; color: #fff;
}
.auth-hero p.lead-text { font-size: .88rem; line-height: 1.6; color: rgba(255, 255, 255, .85); max-width: 400px; margin: 0; }

.auth-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.4rem; }
.auth-chip {
    display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .75rem; border-radius: 10px;
    font-size: .78rem; font-weight: 600; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .16);
}
.auth-chip i { font-size: .9rem; }
.auth-hero-foot { margin-top: auto; padding-top: 1.5rem; font-size: .74rem; color: rgba(255, 255, 255, .7); }

/* ---- Right form panel ---- */
.auth-form { padding: 2rem 3.25rem 1.6rem; display: flex; flex-direction: column; justify-content: center; }
.auth-form h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 .25rem; color: var(--auth-text); }
.auth-form .sub { color: var(--auth-muted); font-size: .88rem; margin-bottom: 1.2rem; }

.auth-field { margin-bottom: .8rem; }
.auth-field label { display: block; font-weight: 600; font-size: .8rem; color: var(--auth-label); margin-bottom: .3rem; }
.auth-input { position: relative; }
.auth-input > i.lead {
    position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: #7d8aa3; font-size: .92rem; pointer-events: none;
}
.auth-input input, .auth-input select {
    width: 100%; height: 42px; padding: 0 2.6rem 0 2.4rem; border-radius: 10px; font-size: .88rem;
    color: var(--auth-text); background: var(--auth-input); border: 2px solid var(--auth-input-border);
    outline: none; transition: border-color .15s, box-shadow .15s, background .15s; font-family: inherit;
    -webkit-appearance: none; appearance: none;
}
.auth-input select { cursor: pointer; }
.auth-input .caret { position: absolute; right: .85rem; font-size: .8rem; top: 50%; transform: translateY(-50%); color: #7d8aa3; pointer-events: none; }
.auth-input input::placeholder { color: #9aa7bd; }
.auth-input input:focus, .auth-input select:focus {
    border-color: var(--auth-input-focus); background: var(--auth-input);
    box-shadow: 0 0 0 3px rgba(10, 102, 214, .12);
}
.auth-input input:-webkit-autofill { -webkit-box-shadow: 0 0 0 1000px var(--auth-input) inset; -webkit-text-fill-color: var(--auth-text); }
.auth-eye {
    position: absolute; right: .35rem; top: 50%; transform: translateY(-50%); width: 32px; height: 32px;
    border: 0; background: transparent; color: #7d8aa3; font-size: .95rem; border-radius: 7px; cursor: pointer;
}
.auth-eye:hover { color: #0a66d6; background: rgba(10, 102, 214, .08); }
.auth-field .field-error { display: block; color: #dc3545; font-size: .75rem; margin-top: .2rem; }

.auth-check { display: flex; align-items: center; gap: .5rem; margin: .2rem 0 1rem; color: var(--auth-muted); font-size: .85rem; }
.auth-check input { width: 16px; height: 16px; accent-color: #0a66d6; cursor: pointer; margin: 0; }
.auth-check label { cursor: pointer; margin: 0; }

.auth-submit {
    width: 100%; height: 44px; border: 0; border-radius: 10px; color: #fff; font-size: .92rem; font-weight: 700;
    display: inline-flex; align-items: center; justify-content: center; gap: .6rem; cursor: pointer;
    background: linear-gradient(90deg, #0a4fc4 0%, #0a66d6 60%, #0071e4 100%);
    box-shadow: 0 10px 20px -8px rgba(10, 102, 214, .55); transition: transform .12s, box-shadow .12s, filter .12s;
}
.auth-submit:hover { filter: brightness(1.06); transform: translateY(-1px); box-shadow: 0 16px 28px -10px rgba(10, 102, 214, .6); }
.auth-submit:active { transform: translateY(0); }
.auth-submit i { transition: transform .15s; }
.auth-submit:hover i { transform: translateX(3px); }

.auth-secure { display: flex; align-items: center; justify-content: center; gap: .4rem; margin-top: .9rem; color: var(--auth-muted); font-size: .75rem; }
.auth-secure i { color: #19a974; }

.auth-alert { border-radius: 10px; padding: .5rem .8rem; font-size: .8rem; margin-bottom: .8rem; }
.auth-alert.warn { background: #fff4db; color: #7a5200; border: 1px solid #ffe2a3; }
.auth-alert.err { background: #fde8ea; color: #9b1c2c; border: 1px solid #f7c3c9; }
.auth-alert.err ul { margin: 0; padding-left: 1.1rem; }
.validation-summary-valid.auth-alert { display: none; }

.auth-mobile-brand { display: none; }

@media (max-width: 1199.98px) { .auth-form { padding: 1.9rem 2.5rem 1.5rem; } }
@media (max-width: 991.98px) {
    .auth-shell { grid-template-columns: 1fr; max-width: 440px; }
    .auth-hero { display: none; }
    .auth-form { padding: 1.75rem 1.6rem 1.4rem; }
    .auth-mobile-brand { display: flex; align-items: center; gap: .6rem; margin-bottom: 1.1rem; }
    .auth-mobile-brand img { height: 34px; width: auto; }
    .auth-mobile-brand span { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: #0a66d6; }
}
@media (max-width: 480px) {
    .auth { padding: 1rem; }
    .auth-shell { border-radius: 20px; }
    .auth-form { padding: 1.5rem 1.15rem 1.25rem; }
    .auth-form h2 { font-size: 1.4rem; }
}

/* Short screens (laptops at 125%/150% scaling) — keep everything on one screen */
@media (max-height: 640px) and (min-width: 992px) {
    .auth { padding: .6rem; }
    .auth-hero { padding: 1.5rem 1.9rem 1.2rem; }
    .auth-hero h1 { margin: 1rem 0 .6rem; font-size: 1.55rem; }
    .auth-chips { margin-top: 1rem; }
    .auth-hero-foot { padding-top: 1rem; }
    .auth-form { padding: 1.4rem 2.75rem 1.2rem; }
    .auth-form .sub { margin-bottom: .9rem; }
    .auth-field { margin-bottom: .6rem; }
    .auth-input input, .auth-input select { height: 38px; }
    .auth-submit { height: 40px; }
    .auth-check { margin: .1rem 0 .75rem; }
    .auth-secure { margin-top: .6rem; }
}
