:root {
  color-scheme: dark;
  --ink: #f6fbfa;
  --muted: #9ab9bd;
  --deep: #02111d;
  --navy: #031827;
  --ocean: #07536b;
  --aqua: #62e4e4;
  --aqua-soft: rgba(98, 228, 228, .12);
  --gold: #f5c85b;
  --gold-bright: #ffe59a;
  --gold-deep: #b86f12;
  --coral: #ff8f78;
  --line: rgba(135, 214, 217, .16);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 6%, rgba(20, 126, 148, .28), transparent 30rem),
    radial-gradient(circle at 88% 88%, rgba(13, 91, 126, .28), transparent 34rem),
    linear-gradient(145deg, #020d17 0%, #04293a 50%, #02151f 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .26;
  background-image:
    radial-gradient(circle at center, rgba(255,255,255,.35) 0 1px, transparent 1.5px),
    radial-gradient(circle at center, rgba(98,228,228,.24) 0 1px, transparent 1.5px);
  background-position: 0 0, 23px 27px;
  background-size: 47px 47px, 59px 59px;
  mask-image: radial-gradient(ellipse at 50% 45%, black, transparent 75%);
}

.ambient {
  position: fixed;
  width: 30rem;
  height: 30rem;
  border-radius: 50%;
  filter: blur(90px);
  opacity: .15;
  pointer-events: none;
}
.ambient-one { background: var(--aqua); top: -17rem; right: 1rem; }
.ambient-two { background: #228ed4; bottom: -18rem; left: -8rem; }

.sea-lines {
  position: fixed;
  left: -10vw;
  right: -10vw;
  bottom: -95px;
  height: 270px;
  border-radius: 50% 50% 0 0;
  border-top: 1px solid rgba(98, 228, 228, .11);
  box-shadow: 0 -25px 0 rgba(98,228,228,.025), 0 -50px 0 rgba(98,228,228,.018);
  transform: rotate(-2deg);
  pointer-events: none;
}

.shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 100vh;
  margin: 0 auto;
  padding: 48px 0;
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: 82px;
  position: relative;
}

.welcome { padding: 24px 0; position: relative; }
.welcome::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 410px;
  height: 410px;
  top: -38px;
  left: -118px;
  border: 1px solid rgba(245, 200, 91, .07);
  border-radius: 50%;
  box-shadow: inset 0 0 80px rgba(5, 83, 107, .08), 0 0 0 28px rgba(98,228,228,.012);
}
.brand-mark {
  width: 174px;
  height: 174px;
  position: relative;
  margin-left: -10px;
  filter: drop-shadow(0 24px 28px rgba(0, 0, 0, .38)) drop-shadow(0 0 22px rgba(41, 207, 220, .08));
}
.brand-mark::after {
  content: "";
  position: absolute;
  inset: 14% 7% 3%;
  z-index: -1;
  background: rgba(15, 188, 198, .15);
  border-radius: 50%;
  filter: blur(28px);
}
.brand-mark img { width: 100%; height: 100%; display: block; object-fit: contain; }

.eyebrow {
  margin: 20px 0 9px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--aqua);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.eyebrow > span { width: 28px; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }

