:root {
    --night: #050806;
    --panel: rgba(10, 18, 13, 0.92);
    --cream: #f3eddf;
    --muted: #9da79f;
    --green: #00e676;
    --green-dark: #00b94f;
    --gold: #e0b54f;
    --danger: #ff6868;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: var(--night); }

body {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    background:
        radial-gradient(circle at 50% 12%, rgba(0, 230, 118, 0.12), transparent 32%),
        linear-gradient(180deg, #07100b 0%, #030504 100%);
    color: var(--cream);
    font-family: 'Inter', sans-serif;
}

.register-shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(170px, 0.72fr) minmax(520px, 1.55fr) minmax(170px, 0.72fr);
    min-height: 100vh;
    isolation: isolate;
}

.register-video-rail {
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: hidden;
    background: #050805;
}

.register-video-rail video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.82) contrast(1.16) brightness(0.56);
    transform: scale(1.035);
}

.register-video-rail.right video { transform: scaleX(-1) scale(1.035); }

.register-video-rail::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(2, 7, 4, 0.35), transparent 35%, rgba(2, 7, 4, 0.7)),
        linear-gradient(90deg, rgba(5, 8, 6, 0.12), rgba(5, 8, 6, 0.82));
}

.register-video-rail.right::after {
    background:
        linear-gradient(180deg, rgba(2, 7, 4, 0.35), transparent 35%, rgba(2, 7, 4, 0.7)),
        linear-gradient(-90deg, rgba(5, 8, 6, 0.12), rgba(5, 8, 6, 0.82));
}

.register-main {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 820px;
    margin: 0 auto;
    padding: 34px 34px 48px;
}

.register-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 32px;
}

.register-brand {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--cream);
    font-weight: 900;
    letter-spacing: 0.08em;
    text-decoration: none;
    text-transform: uppercase;
}

.register-brand img {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 0 0 1px rgba(224, 181, 79, 0.45), 0 0 24px rgba(0, 230, 118, 0.18);
}

.register-back {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.07em;
    text-decoration: none;
    text-transform: uppercase;
}

.register-card {
    position: relative;
    overflow: hidden;
    padding: clamp(24px, 5vw, 48px);
    border: 1px solid rgba(224, 181, 79, 0.24);
    border-radius: 30px;
    background: linear-gradient(145deg, rgba(15, 27, 19, 0.96), rgba(6, 11, 8, 0.98));
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.48), inset 0 1px rgba(255, 255, 255, 0.04);
}

.register-card::before {
    content: "";
    position: absolute;
    width: 260px;
    height: 260px;
    top: -145px;
    right: -85px;
    border: 1px solid rgba(0, 230, 118, 0.22);
    border-radius: 50%;
    box-shadow: 0 0 0 38px rgba(0, 230, 118, 0.025), 0 0 0 76px rgba(224, 181, 79, 0.018);
}

.offer-line {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 16px;
}

.offer-tag {
    padding: 6px 9px;
    border: 1px solid rgba(224, 181, 79, 0.42);
    border-radius: 999px;
    color: var(--gold);
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.offer-line span:last-child {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 700;
}

.register-card h1 {
    position: relative;
    max-width: 590px;
    margin: 0;
    font-family: 'Cormorant Garamond', Georgia, serif;
    font-size: clamp(3.1rem, 7vw, 5.6rem);
    font-style: italic;
    font-weight: 600;
    letter-spacing: -0.055em;
    line-height: 0.82;
}

.register-card h1 strong { color: var(--green); font-weight: 600; }

.register-lead {
    position: relative;
    max-width: 620px;
    margin: 20px 0 28px;
    color: var(--muted);
    font-size: 0.93rem;
    line-height: 1.65;
}

.promo-ticket {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 26px;
    padding: 15px 18px;
    border: 1px dashed rgba(224, 181, 79, 0.58);
    border-radius: 15px;
    background: rgba(224, 181, 79, 0.06);
}

.promo-ticket span { color: #c8b98f; font-size: 0.74rem; line-height: 1.45; }
.promo-ticket strong { color: var(--gold); font-size: 1.05rem; letter-spacing: 0.15em; }

.register-form { position: relative; }

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }

.field label {
    color: #b8c0ba;
    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.field input {
    width: 100%;
    min-height: 51px;
    padding: 0 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 13px;
    outline: none;
    background: rgba(255, 255, 255, 0.045);
    color: var(--cream);
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input:focus {
    border-color: rgba(0, 230, 118, 0.65);
    background: rgba(0, 230, 118, 0.035);
    box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.08);
}

.consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.73rem;
    line-height: 1.5;
}

.consent input { accent-color: var(--green); margin-top: 3px; }

.register-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 56px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--green), var(--green-dark));
    color: #031108;
    cursor: pointer;
    font: 900 0.82rem 'Inter', sans-serif;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    box-shadow: 0 12px 28px rgba(0, 230, 118, 0.2);
}

.register-submit:disabled { cursor: wait; filter: grayscale(0.55); opacity: 0.7; }
.register-submit:hover:not(:disabled) { transform: translateY(-1px); }

.form-message {
    min-height: 22px;
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 700;
    text-align: center;
}

.form-message.error { color: var(--danger); }
.form-message.success { color: var(--green); }

.verification-step[hidden] { display: none; }

.verification-code {
    display: block;
    width: 100%;
    min-height: 72px;
    margin: 24px 0 14px;
    border: 1px solid rgba(224, 181, 79, 0.45);
    border-radius: 16px;
    outline: none;
    background: rgba(224, 181, 79, 0.06);
    color: var(--gold);
    font: 900 2rem 'Inter', sans-serif;
    letter-spacing: 0.35em;
    text-align: center;
}

.verification-actions { display: flex; justify-content: center; margin-top: 15px; }
.verification-actions button { border: 0; background: none; color: #b7c2ba; cursor: pointer; font: 800 0.72rem 'Inter', sans-serif; text-decoration: underline; }

.register-footnote {
    margin: 18px 0 0;
    color: #687069;
    font-size: 0.67rem;
    line-height: 1.55;
    text-align: center;
}

@media (max-width: 980px) {
    .register-shell { grid-template-columns: 110px minmax(0, 1fr) 110px; }
}

@media (max-width: 720px) {
    .register-shell { display: block; }
    .register-video-rail { position: fixed; inset: 0 auto 0 0; width: 28vw; height: 100vh; opacity: 0.36; z-index: -1; }
    .register-video-rail.right { left: auto; right: 0; }
    .register-main { padding: 20px 14px 38px; }
    .register-nav { margin-bottom: 18px; }
    .register-brand span { display: none; }
    .register-card { padding: 26px 19px; border-radius: 23px; }
    .form-grid { grid-template-columns: 1fr; }
    .field.full { grid-column: auto; }
    .promo-ticket { align-items: flex-start; flex-direction: column; gap: 7px; }
}

@media (prefers-reduced-motion: reduce) {
    .register-video-rail video { display: none; }
    *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
