:root {
  --bg: #06152e;
  --panel: rgba(12, 34, 68, .76);
  --line: rgba(154, 195, 255, .15);
  --text: #edf5ff;
  --muted: #91a8c8;
  --blue: #4b9dff;
  --cyan: #63d8ff;
  --font: "Plus Jakarta Sans", sans-serif;
}
* { box-sizing: border-box; }
html { min-height: 100%; scroll-behavior: smooth; }
body {
  min-height: 100vh; margin: 0; padding: 42px 24px;
  display: grid; place-items: center; overflow-x: hidden;
  color: var(--text); font-family: var(--font);
  background: radial-gradient(ellipse at 15% 15%, #123d78 0, transparent 42%),
              radial-gradient(ellipse at 85% 85%, #092e5d 0, transparent 40%), var(--bg);
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.background-grid {
  position: fixed; inset: 0; pointer-events: none; opacity: .18;
  background-image: linear-gradient(rgba(112,170,255,.08) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(112,170,255,.08) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(to bottom, black, transparent 90%);
}
.ambient { position: fixed; width: 340px; height: 340px; border-radius: 50%; filter: blur(100px); opacity: .23; pointer-events: none; }
.ambient-one { background: #1677ff; top: -150px; left: -100px; }
.ambient-two { background: #00c8ff; right: -150px; bottom: -170px; }
.register-layout {
  width: min(1080px, 100%); min-height: 720px; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr .83fr;
  border: 1px solid rgba(164,201,255,.2); border-radius: 28px;
  overflow: hidden; background: rgba(8,25,52,.72);
  box-shadow: 0 35px 100px rgba(0,0,0,.38), inset 0 1px rgba(255,255,255,.07);
  backdrop-filter: blur(22px); animation: cardIn .7s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes cardIn { from { opacity: 0; transform: translateY(18px) scale(.99); } to { opacity: 1; transform: none; } }
.register-card { padding: 38px 48px 24px; display: flex; flex-direction: column; background: linear-gradient(145deg,rgba(16,42,79,.83),rgba(7,24,49,.86)); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: fit-content; text-decoration: none; color: white; font-weight: 800; letter-spacing: .4px; font-size: 17px; }
.brand img { width: 35px; height: 35px; object-fit: contain; }
.brand span span { color: #69c9ff; }
.card-content { width: 100%; max-width: 440px; margin: 37px auto 28px; }
.eyebrow, .side-tag { display: flex; align-items: center; gap: 9px; color: #75baff; font-size: 9px; font-weight: 800; letter-spacing: 1.8px; }
.status-dot, .side-tag span { width: 7px; height: 7px; border-radius: 50%; background: #53d9ff; box-shadow: 0 0 12px #53d9ff; }
.heading { margin: 13px 0 25px; }
.heading h1 { margin: 0; font-size: clamp(28px,3vw,36px); line-height: 1.2; letter-spacing: -1.5px; font-weight: 800; }
.heading h1 span { color: #62baff; }
.heading p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.step-indicator { display: flex; align-items: center; gap: 12px; margin-bottom: 25px; }
.step { display: flex; align-items: center; gap: 8px; color: #6f86a8; font-size: 10px; font-weight: 700; white-space: nowrap; transition: .25s; }
.step-number { display: grid; place-items: center; width: 27px; height: 27px; border: 1px solid rgba(151,184,226,.22); border-radius: 9px; font-size: 9px; }
.step.active { color: #cce8ff; }
.step.active .step-number { color: white; border-color: rgba(79,164,255,.65); background: rgba(54,139,255,.2); box-shadow: 0 0 18px rgba(59,145,255,.14); }
.step-line { height: 1px; flex: 1; background: linear-gradient(90deg,rgba(91,161,255,.55),rgba(91,161,255,.08)); }
.form-stage { display: none; animation: stageIn .3s ease both; }
.form-stage.active { display: block; }
@keyframes stageIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.field { margin-bottom: 15px; }
.field label, .otp-label { display: block; margin-bottom: 8px; color: #dceaff; font-size: 11px; font-weight: 700; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg { position: absolute; left: 14px; width: 17px; height: 17px; fill: none; stroke: #80a8d8; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; pointer-events: none; }
.input-wrap input {
  width: 100%; height: 47px; padding: 0 46px 0 43px; outline: none;
  border: 1px solid rgba(145,181,231,.18); border-radius: 12px;
  color: white; background: rgba(3,16,36,.48); font-size: 12px; transition: .2s;
}
.input-wrap input::placeholder { color: #627b9e; }
.input-wrap input:focus, .otp-input:focus { border-color: #55aaff; background: rgba(12,43,82,.72); box-shadow: 0 0 0 3px rgba(61,148,255,.12); }
.field small { display: block; margin: 6px 2px 0; color: #7890b2; font-size: 9px; }
.toggle-password { position: absolute; right: 11px; display: grid; place-items: center; width: 30px; height: 30px; border: 0; background: transparent; color: #8ba9d0; cursor: pointer; }
.toggle-password svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.password-meter { height: 3px; margin: 8px 2px 0; overflow: hidden; border-radius: 4px; background: rgba(130,165,210,.13); }
.password-meter span { display: block; height: 100%; width: 0; border-radius: inherit; background: #54c9ff; transition: width .25s, background .25s; }
.terms { display: flex; align-items: flex-start; gap: 9px; margin: 20px 0; color: #91a8c8; font-size: 10px; line-height: 1.6; cursor: pointer; }
.terms input { position: absolute; opacity: 0; }
.custom-check { flex: 0 0 16px; height: 16px; margin-top: 1px; border: 1px solid rgba(142,184,238,.4); border-radius: 5px; background: rgba(5,19,40,.5); }
.terms input:checked + .custom-check { border-color: #50a9ff; background: #277fe2; box-shadow: inset 0 0 0 3px #123b6b; }
.primary-button { width: 100%; min-height: 49px; padding: 0 17px; display: flex; align-items: center; justify-content: center; gap: 12px; border: 1px solid rgba(151,211,255,.4); border-radius: 12px; color: white; background: linear-gradient(105deg,#2479e8,#249edc); box-shadow: 0 9px 24px rgba(20,111,220,.23), inset 0 1px rgba(255,255,255,.2); font-size: 12px; font-weight: 800; cursor: pointer; transition: transform .2s, box-shadow .2s, filter .2s; }
.primary-button:hover { transform: translateY(-2px); filter: brightness(1.08); box-shadow: 0 13px 30px rgba(20,111,220,.32); }
.primary-button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.primary-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.otp-icon { width: 54px; height: 54px; display: grid; place-items: center; margin: 0 auto 15px; border: 1px solid rgba(95,177,255,.3); border-radius: 17px; background: rgba(43,130,230,.13); box-shadow: 0 0 30px rgba(50,140,255,.1); }
.otp-icon svg { width: 27px; fill: none; stroke: #83ceff; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
#otpStage h2 { margin: 0; text-align: center; font-size: 23px; letter-spacing: -.7px; }
.otp-description { max-width: 300px; margin: 9px auto 8px; color: var(--muted); text-align: center; font-size: 11px; line-height: 1.7; }
.email-preview { margin: 0 auto 25px; color: #70c6ff; text-align: center; font-size: 12px; font-weight: 800; overflow-wrap: anywhere; }
.otp-label { text-align: center; letter-spacing: 1.7px; font-size: 9px; }
.otp-input { display: block; width: 100%; height: 65px; margin: 0 auto; border: 1px solid rgba(145,181,231,.2); border-radius: 13px; outline: none; color: white; background: rgba(3,16,36,.48); text-align: center; font-family: "Orbitron", monospace; font-size: 25px; font-weight: 700; letter-spacing: 5px; transition: .2s; }
.otp-input::placeholder { color: #476385; }
.otp-note { margin: 8px 0 20px; color: #7890b2; text-align: center; font-size: 9px; }
.resend-row { display: flex; justify-content: center; gap: 5px; margin-top: 19px; color: #849bbb; font-size: 10px; }
.resend-row button, .back-button { border: 0; padding: 0; color: #70c6ff; background: none; font-size: inherit; font-weight: 800; cursor: pointer; }
.back-button { display: block; margin: 22px auto 0; color: #91a8c8; font-size: 10px; }
.notice { display: none; margin-top: 14px; padding: 11px 13px; border: 1px solid rgba(248,179,91,.2); border-radius: 10px; color: #ffd18d; background: rgba(179,112,32,.09); font-size: 10px; line-height: 1.6; }
.notice.show { display: block; animation: stageIn .2s ease both; }
.notice.error { color: #ff9eaa; border-color: rgba(255,110,130,.22); background: rgba(180,43,63,.1); }
.divider { display: flex; align-items: center; gap: 13px; margin: 24px 0 17px; color: #627c9f; font-size: 8px; font-weight: 800; letter-spacing: 1.3px; }
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: rgba(147,180,225,.13); }
.login-link { display: flex; justify-content: center; gap: 7px; color: #b9d9ff; text-decoration: none; font-size: 11px; font-weight: 700; }
.login-link span { color: #65c6ff; transition: transform .2s; }
.login-link:hover span { transform: translateX(4px); }
.card-footer { display: flex; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 17px; border-top: 1px solid rgba(145,181,231,.1); color: #627b9e; font-size: 8px; font-weight: 700; letter-spacing: .8px; }
.side-panel { position: relative; display: flex; flex-direction: column; justify-content: center; overflow: hidden; padding: 55px 43px; background: radial-gradient(ellipse at 70% 20%,rgba(40,135,255,.26),transparent 50%), linear-gradient(150deg,rgba(15,55,103,.88),rgba(5,23,49,.94)); border-left: 1px solid rgba(154,195,255,.12); }
.side-panel::before { content: ""; position: absolute; inset: 0; opacity: .18; background-image: linear-gradient(rgba(120,178,255,.12) 1px,transparent 1px),linear-gradient(90deg,rgba(120,178,255,.12) 1px,transparent 1px); background-size: 38px 38px; mask-image: linear-gradient(135deg,black,transparent 75%); }
.side-content { position: relative; z-index: 1; }
.side-tag { font-size: 8px; }
.side-content h2 { margin: 25px 0 14px; font-size: clamp(29px,3.2vw,40px); line-height: 1.25; letter-spacing: -1.7px; }
.side-content h2 span { color: #72c8ff; }
.side-content > p { max-width: 340px; color: #a0b8d8; font-size: 12px; line-height: 1.9; }
.feature-list { display: grid; gap: 13px; margin-top: 39px; }
.feature { display: flex; align-items: center; gap: 13px; padding: 13px; border: 1px solid rgba(151,194,245,.12); border-radius: 13px; background: rgba(13,48,89,.37); backdrop-filter: blur(8px); }
.feature-icon { width: 35px; height: 35px; display: grid; place-items: center; flex: 0 0 35px; border: 1px solid rgba(103,184,255,.24); border-radius: 10px; color: #83ceff; background: rgba(48,135,226,.15); font-family: "Orbitron",sans-serif; font-size: 9px; }
.feature strong, .feature small { display: block; }
.feature strong { color: #e5f2ff; font-size: 11px; }
.feature small { margin-top: 4px; color: #8ca8cc; font-size: 9px; }
.side-orbit { position: absolute; border: 1px solid rgba(100,180,255,.12); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 370px; height: 370px; right: -190px; top: -190px; box-shadow: 0 0 60px rgba(48,141,255,.08); }
.orbit-two { width: 260px; height: 260px; right: -135px; top: -135px; }
.side-bottom { position: absolute; z-index: 1; right: 35px; bottom: 25px; left: 35px; display: flex; justify-content: space-between; color: #6786ac; font-size: 8px; font-weight: 800; letter-spacing: 1.3px; }
@media (max-width: 850px) {
  body { padding: 20px 14px; }
  .register-layout { max-width: 570px; grid-template-columns: 1fr; }
  .side-panel { display: none; }
  .register-card { padding: 30px clamp(22px,7vw,48px) 22px; }
  .card-content { margin-top: 32px; }
}
@media (max-width: 420px) {
  body { padding: 10px; }
  .register-card { padding: 25px 19px 18px; }
  .card-content { margin-top: 27px; }
  .heading h1 { font-size: 29px; }
  .step { gap: 6px; font-size: 9px; }
  .step-indicator { gap: 8px; }
  .card-footer { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
