@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Poppins:wght@600;700;800&display=swap");

:root {
    --primary: #1167ff;
    --primary-dark: #0751d4;
    --navy: #0e2048;
    --muted: #61708c;
    --line: #e3e9f3;
    --bg: #f6f9ff;
    --card: #ffffff;
    --success: #11a56a;
    --danger: #e33f53;
    --warning: #de8a00;
    --shadow-xl: 0 30px 80px rgba(15, 36, 75, .14);
    --radius: 28px;
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--navy);
    background:
        radial-gradient(circle at 10% 10%, rgba(17,103,255,.07), transparent 30%),
        radial-gradient(circle at 92% 85%, rgba(35,185,132,.06), transparent 28%),
        var(--bg);
    font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

a { color: inherit; text-decoration: none; }

.auth-shell {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(440px, 47%) minmax(520px, 53%);
    overflow: hidden;
}

.auth-visual {
    position: relative;
    min-height: 100vh;
    padding: 36px 6vw 40px;
    overflow: hidden;
    isolation: isolate;
    color: #fff;
    background:
        linear-gradient(145deg, #0a2d77 0%, #0d5de8 48%, #0a8cde 100%);
}

.auth-visual::before {
    content: "";
    position: absolute;
    inset: auto -10% -18% -20%;
    height: 65%;
    border-radius: 50%;
    background: radial-gradient(circle at 45% 30%, rgba(255,255,255,.18), rgba(255,255,255,0) 64%);
    z-index: -2;
}

.auth-visual::after {
    content: "";
    position: absolute;
    width: 520px;
    height: 520px;
    left: -230px;
    bottom: -190px;
    border: 70px solid rgba(255,255,255,.07);
    border-radius: 50%;
    z-index: -2;
}

.visual-grid {
    position: absolute;
    inset: 0;
    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: 38px 38px;
    mask-image: linear-gradient(to bottom, black, transparent 80%);
    z-index: -1;
}

.visual-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    z-index: -1;
}

.orb-a {
    width: 320px;
    height: 320px;
    top: -130px;
    right: -90px;
    background: rgba(49, 211, 186, .18);
}

.orb-b {
    width: 230px;
    height: 230px;
    bottom: 5%;
    right: 4%;
    background: rgba(255, 180, 51, .16);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.brand-light { color: #fff; }

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 15px;
    font-weight: 800;
    color: var(--primary);
    background: rgba(255,255,255,.96);
    box-shadow: 0 10px 30px rgba(0,0,0,.12);
}

.brand-mark span {
    color: #f28b00;
    margin: 0 1px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-family: Poppins, sans-serif;
    font-size: 20px;
    letter-spacing: -.4px;
}

.brand small {
    margin-top: 1px;
    font-size: 11px;
    letter-spacing: .4px;
    opacity: .78;
}

.visual-copy {
    max-width: 640px;
    margin-top: clamp(90px, 14vh, 160px);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 35px;
    padding: 7px 14px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    background: rgba(255,255,255,.08);
    color: #d8e9ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1px;
}

.visual-copy h1 {
    margin: 24px 0 18px;
    font-family: Poppins, sans-serif;
    font-size: clamp(42px, 4.8vw, 74px);
    line-height: .99;
    letter-spacing: -2.8px;
}

.visual-copy h1 em {
    color: #ffd26a;
    font-style: normal;
}

.visual-copy p {
    max-width: 580px;
    margin: 0;
    color: rgba(255,255,255,.78);
    font-size: 16px;
    line-height: 1.75;
}

.mini-benefits {
    display: grid;
    gap: 13px;
    margin-top: 34px;
}

.mini-benefits > div {
    display: flex;
    align-items: center;
    gap: 13px;
}

.mini-benefits > div > span {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.15);
    color: #fff;
    font-weight: 800;
}

.mini-benefits b,
.mini-benefits small {
    display: block;
}

.mini-benefits b { font-size: 13px; }
.mini-benefits small { color: rgba(255,255,255,.6); margin-top: 2px; }

.floating-card {
    position: absolute;
    min-width: 174px;
    padding: 16px 18px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 20px;
    background: rgba(255,255,255,.10);
    backdrop-filter: blur(16px);
    box-shadow: 0 18px 50px rgba(0,0,0,.12);
}

.floating-card strong,
.floating-card span {
    display: block;
}

.floating-card strong { font: 800 25px Poppins, sans-serif; }
.floating-card span { margin-top: 2px; font-size: 11px; color: rgba(255,255,255,.68); }

