:root {
    --auth-navy: #071226;
    --auth-ink: #172238;
    --auth-muted: #728096;
    --auth-line: #e4e9f2;
    --auth-blue: #2f6fed;
    --auth-red: #b83f4a;
}

* { box-sizing: border-box; }

html, body { min-height: 100%; }

body {
    margin: 0;
    color: var(--auth-ink);
    background: #f5f7fb;
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    -webkit-font-smoothing: antialiased;
}

button, input { font: inherit; }

.auth-shell { min-height: 100vh; display: grid; grid-template-columns: minmax(380px, .9fr) minmax(480px, 1.1fr); }

.auth-brand {
    position: relative;
    display: flex;
    align-items: center;
    padding: clamp(42px, 7vw, 96px);
    overflow: hidden;
    color: #fff;
    background:
        radial-gradient(circle at 16% 18%, rgba(64, 123, 246, .32), transparent 28%),
        radial-gradient(circle at 85% 82%, rgba(117, 89, 232, .18), transparent 30%),
        linear-gradient(155deg, #0d2142, var(--auth-navy));
}

.auth-brand::after {
    content: "";
    position: absolute;
    right: -170px;
    bottom: -210px;
    width: 480px;
    height: 480px;
    border: 1px solid rgba(255, 255, 255, .07);
    border-radius: 50%;
    box-shadow: 0 0 0 70px rgba(255, 255, 255, .025), 0 0 0 140px rgba(255, 255, 255, .018);
}

.auth-brand-content { position: relative; width: min(530px, 100%); z-index: 1; }
.auth-logo { display: block; width: 190px; height: auto; margin-bottom: clamp(60px, 12vh, 120px); }
.auth-eyebrow, .auth-kicker { margin: 0 0 12px; color: #7aa8ff; font-size: 11px; font-weight: 800; letter-spacing: .17em; }
.auth-brand h1 { max-width: 520px; margin: 0; font-size: clamp(36px, 4.3vw, 64px); line-height: 1.04; letter-spacing: -.05em; }
.auth-brand-copy { max-width: 470px; margin: 24px 0 0; color: #aebed8; font-size: 16px; line-height: 1.75; }
.auth-trust { display: flex; align-items: center; gap: 10px; margin-top: 42px; color: #90a5c5; font-size: 12px; }
.auth-trust i { color: #55d8ae; font-size: 19px; }

.auth-panel { display: grid; place-items: center; padding: clamp(28px, 6vw, 88px); }
.auth-card { width: min(440px, 100%); }
.auth-icon { display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 28px; border-radius: 15px; color: var(--auth-blue); background: #e9f0ff; font-size: 24px; }
.auth-kicker { margin-bottom: 9px; color: var(--auth-blue); }
.auth-card h2 { margin: 0; font-size: clamp(28px, 3vw, 36px); line-height: 1.15; letter-spacing: -.035em; }
.auth-intro { margin: 12px 0 30px; color: var(--auth-muted); font-size: 14px; line-height: 1.6; }

.auth-alert { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 20px; padding: 13px 14px; border: 1px solid #f0cbd0; border-radius: 12px; color: #8e303a; background: #fff2f3; font-size: 12px; line-height: 1.5; }
.auth-alert.is-warning { border-color: #efd6a8; color: #80540d; background: #fff9ed; }
.auth-alert i { flex: 0 0 auto; margin-top: 2px; font-size: 17px; }
.auth-alert code { overflow-wrap: anywhere; }

.auth-form { display: grid; gap: 18px; }
.auth-form label { display: grid; gap: 8px; color: #425069; font-size: 12px; font-weight: 750; }
.auth-input { position: relative; display: block; }
.auth-input i { position: absolute; top: 50%; left: 16px; color: #8a97aa; font-size: 18px; transform: translateY(-50%); pointer-events: none; }
.auth-input input { width: 100%; min-height: 54px; padding: 0 16px 0 48px; border: 1px solid var(--auth-line); border-radius: 13px; outline: 0; color: var(--auth-ink); background: #fff; box-shadow: 0 7px 22px rgba(18, 38, 74, .045); transition: border-color .2s ease, box-shadow .2s ease; }
.auth-input input:focus { border-color: #93b3f6; box-shadow: 0 0 0 4px rgba(47, 111, 237, .1), 0 10px 26px rgba(18, 38, 74, .07); }
.auth-form button { display: flex; align-items: center; justify-content: space-between; min-height: 54px; margin-top: 6px; padding: 0 19px 0 22px; border: 0; border-radius: 13px; color: #fff; background: linear-gradient(135deg, #3476f3, #215cd5); box-shadow: 0 13px 28px rgba(47, 111, 237, .25); font-weight: 750; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease; }
.auth-form button:hover { transform: translateY(-1px); box-shadow: 0 17px 34px rgba(47, 111, 237, .31); }
.auth-form button:focus-visible { outline: 3px solid rgba(47, 111, 237, .25); outline-offset: 3px; }
.auth-form button:disabled { cursor: not-allowed; opacity: .52; transform: none; box-shadow: none; }
.auth-form button i { font-size: 19px; }
.auth-footnote { display: flex; align-items: flex-start; gap: 8px; margin: 24px 0 0; color: #8793a6; font-size: 11px; line-height: 1.55; }
.auth-footnote i { flex: 0 0 auto; margin-top: 2px; font-size: 15px; }

@media (max-width: 850px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-brand { min-height: 280px; padding: 38px clamp(24px, 7vw, 56px); }
    .auth-logo { width: 168px; margin-bottom: 48px; }
    .auth-brand h1 { max-width: 620px; font-size: clamp(31px, 8vw, 46px); }
    .auth-brand-copy { margin-top: 16px; }
    .auth-trust { margin-top: 24px; }
    .auth-panel { padding: 52px 24px 64px; }
}

@media (max-width: 480px) {
    .auth-brand { min-height: 250px; padding: 30px 22px; }
    .auth-logo { width: 148px; margin-bottom: 38px; }
    .auth-brand-copy { font-size: 14px; }
    .auth-panel { place-items: start center; padding: 40px 18px 54px; }
    .auth-icon { width: 46px; height: 46px; margin-bottom: 22px; }
}

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