:root {
    --auth-ink: #07121f;
    --auth-panel: #0c1d2b;
    --auth-cyan: #62e6dd;
    --auth-amber: #ffc85a;
    --auth-paper: #f5f7f3;
    --auth-muted: #687681;
}

.auth-brand small {
    margin-left: .18em;
    color: currentColor;
    font-size: .42em;
    font-weight: 800;
}

* { box-sizing: border-box; }

body.auth-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 18% 24%, rgba(98,230,221,.13), transparent 28%),
        linear-gradient(135deg, #06111c, #0b2130 55%, #081522);
    color: #fff;
    font-family: Inter, "Avenir Next", "Segoe UI", Arial, sans-serif;
    -webkit-font-smoothing: antialiased;
}

.auth-ambient {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(90deg, #000, transparent 70%);
}

.auth-header {
    position: relative;
    z-index: 2;
    display: flex;
    width: min(1160px, calc(100% - 48px));
    min-height: 84px;
    align-items: center;
    justify-content: space-between;
    margin: 0 auto;
}

.auth-brand {
    color: #fff;
    font-size: 22px;
    font-weight: 850;
    letter-spacing: -.05em;
    text-decoration: none;
}

.auth-brand span span { color: var(--auth-amber); }

.auth-language {
    display: flex;
    gap: 3px;
    padding: 3px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 99px;
}

.auth-language a {
    display: grid;
    width: 34px;
    height: 28px;
    place-items: center;
    border-radius: 99px;
    color: rgba(255,255,255,.55);
    font-size: 10px;
    font-weight: 800;
    text-decoration: none;
}

.auth-language a.is-active {
    background: #fff;
    color: var(--auth-ink);
}

.auth-layout {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(1160px, calc(100% - 48px));
    min-height: calc(100vh - 84px);
    align-items: center;
    grid-template-columns: minmax(0, 1fr) minmax(430px, .8fr);
    gap: clamp(50px, 8vw, 120px);
    margin: 0 auto;
    padding: 55px 0 90px;
}

.auth-story { max-width: 620px; }

.auth-kicker,
.auth-card-head > span {
    color: var(--auth-cyan);
    font-size: 10px;
    font-weight: 850;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.auth-story h1 {
    margin: 18px 0 24px;
    font-size: clamp(52px, 6.5vw, 86px);
    letter-spacing: -.065em;
    line-height: .98;
}

.auth-story > p {
    max-width: 530px;
    margin: 0;
    color: rgba(255,255,255,.55);
    font-size: 16px;
    line-height: 1.7;
}

.auth-signal {
    display: flex;
    height: 100px;
    align-items: flex-end;
    gap: 8px;
    margin-top: 55px;
}

.auth-signal i {
    width: 8px;
    border-radius: 99px;
    background: linear-gradient(to top, rgba(98,230,221,.15), var(--auth-cyan));
}

.auth-signal i:nth-child(1) { height: 25%; }
.auth-signal i:nth-child(2) { height: 45%; }
.auth-signal i:nth-child(3) { height: 70%; }
.auth-signal i:nth-child(4) { height: 100%; }

.auth-points {
    display: grid;
    gap: 13px;
    margin: 42px 0 0;
    padding: 0;
    list-style: none;
}

.auth-points li {
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255,255,255,.65);
    font-size: 13px;
}

.auth-points i {
    display: grid;
    width: 33px;
    height: 33px;
    place-items: center;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 50%;
    color: var(--auth-amber);
    font-family: Georgia, serif;
    font-size: 10px;
}

.auth-card {
    padding: clamp(30px, 5vw, 52px);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 30px;
    background: var(--auth-paper);
    box-shadow: 0 40px 100px rgba(0,0,0,.28);
    color: var(--auth-ink);
}

.auth-card-head h2 {
    margin: 10px 0 8px;
    font-size: 39px;
    letter-spacing: -.05em;
}

.auth-card-head p {
    margin: 0 0 30px;
    color: var(--auth-muted);
    font-size: 13px;
    line-height: 1.6;
}

.auth-alert {
    margin-bottom: 22px;
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 12px;
    line-height: 1.5;
}

.auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

.auth-alert-error {
    background: rgba(204,61,65,.1);
    color: #a42f38;
}

.auth-alert-success {
    background: rgba(23,157,115,.1);
    color: #117957;
}

.auth-remember {
    display: flex !important;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.auth-remember input {
    width: 18px !important;
    height: 18px;
    margin: 0;
    accent-color: var(--auth-amber);
}

.auth-remember > span {
    display: grid;
    gap: 2px;
}

.auth-remember strong {
    font-size: 12px;
}

.auth-remember small {
    color: var(--auth-muted);
    font-size: 10px;
    line-height: 1.4;
}

.auth-form {
    display: grid;
    gap: 18px;
}

.auth-form label {
    display: grid;
    gap: 8px;
}

.auth-form label > span {
    color: #4d5a64;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.auth-form input {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1px solid rgba(7,18,31,.14);
    border-radius: 13px;
    outline: none;
    background: #fff;
    color: var(--auth-ink);
    font: inherit;
    font-size: 14px;
    transition: border .2s ease, box-shadow .2s ease;
}

.auth-form input:focus {
    border-color: var(--auth-cyan);
    box-shadow: 0 0 0 4px rgba(98,230,221,.14);
}

.auth-form label small {
    color: var(--auth-muted);
    font-size: 10px;
}

.auth-form-row {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr 1fr;
}

.auth-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

.auth-security {
    min-height: 66px;
    overflow: hidden;
}

.auth-submit {
    display: flex;
    width: 100%;
    min-height: 54px;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    border: 0;
    border-radius: 14px;
    background: var(--auth-ink);
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-size: 13px;
    font-weight: 750;
    transition: transform .2s ease, background .2s ease;
}

.auth-submit:hover {
    background: #10283b;
    transform: translateY(-2px);
}

.auth-submit:disabled {
    cursor: wait;
    opacity: .7;
    transform: none;
}

.auth-switch {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin-top: 24px;
    color: var(--auth-muted);
    font-size: 12px;
}

.auth-switch a {
    color: #0c8986;
    font-weight: 750;
    text-decoration: none;
}

@media (max-width: 850px) {
    .auth-layout {
        width: min(600px, calc(100% - 32px));
        grid-template-columns: 1fr;
        gap: 36px;
        padding-top: 25px;
    }

    .auth-header {
        width: calc(100% - 32px);
        min-height: 70px;
    }

    .auth-story h1 { font-size: clamp(43px, 12vw, 64px); }
    .auth-signal { display: none; }
    .auth-story { text-align: center; }
    .auth-story > p { margin-inline: auto; }
    .auth-points { max-width: 340px; margin-inline: auto; text-align: left; }
}

@media (max-width: 520px) {
    .auth-layout { padding-bottom: 30px; }
    .auth-story h1 { margin-bottom: 18px; }
    .auth-story > p { font-size: 14px; }
    .auth-card { padding: 27px 20px; border-radius: 23px; }
    .auth-card-head h2 { font-size: 33px; }
    .auth-form-row { grid-template-columns: 1fr; }
    .auth-switch { align-items: center; flex-direction: column; }
    .cf-turnstile { transform: scale(.9); transform-origin: left center; }
}
