:root {
    color-scheme: light;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    color: #202b3b;
    background: #eef2f7;
    font-synthesis: none;
    text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }

body {
    min-width: 320px;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    padding: clamp(16px, 4vw, 48px);
    display: grid;
    place-items: center;
    background:
        radial-gradient(circle at 12% 10%, rgba(51, 110, 198, .12), transparent 32rem),
        #eef2f7;
}

.login-shell {
    width: min(100%, 1040px);
    min-height: min(680px, calc(100svh - 48px));
    display: grid;
    grid-template-columns: minmax(300px, .88fr) minmax(360px, 1.12fr);
    overflow: hidden;
    background: #fff;
    border: 1px solid #dfe5ed;
    border-radius: 24px;
    box-shadow: 0 28px 80px rgba(24, 39, 63, .14), 0 3px 12px rgba(24, 39, 63, .05);
}

.login-promo {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100%;
    padding: clamp(30px, 5vw, 58px);
    overflow: hidden;
    color: #f8fbff;
    background: linear-gradient(148deg, #17263d 0%, #162c4d 55%, #1d426e 100%);
}

.login-promo::before,
.login-promo::after {
    position: absolute;
    z-index: 0;
    content: "";
    border: 1px solid rgba(185, 211, 245, .16);
    border-radius: 50%;
    pointer-events: none;
}

.login-promo::before { width: 430px; height: 430px; right: -210px; top: 16%; }
.login-promo::after { width: 330px; height: 330px; right: -155px; top: 24%; }

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

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    width: fit-content;
    color: inherit;
    text-decoration: none;
}

.brand > span:last-child { display: grid; gap: 2px; }
.brand strong { font-size: 19px; letter-spacing: .01em; }
.brand small { color: #afc0d7; font-size: 12px; }

.brand-mark {
    display: grid;
    grid-template-columns: repeat(2, 7px);
    grid-template-rows: repeat(2, 7px);
    gap: 3px;
    padding: 8px;
    border: 1px solid rgba(255, 255, 255, .22);
    border-radius: 11px;
    background: rgba(255, 255, 255, .1);
    transform: rotate(-4deg);
}

.brand-mark i { display: block; border-radius: 2px; background: #9bc6ff; }
.brand-mark i:nth-child(2) { opacity: .8; }
.brand-mark i:nth-child(3) { opacity: .65; }
.brand-mark i:nth-child(4) { background: #57d6b0; }

.promo-copy { max-width: 370px; margin: auto 0; padding: 54px 0; }
.eyebrow, .form-kicker { color: #83b5fb; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.promo-copy h1 { max-width: 360px; margin: 19px 0 14px; font-size: clamp(34px, 4vw, 48px); line-height: 1.08; letter-spacing: -.045em; }
.promo-copy p { max-width: 335px; margin: 0; color: #c1cee0; font-size: 15px; line-height: 1.7; }

.promo-footer { display: flex; align-items: center; gap: 9px; color: #c1cee0; font-size: 12px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #55d3a4; box-shadow: 0 0 0 4px rgba(85, 211, 164, .12); }

.login-panel { display: grid; place-items: center; padding: clamp(28px, 6vw, 72px); }
.login-form-wrap { width: min(100%, 390px); }
.form-kicker { color: #4b78b8; }
.login-form-wrap h2 { margin: 12px 0 8px; color: #182435; font-size: clamp(27px, 3vw, 34px); letter-spacing: -.035em; }
.form-description { margin: 0 0 30px; color: #687589; font-size: 14px; line-height: 1.6; }

label { display: block; margin: 18px 0 8px; color: #344155; font-size: 13px; font-weight: 700; }
input:not([type="hidden"]) {
    display: block;
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 1px solid #d9e0e9;
    border-radius: 10px;
    outline: none;
    background: #fbfcfe;
    color: #202b3b;
    font: inherit;
    font-size: 14px;
    transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

input::placeholder { color: #a0aaba; }
input:focus { border-color: #5086ce; background: #fff; box-shadow: 0 0 0 4px rgba(80, 134, 206, .14); }

button[type="submit"] {
    width: 100%;
    min-height: 50px;
    margin-top: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: 10px;
    background: #2468b7;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 750;
    box-shadow: 0 8px 18px rgba(36, 104, 183, .19);
    transition: background .16s ease, transform .16s ease, box-shadow .16s ease;
}

button[type="submit"] span { font-size: 19px; line-height: 1; }
button[type="submit"]:hover { background: #1d589e; box-shadow: 0 10px 22px rgba(36, 104, 183, .25); transform: translateY(-1px); }
button[type="submit"]:focus-visible { outline: 3px solid rgba(36, 104, 183, .28); outline-offset: 3px; }

.erro { margin: 0 0 18px; padding: 12px 14px; border: 1px solid #f2c7cb; border-radius: 9px; background: #fff2f2; color: #a52d38; font-size: 13px; line-height: 1.5; }
.security-note { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 22px 0 0; color: #738094; font-size: 12px; text-align: center; }
.security-note span { color: #4486c6; font-size: 16px; }
.login-copyright { margin: 38px 0 0; color: #a1aaba; font-size: 11px; text-align: center; }

@media (max-width: 760px) {
    body { padding: 16px; }
    .login-shell { width: min(100%, 520px); min-height: auto; grid-template-columns: 1fr; }
    .login-promo { min-height: 205px; padding: 26px 28px; }
    .promo-copy { padding: 38px 0 28px; }
    .promo-copy h1 { max-width: 420px; margin: 12px 0 8px; font-size: clamp(28px, 7vw, 38px); }
    .promo-copy p { max-width: 420px; font-size: 13px; }
    .promo-footer { font-size: 11px; }
    .login-panel { padding: 34px 28px 32px; }
    .form-description { margin-bottom: 24px; }
    .login-copyright { margin-top: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
