:root {
  --bg: #020908;
  --panel: rgba(5, 24, 18, 0.72);
  --panel-2: rgba(7, 34, 25, 0.62);
  --line: rgba(67, 255, 182, 0.18);
  --line-strong: rgba(67, 255, 182, 0.48);
  --accent: #43ffb6;
  --accent-2: #16d987;
  --text: #f2fff9;
  --muted: #8fb6a6;
  --danger: #ff7d8f;
  --success: #6effbf;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.46);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--bg); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Cairo", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 28%, rgba(37, 232, 148, 0.10), transparent 30%),
    radial-gradient(circle at 82% 66%, rgba(26, 194, 130, 0.08), transparent 32%),
    linear-gradient(145deg, #010706 0%, #03100c 52%, #010807 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent 49.95%, rgba(67,255,182,.025) 50%, transparent 50.05%);
}

.noise {
  position: fixed;
  inset: 0;
  opacity: .055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.78' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
  z-index: 1;
}

.grid {
  position: fixed;
  inset: 0;
  opacity: .16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(67,255,182,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(67,255,182,.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.orb { position: fixed; border-radius: 999px; filter: blur(80px); pointer-events: none; }
.orb-a { width: 280px; height: 280px; background: rgba(39,255,166,.12); top: 10%; left: 7%; }
.orb-b { width: 360px; height: 360px; background: rgba(0,212,139,.08); bottom: -10%; right: 8%; }

.page-shell {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  min-height: calc(100vh - 90px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
  gap: 64px;
  padding: 64px 0 34px;
}

.brand-panel {
  position: relative;
  min-height: 590px;
  display: flex;
  align-items: center;
  padding: 46px;
  overflow: hidden;
  border: 1px solid rgba(67,255,182,.10);
  border-radius: 34px;
  background: linear-gradient(145deg, rgba(6,22,17,.72), rgba(3,14,11,.34));
  box-shadow: inset 0 1px rgba(255,255,255,.025);
}

.brand-panel::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(67,255,182,.06);
  border-radius: 24px;
  pointer-events: none;
}

.brand-watermark {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(1,8,6,.88), rgba(1,8,6,.18)),
    url('/assets/dev-band-welcome.jpeg') center/cover no-repeat;
  opacity: .22;
  filter: saturate(.85) contrast(1.05);
}

.brand-content { position: relative; z-index: 2; max-width: 560px; }
.logo-frame {
  width: 106px;
  aspect-ratio: 1;
  padding: 6px;
  border: 1px solid rgba(67,255,182,.42);
  border-radius: 28px;
  background: rgba(5,31,22,.60);
  box-shadow: 0 0 0 8px rgba(67,255,182,.025), 0 0 50px rgba(67,255,182,.15);
  margin-bottom: 30px;
}
.logo-frame img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 22px; }
.eyebrow { display: inline-block; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: 3px; margin-bottom: 12px; }
.brand-content h1 { margin: 0; font-size: clamp(42px, 5vw, 68px); line-height: 1.15; letter-spacing: -2px; }
.brand-content h1 span { color: var(--accent); text-shadow: 0 0 28px rgba(67,255,182,.16); }
.brand-content p { color: #a8c8bb; line-height: 1.95; font-size: 16px; max-width: 500px; margin: 22px 0 30px; }
.feature-row { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-row span { border: 1px solid rgba(67,255,182,.14); background: rgba(4,23,17,.70); padding: 9px 13px; border-radius: 999px; color: #b8d6ca; font-size: 12px; }
.feature-row i { width: 6px; height: 6px; display: inline-block; background: var(--accent); box-shadow: 0 0 10px var(--accent); border-radius: 50%; margin-left: 6px; }

.form-panel { display: flex; justify-content: center; }
.form-card {
  width: min(100%, 480px);
  position: relative;
  padding: 32px;
  border: 1px solid rgba(67,255,182,.20);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(6,25,19,.90), rgba(3,13,10,.84));
  box-shadow: var(--shadow), inset 0 1px rgba(255,255,255,.035), 0 0 80px rgba(43,234,151,.06);
  backdrop-filter: blur(18px);
}
.form-card::before {
  content: "";
  position: absolute;
  width: 96px;
  height: 1px;
  top: -1px;
  right: 46px;
  background: var(--accent);
  box-shadow: 0 0 18px var(--accent);
}
.card-topline { display: flex; align-items: center; gap: 9px; direction: ltr; color: #6e9f8d; font-size: 10px; letter-spacing: 1.7px; margin-bottom: 34px; }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 13px var(--accent); }
.mobile-brand { display: none; }
header .kicker { color: var(--accent); font-size: 12px; font-weight: 800; margin: 0 0 8px; }
header h2 { margin: 0; font-size: 31px; }
header > p:last-child { margin: 8px 0 28px; color: var(--muted); font-size: 14px; }

.field { margin-bottom: 20px; }
label { display: block; margin-bottom: 9px; color: #dcece5; font-size: 13px; font-weight: 700; }
.input-wrap { position: relative; }
.input-icon { position: absolute; top: 50%; right: 15px; transform: translateY(-50%); color: #77b49d; font-weight: 800; pointer-events: none; }
.mail-icon { font-size: 13px; }
input {
  width: 100%;
  height: 54px;
  border: 1px solid rgba(67,255,182,.14);
  border-radius: 14px;
  outline: 0;
  background: rgba(0,8,6,.72);
  color: var(--text);
  font: inherit;
  direction: ltr;
  text-align: left;
  padding: 0 46px 0 15px;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
input::placeholder { color: #557568; }
input:focus { border-color: rgba(67,255,182,.62); box-shadow: 0 0 0 4px rgba(67,255,182,.06), 0 0 28px rgba(67,255,182,.05); }
input.invalid { border-color: rgba(255,125,143,.65); box-shadow: 0 0 0 4px rgba(255,125,143,.05); }
.hint, .error { display: block; min-height: 18px; margin-top: 6px; font-size: 10.5px; }
.hint { color: #638477; }
.error { color: var(--danger); margin-top: -18px; opacity: 0; transition: opacity .2s; }
.field.has-error .hint { opacity: 0; }
.field.has-error .error { opacity: 1; }

button {
  width: 100%;
  height: 56px;
  margin-top: 7px;
  border: 0;
  border-radius: 15px;
  color: #00170d;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(110deg, #38efa5, #62ffc2);
  box-shadow: 0 12px 34px rgba(37,224,145,.18), inset 0 -1px rgba(0,0,0,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
button:hover { transform: translateY(-2px); box-shadow: 0 16px 40px rgba(37,224,145,.26); filter: brightness(1.04); }
button:disabled { cursor: wait; opacity: .65; transform: none; }
.btn-arrow { font-size: 19px; transition: transform .2s; }
button:hover .btn-arrow { transform: translateX(-4px); }
.form-message { min-height: 22px; margin-top: 13px; text-align: center; font-size: 12px; }
.form-message.success { color: var(--success); }
.form-message.error-msg { color: var(--danger); }
.secure-note { display: flex; gap: 8px; justify-content: center; align-items: center; color: #688a7d; font-size: 10.5px; margin-top: 12px; }
.shield { color: var(--accent); }

footer { position: relative; z-index: 2; direction: ltr; min-height: 56px; display: flex; justify-content: center; align-items: center; gap: 12px; color: #527166; font-size: 11px; letter-spacing: .7px; }
.footer-divider { width: 3px; height: 3px; border-radius: 50%; background: #396153; }

@media (max-width: 900px) {
  .page-shell { grid-template-columns: 1fr; min-height: auto; width: min(100% - 28px, 560px); padding-top: 26px; gap: 20px; }
  .brand-panel { display: none; }
  .form-card { width: 100%; padding: 26px 22px; }
  .mobile-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; direction: ltr; }
  .mobile-brand img { width: 52px; height: 52px; object-fit: cover; border-radius: 15px; border: 1px solid rgba(67,255,182,.3); box-shadow: 0 0 24px rgba(67,255,182,.1); }
  .mobile-brand div { display: flex; flex-direction: column; }
  .mobile-brand strong { color: #dfffee; letter-spacing: 1px; }
  .mobile-brand small { color: #4f8170; font-size: 9px; letter-spacing: 1.4px; }
  header h2 { font-size: 28px; }
  .grid { background-size: 42px 42px; }
}

@media (max-width: 460px) {
  .page-shell { width: calc(100% - 18px); padding-top: 12px; }
  .form-card { border-radius: 22px; padding: 22px 18px; }
  .card-topline { margin-bottom: 24px; }
  input, button { height: 52px; }
}

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