h1, h2 { font-family: Georgia, "Times New Roman", serif; margin: 0; font-weight: 600; }
h1 { font-size: clamp(50px, 6.5vw, 78px); line-height: .96; letter-spacing: -.055em; text-shadow: 0 10px 36px rgba(0,0,0,.22); }
h1 span {
  color: var(--gold);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 48%, #d98b22);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
h2 { font-size: 36px; letter-spacing: -.025em; }
.lead { max-width: 550px; margin: 19px 0 28px; color: #d2e4e3; font-size: 19px; font-style: italic; line-height: 1.65; }

.server-card {
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(105deg, rgba(7, 42, 55, .72), rgba(3, 20, 30, .5));
  backdrop-filter: blur(14px);
  box-shadow: inset 0 1px rgba(255,255,255,.025), 0 18px 46px rgba(0,0,0,.12);
}
.server-card strong, .server-card small { display: block; }
.server-card strong { font-size: 14px; }
.server-card small { color: var(--muted); margin-top: 3px; }
.status-ring { width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid rgba(98,228,228,.13); border-radius: 50%; background: rgba(0,0,0,.14); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: #839092; box-shadow: 0 0 0 4px rgba(131,144,146,.08); }
.status-dot.online { background: var(--aqua); box-shadow: 0 0 0 4px rgba(98,228,228,.08), 0 0 18px rgba(98,228,228,.68); }
.status-dot.offline { background: var(--coral); box-shadow: 0 0 0 5px rgba(255,141,114,.1); }

.features { margin: 25px 0 0; padding: 0; list-style: none; color: var(--muted); display: grid; gap: 10px; }
.features li::before { content: "◇"; color: var(--gold); margin-right: 11px; text-shadow: 0 0 12px rgba(245,200,91,.35); }

.register-card {
  position: relative;
  padding: 35px;
  border: 1px solid rgba(135, 214, 217, .18);
  border-radius: 28px;
  background: linear-gradient(155deg, rgba(7, 39, 51, .96), rgba(3, 19, 29, .94));
  box-shadow: 0 38px 110px rgba(0,0,0,.46), inset 0 1px 0 rgba(255,255,255,.05), inset 0 0 55px rgba(20,112,128,.045);
  backdrop-filter: blur(20px);
}
.register-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(245, 200, 91, .07);
  border-radius: 20px;
  pointer-events: none;
}
.register-card > * { position: relative; }
.register-card header .eyebrow { margin-top: 0; }
.register-card header > p:last-child { margin: 10px 0 26px; color: var(--muted); }

form { display: grid; }
label, legend { margin: 14px 0 7px; font-size: 13px; font-weight: 700; color: #d8e9e7; }
input[type="text"], input[type="password"] {
  width: 100%;
  padding: 13px 14px;
  color: var(--ink);
  border: 1px solid rgba(171, 226, 214, .2);
  border-radius: 11px;
  outline: none;
  background: rgba(0, 8, 13, .38);
  font: inherit;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
input:focus { border-color: var(--aqua); box-shadow: 0 0 0 3px rgba(98,228,228,.09); background: rgba(0,8,13,.56); }
form > small { color: #799b9d; margin-top: 6px; font-size: 11px; }
.password-field { position: relative; }
.password-field input { padding-right: 52px; }
.reveal { position: absolute; inset: 5px 5px 5px auto; padding: 0 10px; border: 0; color: var(--aqua); background: transparent; cursor: pointer; font: 700 11px/1 inherit; text-transform: uppercase; }

fieldset { display: flex; gap: 9px; padding: 0; margin: 13px 0 0; border: 0; }
legend { float: left; width: 100%; }
.choice { flex: 1; margin: 0; cursor: pointer; }
.choice input { position: absolute; opacity: 0; }
.choice span { display: block; padding: 11px; text-align: center; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); background: rgba(0,8,13,.28); transition: .18s; }
.choice input:checked + span { border-color: rgba(98,228,228,.58); color: var(--ink); background: rgba(98,228,228,.1); box-shadow: inset 0 0 18px rgba(98,228,228,.05); }

.submit {
  margin-top: 23px;
  min-height: 50px;
  padding: 0 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border: 0;
  border-radius: 12px;
  color: #251702;
  background: linear-gradient(110deg, #c78320, var(--gold) 48%, var(--gold-bright));
  box-shadow: 0 13px 34px rgba(202, 131, 28, .19), inset 0 1px rgba(255,255,255,.42);
  cursor: pointer;
  font: 800 14px/1 inherit;
  transition: transform .18s, box-shadow .18s, opacity .18s;
}
.submit:hover { transform: translateY(-2px); box-shadow: 0 17px 40px rgba(202,131,28,.3), inset 0 1px rgba(255,255,255,.48); }
.submit:disabled { opacity: .58; cursor: wait; transform: none; }
.button-icon { width: 27px; height: 27px; display: grid; place-items: center; border: 1px solid rgba(37,23,2,.2); border-radius: 50%; }
.message { min-height: 19px; margin: 12px 2px 0; font-size: 13px; text-align: center; color: var(--muted); }
.message.success { color: var(--aqua); }
.message.error { color: #ff9f8b; }
.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.register-card footer { margin-top: 19px; padding-top: 18px; border-top: 1px solid var(--line); color: #789698; font-size: 11px; text-align: center; }
.register-card footer span { margin: 0 5px; color: rgba(245,200,91,.6); }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; gap: 20px; padding: 36px 0; }
  .welcome { padding: 0 8px; }
  .brand-mark { width: 140px; height: 140px; margin-left: -7px; }
  .welcome::before { width: 330px; height: 330px; }
  .features { display: none; }
  .register-card { padding: 26px 22px; }
  h1 { font-size: 57px; }
  .lead { font-size: 16px; margin: 18px 0 22px; }
}

@media (max-width: 420px) {
  .shell { width: min(100% - 24px, 1080px); }
  .brand-mark { width: 118px; height: 118px; }
  h1 { font-size: 48px; }
  h2 { font-size: 31px; }
}
