﻿:root {
    --bg: #0b1220;
    --bg2: #0a1a33;
    --card: rgba(255,255,255,.08);
    --stroke: rgba(255,255,255,.14);
    --stroke2: rgba(255,255,255,.10);
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.72);
    --muted2: rgba(255,255,255,.60);
    --brand: #4f8cff;
    --brand2: #6ad3ff;
    --danger: #ff5b6e;
    --info: #56c8ff;
    --shadow: 0 18px 50px rgba(0,0,0,.35);
    --radius: 18px;
    --focus: 0 0 0 4px rgba(79,140,255,.25);
}

* {
    box-sizing: border-box;
}

html, body {
    height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif,system-ui,-apple-system,"Segoe UI",Roboto,Arial,sans-serif;
    color: var(--text);
    background: radial-gradient(900px 500px at 15% 10%, rgba(79,140,255,.20), transparent 60%), radial-gradient(900px 500px at 90% 90%, rgba(106,211,255,.18), transparent 60%), linear-gradient(180deg, var(--bg), var(--bg2));
}

a {
    color: rgba(255,255,255,.90);
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 16px;
}

.shell {
    width: 100%;
    max-width: 980px;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 22px;
    align-items: stretch;
}

@media (max-width:900px) {
    .shell {
        grid-template-columns: 1fr;
        max-width: 520px;
    }
}

.hero {
    border-radius: var(--radius);
    padding: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
    border: 1px solid var(--stroke2);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}

    .hero::before {
        content: "";
        position: absolute;
        inset: -1px;
        background: radial-gradient(700px 240px at 40% 0%, rgba(79,140,255,.28), transparent 60%), radial-gradient(600px 260px at 80% 85%, rgba(106,211,255,.22), transparent 60%);
        opacity: .85;
        pointer-events: none;
    }

    .hero > * {
        position: relative;
    }

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.mark {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(79,140,255,1), rgba(106,211,255,1));
    box-shadow: 0 10px 30px rgba(79,140,255,.25);
    display: grid;
    place-items: center;
    font-weight: 900;
    letter-spacing: .08em;
    color: rgba(10,14,20,.9);
}

.brand-name {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

    .brand-name strong {
        font-size: 18px;
        letter-spacing: .10em;
    }

    .brand-name span {
        font-size: 13px;
        color: var(--muted);
    }

.hero-title {
    margin: 18px 0 8px;
    font-size: 28px;
    letter-spacing: -0.02em;
}

.hero-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.55;
}

.trust {
    margin-top: 18px;
    padding: 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.12);
    background: rgba(0,0,0,.18);
    display: grid;
    gap: 10px;
}

.trust-row {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
}

.dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(255,255,255,.75);
    margin-top: 4px;
    flex: 0 0 auto;
}

.card {
    border-radius: var(--radius);
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.05));
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    padding: 24px;
}

.card-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}

.card-title {
    margin: 0;
    font-size: 18px;
    letter-spacing: -0.01em;
}

.card-subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
}

.subtle-top {
    margin-top: -6px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.55;
}

.emphasis {
    font-weight: 800;
}

.muted {
    color: var(--muted);
}

.field {
    margin-top: 14px;
}

label {
    display: block;
    font-size: 13px;
    color: var(--muted);
    margin-bottom: 8px;
}

input[type="email"], input[type="text"] {
    width: 100%;
    padding: 12px 12px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(0,0,0,.24);
    color: var(--text);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}

input::placeholder {
    color: rgba(255,255,255,.45);
}

input:focus {
    border-color: rgba(79,140,255,.75);
    box-shadow: var(--focus);
    background: rgba(0,0,0,.30);
}

.help {
    margin-top: 8px;
    color: var(--muted2);
    font-size: 12.75px;
    line-height: 1.4;
}

.help-tight {
    margin: 0;
}

.actions {
    margin-top: 18px;
    display: grid;
    gap: 10px;
}

.btn {
    appearance: none;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    padding: 12px 14px;
    cursor: pointer;
    font-weight: 700;
    letter-spacing: .01em;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform .05s ease, background .15s ease, border-color .15s ease, opacity .15s ease;
    user-select: none;
}

    .btn:active {
        transform: translateY(1px);
    }

.btn-primary {
    border-color: rgba(79,140,255,.35);
    background: linear-gradient(135deg, rgba(79,140,255,1), rgba(106,211,255,1));
    color: rgba(10,14,20,.92);
    box-shadow: 0 16px 40px rgba(79,140,255,.22);
}

    .btn-primary:hover {
        filter: brightness(1.03);
    }

.btn-secondary {
    background: rgba(255,255,255,.06);
    color: var(--text);
}

    .btn-secondary:hover {
        background: rgba(255,255,255,.08);
    }

.btn[disabled] {
    opacity: .65;
    cursor: not-allowed;
    transform: none;
}

.row-links {
    margin-top: 16px;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 13.5px;
}

.divider {
    height: 1px;
    background: rgba(255,255,255,.12);
    margin: 18px 0;
}

.alert {
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.14);
    padding: 12px 14px;
    background: rgba(0,0,0,.18);
    color: var(--text);
    margin-top: 14px;
}

.alert-info {
    border-color: rgba(86,200,255,.28);
    background: rgba(86,200,255,.10);
}

.alert-danger {
    border-color: rgba(255,91,110,.35);
    background: rgba(255,91,110,.10);
}

.alert strong {
    display: block;
    margin-bottom: 2px;
}

.alert-text {
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.45;
}

.footer {
    margin-top: 14px;
    text-align: center;
    color: var(--muted2);
    font-size: 12.5px;
}

.spinner {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 2px solid rgba(10,14,20,.35);
    border-top-color: rgba(10,14,20,.9);
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* OTP boxes */
.otp-wrap {
    display: grid;
    gap: 10px;
}

.otp-boxes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

@media (max-width:420px) {
    .otp-boxes {
        gap: 8px;
    }
}

.otp-digit {
    text-align: center;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .02em;
    padding: 14px 0;
    border-radius: 16px;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(0,0,0,.24);
    color: var(--text);
    outline: none;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease, transform .05s ease;
    font-variant-numeric: tabular-nums;
}

    .otp-digit:focus {
        border-color: rgba(79,140,255,.75);
        box-shadow: var(--focus);
        background: rgba(0,0,0,.30);
    }
