:root {
    --bg: #eef4f8;
    --panel: #ffffff;
    --ink: #122033;
    --muted: #617084;
    --line: #d7e1ea;
    --soft: #f6f9fb;
    --primary: #1368ce;
    --primary-strong: #0f4fa4;
    --teal: #108a78;
    --admin: #23324a;
    --danger: #c9362b;
    --shadow: 0 18px 42px rgba(18, 32, 51, 0.13);
    --radius: 8px;
}

* {
    box-sizing: border-box;
}

html {
    min-width: 320px;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    font-family: Inter, "Segoe UI", Arial, sans-serif;
    color: var(--ink);
    background: var(--bg);
}

a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

a:hover {
    color: var(--primary-strong);
}

.auth-shell {
    display: grid;
    grid-template-columns: minmax(320px, 42vw) minmax(360px, 1fr);
    min-height: 100vh;
    min-height: 100svh;
}

.brand-side {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 42px;
    padding: 42px;
    overflow: hidden;
    color: #fff;
    background:
        linear-gradient(138deg, rgba(14, 35, 59, 0.94), rgba(19, 104, 206, 0.82)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 86px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 86px);
}

.admin-shell .brand-side {
    background:
        linear-gradient(138deg, rgba(14, 35, 59, 0.96), rgba(35, 50, 74, 0.9)),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.10) 0 1px, transparent 1px 86px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 86px);
}

.brand-side::after {
    content: "";
    position: absolute;
    right: -86px;
    bottom: 54px;
    width: 360px;
    height: 230px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.08);
    transform: rotate(-8deg);
}

.brand-mark,
.brand-copy,
.brand-footer {
    position: relative;
    z-index: 1;
}

.brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 18px;
    font-weight: 800;
    min-width: 0;
    overflow-wrap: anywhere;
}

.brand-icon,
.field-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.brand-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.26);
}

.brand-copy {
    max-width: 500px;
    min-width: 0;
}

.brand-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 5px 10px;
    margin-bottom: 20px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.88);
    font-size: 13px;
    font-weight: 800;
}

.brand-copy h1 {
    margin: 0 0 16px;
    font-size: clamp(36px, 5vw, 60px);
    line-height: 1.02;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.brand-copy p,
.brand-footer {
    color: rgba(255, 255, 255, 0.78);
    line-height: 1.7;
}

.brand-copy p {
    margin: 0;
    max-width: 430px;
    font-size: 17px;
    overflow-wrap: anywhere;
}

.form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 34px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.60), rgba(255, 255, 255, 0)),
        var(--bg);
}

.auth-card {
    width: min(100%, 440px);
    min-width: 0;
    padding: 32px;
    border: 1px solid rgba(215, 225, 234, 0.94);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
}

.auth-card.compact {
    width: min(100%, 400px);
}

.panel-label {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 6px 10px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background: #e7f0fb;
    color: var(--primary);
    font-size: 13px;
    font-weight: 800;
}

.admin-shell .panel-label {
    background: #edf0f5;
    color: var(--admin);
}

.auth-card h2 {
    margin: 0;
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
    overflow-wrap: anywhere;
}

.subtitle {
    margin: 10px 0 26px;
    color: var(--muted);
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.form-grid {
    display: grid;
    gap: 16px;
}

.auth-alert {
    padding: 12px 14px;
    margin-bottom: 16px;
    border-radius: var(--radius);
    background: #fff1f0;
    color: #b42318;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
}

.auth-alert.success {
    background: #e5f8f2;
    color: var(--teal);
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 800;
    overflow-wrap: anywhere;
}

.input-wrap {
    display: grid;
    grid-template-columns: 44px 1fr;
    align-items: center;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
}

.input-wrap:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(19, 104, 206, 0.12);
}

.admin-shell .input-wrap:focus-within {
    border-color: var(--admin);
    box-shadow: 0 0 0 3px rgba(35, 50, 74, 0.12);
}

.field-icon {
    color: var(--muted);
    font-weight: 800;
}

.input-wrap input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    padding: 14px 14px 14px 0;
    background: transparent;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
}

.form-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    color: var(--muted);
    font-size: 14px;
    min-width: 0;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.check input {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: var(--radius);
    background: var(--primary);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 800;
    text-align: center;
    overflow-wrap: anywhere;
    -webkit-tap-highlight-color: transparent;
}

.btn:hover {
    background: var(--primary-strong);
}

.btn.admin {
    background: var(--admin);
}

.btn.admin:hover {
    background: #172237;
}

.auth-switch {
    margin-top: 22px;
    color: var(--muted);
    text-align: center;
    overflow-wrap: anywhere;
}