.card-one { right: 8%; bottom: 15%; }
.card-two { right: 18%; bottom: 7%; }

.auth-panel {
    min-height: 100vh;
    padding: 40px clamp(26px, 6vw, 86px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: rgba(255,255,255,.78);
}

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

.auth-card {
    width: min(100%, 500px);
    margin: 0 auto;
    padding: 42px;
    border: 1px solid rgba(220,228,240,.9);
    border-radius: var(--radius);
    background: rgba(255,255,255,.94);
    box-shadow: var(--shadow-xl);
}

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

.auth-heading { margin-bottom: 28px; }
.icon-badge {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    border-radius: 17px;
    background: #eaf2ff;
    font-size: 24px;
    margin-bottom: 18px;
}

.auth-heading h2 {
    margin: 0;
    font: 800 31px/1.15 Poppins, sans-serif;
    letter-spacing: -1px;
}

.auth-heading p {
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.65;
}

.alert {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 14px;
    font-size: 13px;
    line-height: 1.5;
    background: #eef5ff;
    color: #20539e;
    border: 1px solid #dceaff;
}

.alert.success { background: #ecfbf5; color: #08764b; border-color: #c7f1df; }
.alert.danger { background: #fff0f2; color: #a8293b; border-color: #ffd5db; }
.alert.warning { background: #fff8e8; color: #936100; border-color: #ffe9ae; }

.field { margin-bottom: 19px; }

.field label,
.label-row label {
    display: block;
    margin-bottom: 8px;
    color: #23385e;
    font-size: 12px;
    font-weight: 800;
}

.label-row {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: center;
}

.label-row a,
.switch-text a,
.auth-note a {
    color: var(--primary);
    font-weight: 700;
}

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #7e8da7;
    font-size: 14px;
    pointer-events: none;
}

.input-wrap input {
    width: 100%;
    height: 53px;
    padding: 0 50px 0 43px;
    border: 1px solid var(--line);
    border-radius: 15px;
    outline: none;
    color: var(--navy);
    background: #fbfcff;
    transition: .18s ease;
}

.input-wrap input::placeholder { color: #99a5b7; }

.input-wrap input:focus {
    border-color: #83adff;
    box-shadow: 0 0 0 4px rgba(17,103,255,.09);
    background: #fff;
}

.input-wrap input.input-ok { border-color: #44bb87; box-shadow: 0 0 0 4px rgba(17,165,106,.08); }
.input-wrap input.input-bad { border-color: #ef7a88; }

.password-toggle {
    position: absolute;
    right: 9px;
    border: 0;
    background: transparent;
    color: var(--primary);
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    padding: 9px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.check {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: #64728a;
    font-size: 12px;
}

.check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.check > span {
    width: 19px;
    height: 19px;
    border: 1px solid #cbd5e5;
    border-radius: 6px;
    background: #fff;
    position: relative;
    transition: .15s ease;
}

.check input:checked + span {
    background: var(--primary);
    border-color: var(--primary);
}

.check input:checked + span::after {
    content: "✓";
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #fff;
    font-size: 12px;
    font-weight: 900;
}

.terms-check {
    margin: 3px 0 20px;
    align-items: flex-start;
}

.terms-check > small {
    line-height: 1.55;
    color: #65738b;
}

.primary-btn,
.outline-btn {
    width: 100%;
    min-height: 53px;
    border-radius: 15px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 17px 0 21px;
    font-weight: 800;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.primary-btn {
    border: 1px solid transparent;
    color: #fff;
    background: linear-gradient(135deg, #176dff, #0755e6);
    box-shadow: 0 13px 27px rgba(17,103,255,.22);
}

.primary-btn:hover { transform: translateY(-2px); box-shadow: 0 17px 34px rgba(17,103,255,.27); }

.primary-btn b {
    width: 28px;
    height: 28px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.14);
}

.primary-btn:disabled { opacity: .72; cursor: wait; transform: none; }

.outline-btn {
    justify-content: center;
    color: var(--primary);
    border: 1px solid #b8d0ff;
    background: #fff;
}

.outline-btn:hover { background: #f6f9ff; }

.link-button { text-decoration: none; }

.divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 21px 0;
    color: #9aa7b9;
    font-size: 11px;
}

.divider::before,
.divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e8edf4;
}

.auth-note {
    margin: 20px 0 0;
    color: #99a5b7;
    font-size: 10px;
    line-height: 1.6;
    text-align: center;
}

.switch-text {
    margin: 19px 0 0;
    color: #758299;
    text-align: center;
    font-size: 12px;
}

.back-link {
    display: block;
    margin-top: 24px;
    text-align: center;
    color: #6e7d95;
    font-size: 12px;
    font-weight: 700;
}

.auth-footer {
    margin: 22px auto 0;
    width: min(100%, 640px);
    color: #99a5b7;
    font-size: 10px;
    text-align: center;
}

.strength { margin-top: 8px; }
.strength > i {
    display: inline-block;
    width: calc(25% - 4px);
    height: 4px;
    margin-right: 4px;
    border-radius: 99px;
    background: #e7ebf2;
}
.strength > i.on:nth-child(1) { background: #ef6f74; }
.strength > i.on:nth-child(2) { background: #e9a83a; }
.strength > i.on:nth-child(3) { background: #5aa9e6; }
.strength > i.on:nth-child(4) { background: #24b779; }

.strength small {
    display: block;
    margin-top: 6px;
    color: #9aa5b5;
    font-size: 10px;
}

.stats-row {
    display: flex;
    gap: 46px;
    margin-top: 36px;
}

.stats-row strong {
    display: block;
    font: 800 28px Poppins, sans-serif;
}

.stats-row span {
    display: block;
    margin-top: 2px;
    color: rgba(255,255,255,.62);
    font-size: 11px;
}

.security-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 34px;
}

.security-pills span {
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255,255,255,.09);
    border: 1px solid rgba(255,255,255,.12);
    color: rgba(255,255,255,.76);
    font-size: 11px;
}

.help-box {
    margin-top: 19px;
    padding: 15px;
    border: 1px solid #dfe7f3;
    border-radius: 15px;
    background: #f8fbff;
}

.help-box strong,
.help-box span {
    display: block;
}

.help-box strong { font-size: 12px; }
.help-box span { margin-top: 4px; color: #8190a5; font-size: 11px; line-height: 1.55; }

.compact-visual .visual-copy { margin-top: 20vh; }

.maintenance-wrap {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 30px;
}

.maintenance-card {
    width: min(100%, 620px);
    padding: 58px 46px;
    text-align: center;
    border: 1px solid #dfe7f3;
    border-radius: 30px;
    background: #fff;
    box-shadow: var(--shadow-xl);
}

.maintenance-icon {
    width: 82px;
    height: 82px;
    margin: 0 auto 24px;
    display: grid;
    place-items: center;
    border-radius: 25px;
    background: #eef5ff;
    font-size: 34px;
}

.maintenance-card .eyebrow {
    color: var(--primary);
    border-color: #d8e7ff;
    background: #f4f8ff;
}

.maintenance-card h1 {
    margin: 19px 0 10px;
    font: 800 42px Poppins, sans-serif;
    letter-spacing: -1.8px;
}

.maintenance-card p {
    margin: 0 auto;
    max-width: 480px;
    color: var(--muted);
    line-height: 1.7;
    font-size: 14px;
}

.maintenance-line {
    margin: 27px 0 20px;
}

.maintenance-line span {
    display: block;
    width: 130px;
    height: 5px;
    margin: auto;
    border-radius: 99px;
    background: linear-gradient(90deg, #f28b00, #fff, #13a365, #176dff);
}

.maintenance-card small {
    color: #9ba6b5;
}

@media (max-width: 1100px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-visual { min-height: 380px; padding-bottom: 60px; }
    .visual-copy { margin-top: 80px; }
    .floating-card { display: none; }
    .auth-panel { min-height: auto; padding: 38px 22px 42px; }
    .auth-mobile-brand { display: block; margin: 0 auto 20px; width: min(100%, 640px); }
}

@media (max-width: 680px) {
    .auth-visual { min-height: 330px; padding: 24px 22px 46px; }
    .brand-mark { width: 44px; height: 44px; border-radius: 13px; }
    .brand strong { font-size: 18px; }
    .visual-copy { margin-top: 58px; }
    .visual-copy h1 { font-size: 39px; letter-spacing: -1.8px; }
    .visual-copy p { font-size: 13px; line-height: 1.6; }
    .mini-benefits { display: none; }
    .auth-panel { padding: 24px 15px 34px; }
    .auth-card { padding: 27px 20px; border-radius: 23px; }
    .auth-heading h2 { font-size: 26px; }
    .form-grid { grid-template-columns: 1fr; gap: 0; }
    .stats-row { gap: 25px; }
    .stats-row strong { font-size: 22px; }
    .maintenance-card { padding: 42px 23px; }
    .maintenance-card h1 { font-size: 33px; }
}
