:root {
    color-scheme: dark;
    --page: #080808;
    --panel: #141414;
    --panel-soft: #101012;
    --line: #2A2630;
    --purple: #9B5CFF;
    --cyan: #00F5FF;
    --text: #F5F3F8;
    --muted: #96919F;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body {
    min-height: 100vh; color: var(--text); font-family: Inter, "Segoe UI", Arial, sans-serif;
    background: radial-gradient(ellipse at 12% 5%, rgba(155,92,255,.12), transparent 34%),
                radial-gradient(ellipse at 92% 80%, rgba(0,245,255,.055), transparent 30%), var(--page);
}
.register-page { padding: 34px 22px 26px; }
.register-shell { width: min(100%, 790px); margin: 0 auto; }
.register-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 0 2px 25px; }
.register-brand { display: inline-flex; align-items: center; gap: 11px; color: #F5F3F8; text-decoration: none; font-size: 13px; font-weight: 800; letter-spacing: 1.1px; }
.brand-mark { width: 35px; height: 35px; display: grid; place-items: center; border: 1px solid rgba(155,92,255,.5); border-radius: 10px; background: rgba(155,92,255,.13); color: #C9A5FF; font-size: 12px; letter-spacing: 0; }
.setup-label { display: inline-flex; align-items: center; gap: 8px; color: #A59EAE; font-size: 10px; font-weight: 700; letter-spacing: 1.2px; }
.setup-label i { width: 7px; height: 7px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 12px rgba(155,92,255,.7); }
.register-card { padding: 38px 42px 30px; border: 1px solid var(--line); border-radius: 17px; background: rgba(20,20,20,.96); box-shadow: 0 28px 90px rgba(0,0,0,.42), 0 0 60px rgba(155,92,255,.045); }
.eyebrow { color: #A77AE5; font-size: 10px; font-weight: 800; letter-spacing: 1.7px; }
.register-intro h1 { margin: 11px 0 9px; font-size: clamp(25px, 4vw, 32px); line-height: 1.18; letter-spacing: -.7px; }
.register-intro p { max-width: 550px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.setup-notice { display: flex; align-items: flex-start; gap: 13px; margin: 26px 0 30px; padding: 15px 16px; border: 1px solid rgba(155,92,255,.22); border-radius: 11px; background: rgba(155,92,255,.065); }
.notice-icon { flex: 0 0 22px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: rgba(155,92,255,.2); color: #C8A8F5; font-size: 13px; font-weight: 800; }
.setup-notice strong, .setup-notice span { display: block; }
.setup-notice strong { margin: 1px 0 5px; color: #E9DDF8; font-size: 12px; }
.setup-notice div span { color: #A59CAD; font-size: 11px; line-height: 1.55; }
.form-section { padding-bottom: 27px; border-bottom: 1px solid #29252E; }
.secondary-section { padding-top: 26px; border-bottom: 0; }
.section-heading { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 20px; }
.section-heading > span { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid #393143; border-radius: 8px; color: #B991EE; font-size: 10px; font-weight: 800; }
.section-heading h2 { margin: 0; color: #F0EDF4; font-size: 14px; font-weight: 700; }
.section-heading p { margin: 5px 0 0; color: #77717F; font-size: 11px; }
.field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 19px 17px; }
.field { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field-wide { grid-column: 1 / -1; }
.field label { color: #C9C4D0; font-size: 12px; font-weight: 650; }
.field label b { color: #B98AF5; font-weight: 700; }
.field input, .field select {
    display: block; width: 100%; height: 45px; min-width: 0; padding: 0 13px;
    border: 1px solid #332E39; border-radius: 8px; outline: none; background: #0D0C0F;
    color: var(--text); font: inherit; font-size: 13px; transition: border-color .18s, box-shadow .18s;
}
.field input::placeholder { color: #625D68; }
.field input:focus, .field select:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(155,92,255,.12); }
.field small { min-height: 12px; color: #706B76; font-size: 10px; }
.register-message { display: none; margin: 0 0 18px; padding: 11px 13px; border: 1px solid rgba(255,95,95,.25); border-radius: 8px; background: rgba(255,75,75,.07); color: #FFAAAA; font-size: 12px; line-height: 1.5; }
.register-message.active { display: block; }
.register-message.success { border-color: rgba(0,245,255,.2); background: rgba(0,245,255,.05); color: var(--cyan); }
.register-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 25px; }
.back-link { color: #9992A0; font-size: 12px; text-decoration: none; white-space: nowrap; }
.back-link:hover { color: var(--cyan); }
.register-button { min-width: 205px; min-height: 47px; display: inline-flex; align-items: center; justify-content: center; gap: 20px; padding: 0 18px; border: 0; border-radius: 9px; background: linear-gradient(105deg, #8750DC, #9B5CFF); color: white; font-size: 12px; font-weight: 750; cursor: pointer; transition: filter .18s, transform .18s; }
.register-button:hover { filter: brightness(1.12); }
.register-button:active { transform: translateY(1px); }
.register-button:disabled { opacity: .6; cursor: wait; }
.terms-note { margin: 15px 0 0; color: #69636F; font-size: 10px; line-height: 1.5; text-align: right; }
.register-footer { margin-top: 22px; color: #625D68; font-size: 10px; letter-spacing: 1px; text-align: center; }
.register-footer span:first-child { color: #A77AE5; }
.footer-separator { padding: 0 8px; color: #4B4650; }
@media (max-width: 620px) {
    .register-page { padding: 20px 12px; }
    .register-top { margin-bottom: 17px; }
    .setup-label { font-size: 8px; letter-spacing: .7px; }
    .register-card { padding: 27px 21px 23px; border-radius: 13px; }
    .register-intro h1 { font-size: 25px; }
    .field-grid { grid-template-columns: 1fr; gap: 15px; }
    .field-wide { grid-column: auto; }
    .register-actions { align-items: stretch; flex-direction: column-reverse; }
    .register-button { width: 100%; }
    .back-link { text-align: center; }
    .terms-note { text-align: center; }
}
