: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;
    --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;
}

/* ===== Fondo ===== */
.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 ===== */
.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: 980px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    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);
}

/* ===== Brand ===== */
.brand {
    position: relative;
    padding: 48px 44px;
    min-height: 540px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    border-right: 1px solid var(--bord);
    background: radial-gradient(600px 400px at 15% 0%, rgba(232,114,26,.22), transparent 60%), linear-gradient(160deg, #0c1e3d 0%, #0a1932 100%);
}

.brand-top {
    display: flex;
    align-items: center;
    gap: 14px
}

.brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    line-height: 1;
    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;
}

.brand-name {
    font-size: 24px;
    font-weight: 900;
    letter-spacing: .3px
}

.brand-tag {
    font-size: 12.5px;
    color: var(--txm);
    margin-top: 2px;
    letter-spacing: .3px
}

.brand-hero {
    margin: 44px 0 28px
}

    .brand-hero h1 {
        font-size: 34px;
        font-weight: 800;
        line-height: 1.15;
        margin-bottom: 14px;
    }

        .brand-hero h1 .or {
            color: var(--or)
        }

    .brand-hero p {
        color: var(--txm);
        font-size: 15px;
        line-height: 1.6;
        max-width: 44ch;
    }

.brand-feats {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px
}

    .brand-feats li {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 14px;
        color: var(--tx);
    }

    .brand-feats .ico {
        width: 34px;
        height: 34px;
        border-radius: 10px;
        display: flex;
        align-items: center;
        justify-content: center;
        background: rgba(232,114,26,.14);
        border: 1px solid rgba(232,114,26,.28);
        font-size: 16px;
    }

.brand-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--txd);
    font-size: 12px;
}

    .brand-foot .dot {
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: var(--gr);
        box-shadow: 0 0 10px var(--gr)
    }

/* ===== Form side ===== */
.pane {
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

    .pane h2 {
        font-size: 26px;
        font-weight: 800;
        margin-bottom: 6px;
    }

    .pane .sub {
        color: var(--txm);
        font-size: 14px;
        margin-bottom: 28px
    }

.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-err .ico {
        font-size: 16px;
        line-height: 1
    }

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

        .alert-err ul li {
            margin-top: 2px
        }

.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 12px 13px 0;
    }

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

    .input-wrap .toggle {
        background: transparent;
        border: 0;
        color: var(--txm);
        padding: 0 14px;
        font-size: 16px;
        cursor: pointer;
        height: 100%;
        display: flex;
        align-items: center;
    }

        .input-wrap .toggle:hover {
            color: var(--or)
        }

.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
}

.row-extra {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 6px 0 22px;
    flex-wrap: wrap;
    gap: 8px;
}

.check {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13.5px;
    color: var(--txm);
    user-select: none;
}

    .check input {
        appearance: none;
        -webkit-appearance: none;
        width: 18px;
        height: 18px;
        border-radius: 5px;
        border: 1.5px solid var(--bord2);
        background: rgba(8,18,38,.55);
        display: inline-grid;
        place-content: center;
        cursor: pointer;
        transition: all .15s;
    }

        .check input:checked {
            background: var(--or);
            border-color: var(--or);
        }

            .check input:checked::after {
                content: "✓";
                color: #fff;
                font-size: 12px;
                font-weight: 800;
                line-height: 1;
            }

.link {
    color: var(--or);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

    .link:hover {
        text-decoration: underline
    }

.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, box-shadow .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)
    }
}

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

/* ===== Responsive ===== */
@media (max-width: 900px) {
    .card {
        grid-template-columns: 1fr;
        max-width: 520px
    }

    .brand {
        min-height: auto;
        padding: 32px 28px 28px;
        border-right: 0;
        border-bottom: 1px solid var(--bord);
    }

    .brand-hero {
        margin: 22px 0 18px
    }

        .brand-hero h1 {
            font-size: 26px
        }

        .brand-hero p {
            font-size: 14px
        }

    .brand-feats {
        display: none
    }

    .pane {
        padding: 30px 28px 36px
    }
}

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

    .brand {
        padding: 26px 22px 22px
    }

    .pane {
        padding: 26px 22px 30px
    }

    .brand-name {
        font-size: 21px
    }

    .brand-hero h1 {
        font-size: 23px
    }

    .pane h2 {
        font-size: 22px
    }
}
