:root {
    --bg: #0e1f3d;
    --bg2: #122448;
    --bg3: #163060;
    --surf: #1a3060;
    --surf2: #1f3a72;
    --bord: rgba(255,255,255,.09);
    --bord2: rgba(255,255,255,.16);
    --or: #E8721A;
    --or-dim: rgba(232,114,26,.16);
    --or-glow: rgba(232,114,26,.35);
    --gr: #22c55e;
    --gr-dim: rgba(34,197,94,.15);
    --rd: #ef4444;
    --yw: #eab308;
    --bl: #38bdf8;
    --tx: #f5f7fb;
    --txm: #b8c5d9;
    --txd: #7a8aa6;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0
}

html, body {
    height: 100%
}

body {
    font-family: 'Nunito',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;
    color: var(--tx);
    background: var(--bg);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.bg-wrap {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    background: radial-gradient(1200px 800px at -10% -20%, rgba(232,114,26,.20), transparent 60%), radial-gradient(900px 700px at 110% 120%, rgba(56,189,248,.14), transparent 60%), linear-gradient(160deg, #081428 0%, var(--bg) 55%, #0a1a36 100%);
}

    .bg-wrap::before, .bg-wrap::after {
        content: "";
        position: absolute;
        border-radius: 50%;
        filter: blur(90px);
        opacity: .45;
        pointer-events: none;
    }

    .bg-wrap::before {
        width: 520px;
        height: 520px;
        top: -140px;
        left: -140px;
        background: radial-gradient(circle, var(--or) 0%, transparent 70%);
    }

    .bg-wrap::after {
        width: 480px;
        height: 480px;
        bottom: -160px;
        right: -160px;
        background: radial-gradient(circle, var(--bl) 0%, transparent 70%);
    }

.bg-grid {
    position: absolute;
    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: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
    mask-image: radial-gradient(ellipse at center, black 30%, transparent 75%);
}

.shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.card {
    width: 100%;
    max-width: 480px;
    background: linear-gradient(180deg, rgba(31,58,114,.72), rgba(26,48,96,.72));
    border: 1px solid var(--bord2);
    border-radius: 22px;
    box-shadow: 0 30px 80px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.03) inset;
    overflow: hidden;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    padding: 44px 40px;
}

.head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin-bottom: 26px;
}

.logo {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 34px;
    line-height: 1;
    margin-bottom: 16px;
    background: linear-gradient(145deg, var(--or), #c25f13);
    box-shadow: 0 10px 28px var(--or-glow), 0 0 0 1px rgba(255,255,255,.1) inset;
}

.head h2 {
    font-size: 24px;
    font-weight: 800;
    margin-bottom: 8px
}

.head .sub {
    color: var(--txm);
    font-size: 14px;
    line-height: 1.5;
    max-width: 36ch
}

.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 13.5px;
    line-height: 1.45;
    margin-bottom: 16px;
    border: 1px solid;
}

.alert-err {
    background: rgba(239,68,68,.10);
    border-color: rgba(239,68,68,.35);
    color: #fecaca
}

.alert-ok {
    background: rgba(34,197,94,.10);
    border-color: rgba(34,197,94,.35);
    color: #bbf7d0
}

.alert-box .ico {
    font-size: 16px;
    line-height: 1.2
}

.alert-box .body {
    flex: 1
}

.field {
    margin-bottom: 14px
}

    .field label {
        display: block;
        font-size: 12px;
        font-weight: 700;
        letter-spacing: .6px;
        text-transform: uppercase;
        color: var(--txm);
        margin-bottom: 8px;
    }

.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    background: rgba(8,18,38,.55);
    border: 1px solid var(--bord2);
    border-radius: 12px;
    transition: border-color .15s, box-shadow .15s, background .15s;
}

    .input-wrap:focus-within {
        border-color: var(--or);
        box-shadow: 0 0 0 3px var(--or-dim);
        background: rgba(8,18,38,.75);
    }

    .input-wrap .lead {
        padding: 0 10px 0 14px;
        font-size: 16px;
        color: var(--txd);
        pointer-events: none;
    }

    .input-wrap input {
        flex: 1;
        background: transparent;
        border: 0;
        outline: none;
        color: var(--tx);
        font-size: 15px;
        font-family: inherit;
        padding: 13px 14px 13px 0;
    }

        .input-wrap input::placeholder {
            color: var(--txd)
        }

.field .hint {
    display: none;
    margin-top: 6px;
    font-size: 12px;
    color: var(--rd)
}

.field.invalid .input-wrap {
    border-color: var(--rd);
    box-shadow: 0 0 0 3px rgba(239,68,68,.18)
}

.field.invalid .hint {
    display: block
}

.info {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: rgba(56,189,248,.08);
    border: 1px solid rgba(56,189,248,.25);
    color: #cfeaff;
    padding: 11px 13px;
    border-radius: 12px;
    font-size: 12.5px;
    line-height: 1.5;
    margin: 4px 0 20px;
}

    .info .ico {
        font-size: 15px;
        line-height: 1.2
    }

.btn-submit {
    width: 100%;
    padding: 13px 18px;
    background: linear-gradient(145deg, var(--or), #c25f13);
    color: #fff;
    border: 0;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 800;
    letter-spacing: .3px;
    cursor: pointer;
    font-family: inherit;
    box-shadow: 0 10px 24px var(--or-glow), 0 0 0 1px rgba(255,255,255,.08) inset;
    transition: transform .08s, filter .15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

    .btn-submit:hover {
        filter: brightness(1.07)
    }

    .btn-submit:active {
        transform: translateY(1px)
    }

    .btn-submit[disabled] {
        opacity: .7;
        cursor: not-allowed
    }

    .btn-submit .spinner {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 2px solid rgba(255,255,255,.4);
        border-top-color: #fff;
        animation: spin .7s linear infinite;
        display: none;
    }

    .btn-submit.loading .label {
        opacity: .7
    }

    .btn-submit.loading .spinner {
        display: inline-block
    }

@keyframes spin {
    to {
        transform: rotate(360deg)
    }
}

.back {
    display: flex;
    justify-content: center;
    margin-top: 18px;
}

    .back a {
        color: var(--txm);
        font-size: 13.5px;
        font-weight: 600;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 6px;
    }

        .back a:hover {
            color: var(--or)
        }

.foot {
    margin-top: 22px;
    text-align: center;
    font-size: 12.5px;
    color: var(--txd);
}

@media (max-width: 480px) {
    .shell {
        padding: 14px
    }

    .card {
        padding: 32px 24px
    }

    .head h2 {
        font-size: 21px
    }

    .logo {
        width: 58px;
        height: 58px;
        font-size: 30px
    }
}