.auth-divider{display:flex;align-items:center;gap:12px;margin:18px 0;color:var(--muted);font-size:12px}.auth-divider:before,.auth-divider:after{content:"";height:1px;flex:1;background:#dce4ec}.google-login{display:flex;align-items:center;justify-content:center;gap:11px;width:100%;min-height:50px;padding:10px 14px;border:1px solid #cbd7e2;border-radius:var(--radius);background:#fff;color:#27374a;font-weight:750;text-decoration:none}.google-login:hover{background:#f7f9fb;border-color:#aebdcc}.google-mark{display:grid;place-items:center;width:23px;height:23px;border-radius:50%;color:#4285f4;font-size:18px;font-weight:800}

@media (min-width: 1440px) {
    .auth-shell {
        grid-template-columns: minmax(480px, 620px) 1fr;
    }

    .auth-card {
        width: min(100%, 460px);
    }
}

@media (max-width: 1180px) {
    .auth-shell {
        grid-template-columns: minmax(320px, 390px) minmax(360px, 1fr);
    }

    .brand-side {
        padding: 34px;
    }
}

@media (max-width: 860px) {
    .auth-shell {
        grid-template-columns: 1fr;
    }

    .brand-side {
        min-height: 260px;
        padding: 28px;
        gap: 24px;
    }

    .brand-side::after {
        right: -150px;
        bottom: 20px;
    }

    .brand-footer {
        display: none;
    }

    .form-side {
        align-items: flex-start;
        padding: 22px;
    }
}

@media (max-width: 640px) {
    .brand-side {
        min-height: auto;
        padding: 24px 20px;
    }

    .brand-mark {
        font-size: 16px;
    }

    .brand-icon {
        width: 38px;
        height: 38px;
    }

    .brand-copy p {
        font-size: 15px;
        line-height: 1.6;
    }

    .form-side {
        padding: 18px;
    }

    .auth-card {
        width: 100%;
        box-shadow: 0 12px 28px rgba(18, 32, 51, 0.10);
    }
}

@media (max-width: 480px) {
    .brand-copy h1 {
        font-size: 32px;
    }

    .auth-card {
        padding: 22px;
    }

    .form-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .input-wrap {
        grid-template-columns: 40px 1fr;
        min-height: 48px;
    }

    .btn {
        min-height: 48px;
    }
}

@media (max-width: 360px) {
    .brand-side {
        padding: 20px 16px;
    }

    .form-side {
        padding: 14px;
    }

    .auth-card {
        padding: 18px;
    }

    .brand-copy h1 {
        font-size: 28px;
    }

    .auth-card h2 {
        font-size: 24px;
    }

    .panel-label {
        font-size: 12px;
    }
}

@media (max-height: 620px) and (min-width: 861px) {
    .brand-side {
        gap: 22px;
        padding-top: 28px;
        padding-bottom: 28px;
    }

    .brand-copy h1 {
        font-size: 42px;
    }

    .brand-footer {
        display: none;
    }

    .form-side {
        align-items: flex-start;
        overflow-y: auto;
    }
}

/* 2026 unified authentication design */
:root{--bg:#f4f7fb;--ink:#142033;--muted:#66758a;--line:#dfe6ee;--primary:#246bfd;--primary-strong:#174fd1;--shadow:0 24px 70px rgba(19,34,58,.14);--radius:14px}
.auth-shell{grid-template-columns:minmax(390px,44%) minmax(420px,1fr);background:#f4f7fb}
.brand-side{isolation:isolate;padding:50px;background:radial-gradient(circle at 20% 12%,rgba(79,139,255,.42),transparent 20rem),linear-gradient(145deg,#111d32 5%,#17345f 56%,#245fc5);border-radius:0 28px 28px 0}
.brand-side:before{content:"";position:absolute;inset:0;z-index:-1;background-image:linear-gradient(rgba(255,255,255,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.045) 1px,transparent 1px);background-size:64px 64px;mask-image:linear-gradient(to bottom,#000,transparent)}
.brand-side:after{right:-110px;bottom:80px;width:390px;height:260px;border-radius:32px;background:linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.025));transform:rotate(-10deg)}
.brand-orb{position:absolute;z-index:-1;border-radius:50%;filter:blur(1px);pointer-events:none}.brand-orb-one{right:10%;top:18%;width:130px;height:130px;background:rgba(101,160,255,.14)}.brand-orb-two{left:12%;bottom:9%;width:75px;height:75px;border:1px solid rgba(255,255,255,.14)}
.brand-icon{border-radius:13px;background:linear-gradient(145deg,#4b86ff,#2363e5);box-shadow:0 12px 25px rgba(5,35,100,.3)}.brand-copy h1{font-size:clamp(38px,4.7vw,64px);letter-spacing:-.055em}.brand-copy p{color:rgba(255,255,255,.72)}.brand-kicker{border-radius:999px;padding-inline:13px;letter-spacing:.04em}
.form-side{padding:42px;background:radial-gradient(circle at 80% 10%,rgba(36,107,253,.08),transparent 22rem),#f4f7fb}.auth-card{width:min(100%,450px);padding:34px;border:1px solid rgba(220,228,237,.92);border-radius:22px;background:rgba(255,255,255,.92);box-shadow:var(--shadow);backdrop-filter:blur(14px)}
.auth-card h2{font-size:28px;letter-spacing:-.04em}.panel-label{color:var(--primary);letter-spacing:.12em}.subtitle{font-size:13px}.input-wrap{border-radius:12px;background:#f8fafc;border-color:#dbe4ed}.input-wrap:focus-within{background:#fff;border-color:#6f9cff;box-shadow:0 0 0 4px rgba(36,107,253,.1)}
.btn{border-radius:12px;background:linear-gradient(135deg,#3479ff,#1f60ed);box-shadow:0 9px 20px rgba(36,107,253,.2);transition:.16s ease}.btn:hover{transform:translateY(-1px);box-shadow:0 12px 26px rgba(36,107,253,.27)}.google-login{border-radius:12px;background:#fff;box-shadow:0 3px 12px rgba(20,32,51,.035)}.auth-alert{border-radius:12px}
@media(max-width:860px){.auth-shell{grid-template-columns:1fr}.brand-side{min-height:220px;padding:28px;border-radius:0 0 24px 24px}.brand-copy h1{font-size:34px}.brand-copy p{font-size:14px}.brand-footer{display:none}.form-side{padding:24px 16px 38px}.auth-card{margin-top:-58px;padding:26px;border-radius:19px;position:relative;z-index:3}}
@media(max-width:480px){.brand-side{min-height:215px;padding:22px}.brand-copy h1{font-size:29px}.brand-copy p{display:none}.brand-kicker{margin-bottom:12px}.form-side{padding-inline:12px}.auth-card{margin-top:-48px;padding:22px 18px}.auth-card h2{font-size:24px}}
