:root {
    --bg1: #0b1220;
    --bg2: #0f1b33;
    --card: rgba(255,255,255,.06);
    --border: rgba(255,255,255,.10);
    --text: rgba(255,255,255,.92);
    --muted: rgba(255,255,255,.68);
    --danger-bg: rgba(255,0,0,.08);
    --danger-border: rgba(255,0,0,.18);
    --focus: rgba(255,255,255,.18);
    --shadow: 0 20px 60px rgba(0,0,0,.45);
    --r: 16px;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
    color: var(--text);
    background: radial-gradient(1200px 600px at 20% 10%, rgba(70,120,255,.18), transparent 60%), radial-gradient(900px 500px at 80% 20%, rgba(0,220,200,.12), transparent 55%), linear-gradient(180deg, var(--bg1), var(--bg2));
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.wrap {
    width: 100%;
    max-width: 420px;
}

.brand {
    display: flex;
    justify-content: center;
    margin-bottom: 18px;
}

.logo-img {
    max-height: 80px;
    max-width: 100%;
    object-fit: contain;
}

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--r);
    box-shadow: var(--shadow);
    padding: 22px;
    backdrop-filter: blur(10px);
}

.step {
    margin: 0 0 8px 0;
    color: rgba(255,255,255,.58);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.title {
    font-size: 22px;
    line-height: 1.12;
    margin: 0 0 8px 0;
}

.subtitle {
    margin: 0 0 18px 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
}

.row {
    margin-bottom: 12px;
}

label {
    display: block;
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 6px 0;
    user-select: none;
}

input[type="text"],
input[type="email"] {
    width: 100%;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(0,0,0,.18);
    color: var(--text);
    outline: none;
}

input:focus {
    border-color: var(--focus);
    box-shadow: 0 0 0 3px rgba(255,255,255,.06);
}

button {
    width: 100%;
    margin-top: 14px;
    padding: 11px 12px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.10);
    color: var(--text);
    cursor: pointer;
    font-weight: 650;
}

button:hover {
    background: rgba(255,255,255,.14);
}

button:active {
    transform: translateY(1px);
}

.language-picker {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.language-flag-button {
    position: relative;
    display: inline-grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 9px;
    align-items: center;
    width: auto;
    min-height: 46px;
    margin: 0;
    padding: 8px 11px;
    border-color: var(--border);
    background: rgba(0,0,0,.16);
    font-size: 13px;
}

.language-flag-button img,
.language-fallback-flag {
    width: 32px;
    height: 24px;
    border-radius: 4px;
    border: 1px solid rgba(255,255,255,.24);
    background: #fff;
}

.language-flag-button img {
    display: block;
    object-fit: cover;
}

.language-fallback-flag {
    display: inline-grid;
    place-items: center;
    color: #172033;
    font-size: 10px;
    font-weight: 800;
}

.language-flag-button.is-current {
    border-color: rgba(128,215,255,.92);
    box-shadow: 0 0 0 3px rgba(128,215,255,.16);
    background: rgba(128,215,255,.14);
}

.language-name {
    white-space: nowrap;
}

.language-empty {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 13px;
}

.error {
    margin: 0 0 12px 0;
    padding: 10px 12px;
    border-radius: 12px;
    background: var(--danger-bg);
    border: 1px solid var(--danger-border);
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
}

.validation-summary-valid {
    display: none;
}

.success {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(0,255,140,.10);
    border: 1px solid rgba(0,255,140,.18);
    color: var(--text);
    font-size: 13px;
    line-height: 1.35;
}

.field-error {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    color: rgba(255,180,180,.95);
}

.field-validation-valid {
    display: none;
}

.mail-target {
    color: var(--text);
    font-weight: 650;
    overflow-wrap: anywhere;
}

.foot {
    margin-top: 12px;
    color: var(--muted);
    font-size: 12px;
    text-align: center;
}

@media (max-width: 420px) {
    body {
        padding: 18px;
    }

    .card {
        padding: 20px;
    }

    .title {
        font-size: 21px;
    }
}
