:root {
  color-scheme: dark;
  --auth-bg: #04111d;
  --auth-surface: rgba(8, 28, 44, .96);
  --auth-surface-strong: #081c2c;
  --auth-line: rgba(83, 151, 187, .32);
  --auth-line-soft: rgba(83, 151, 187, .17);
  --auth-text: #edf6fb;
  --auth-muted: #9cb4c2;
  --auth-subtle: #718c9c;
  --auth-cyan: #0bc2e4;
  --auth-green: #25d39a;
  --auth-danger: #ff8993;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }

body.kaokab-account-page {
  min-width: 320px;
  margin: 0;
  color: var(--auth-text);
  background:
    radial-gradient(820px 520px at 8% 8%, rgba(8, 191, 226, .11), transparent 64%),
    radial-gradient(720px 520px at 92% 90%, rgba(37, 211, 154, .08), transparent 66%),
    var(--auth-bg);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.kaokab-account-shell {
  position: relative;
  min-height: 100vh;
  padding: 32px;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}

.kaokab-account-network {
  position: fixed;
  z-index: -1;
  width: min(92vw, 980px);
  aspect-ratio: 1;
  top: min(-48vw, -440px);
  right: min(-28vw, -280px);
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(11, 194, 228, .38) 0 2px, transparent 3px),
    repeating-radial-gradient(circle at center, transparent 0 39px, rgba(22, 136, 199, .12) 40px 41px),
    repeating-conic-gradient(from 0deg, rgba(22, 136, 199, .045) 0 .4deg, transparent .55deg 20deg);
  pointer-events: none;
}

.kaokab-account-card {
  width: min(480px, 100%);
  padding: 34px 38px 32px;
  border: 1px solid var(--auth-line);
  border-radius: 18px;
  background: linear-gradient(155deg, rgba(9, 31, 48, .985), rgba(6, 23, 37, .985));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .48), inset 0 1px rgba(255, 255, 255, .025);
}

.kaokab-account-brand {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--auth-line-soft);
}

.kaokab-account-brand img {
  display: block;
  width: min(276px, 78%);
  height: auto;
  margin: 0 auto;
}

.kaokab-account-security {
  margin: 18px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #87aabb;
  font-size: 10.5px;
  font-weight: 720;
  letter-spacing: .35px;
}

.kaokab-account-security svg {
  width: 15px;
  height: 15px;
  color: var(--auth-green);
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kaokab-account-content { padding-top: 27px; }

.kaokab-account-eyebrow {
  margin: 0 0 9px;
  color: var(--auth-cyan);
  font-size: 10px;
  line-height: 1.3;
  font-weight: 850;
  letter-spacing: 1.7px;
  text-align: center;
  text-transform: uppercase;
}

.kaokab-account-content h1 {
  margin: 0;
  color: var(--auth-text);
  font-size: clamp(27px, 5vw, 34px);
  line-height: 1.12;
  font-weight: 760;
  letter-spacing: -.035em;
  text-align: center;
}

.kaokab-account-intro {
  margin: 12px auto 25px;
  color: var(--auth-muted);
  font-size: 13.5px;
  line-height: 1.6;
  text-align: center;
}

.kaokab-account-form { margin: 0; }

.kaokab-account-field { margin-bottom: 16px; }

.kaokab-account-field label {
  margin: 0 0 8px;
  display: block;
  color: #cedce4;
  font-size: 12px;
  line-height: 1.35;
  font-weight: 720;
}

.kaokab-account-input {
  position: relative;
}

.kaokab-account-input svg {
  position: absolute;
  left: 15px;
  top: 50%;
  width: 18px;
  height: 18px;
  color: #7193a5;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
  pointer-events: none;
}

.kaokab-account-input input {
  width: 100%;
  height: 49px;
  margin: 0;
  padding: 0 15px 0 46px;
  color: #eff7fb;
  border: 1px solid var(--auth-line);
  border-radius: 9px;
  outline: none;
  background: #071827;
  font: inherit;
  font-size: 14px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.kaokab-account-input input::placeholder { color: #668293; }
.kaokab-account-input input:hover { border-color: rgba(91, 165, 201, .52); }
.kaokab-account-input input:focus {
  border-color: var(--auth-cyan);
  background: #091d2d;
  box-shadow: 0 0 0 3px rgba(11, 194, 228, .13);
}

.kaokab-password-guidance {
  margin: -2px 0 18px;
  color: var(--auth-subtle);
  font-size: 10.5px;
  line-height: 1.5;
}

.kaokab-account-alert {
  margin: 0 0 16px;
  padding: 11px 13px;
  color: #ffd5d9;
  border: 1px solid rgba(255, 137, 147, .34);
  border-radius: 8px;
  background: rgba(154, 39, 53, .14);
  font-size: 12.5px;
  line-height: 1.45;
}

.kaokab-account-alert:empty { display: none; }

.kaokab-account-submit {
  width: 100%;
  height: 49px;
  padding: 0 18px;
  color: #031921;
  border: 0;
  border-radius: 9px;
  background: linear-gradient(90deg, var(--auth-cyan), var(--auth-green));
  box-shadow: 0 11px 28px rgba(10, 191, 191, .17);
  font-size: 13.5px;
  font-weight: 820;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}

.kaokab-account-submit:hover:not(:disabled) {
  filter: brightness(1.07);
  box-shadow: 0 13px 31px rgba(10, 191, 191, .24);
  transform: translateY(-1px);
}

.kaokab-account-submit:disabled { cursor: wait; filter: saturate(.55); opacity: .72; }

.kaokab-account-note {
  margin: 18px 0 0;
  color: var(--auth-subtle);
  font-size: 11px;
  line-height: 1.55;
  text-align: center;
}

.kaokab-account-link {
  margin-top: 18px;
  display: block;
  color: #74d4e9;
  font-size: 12px;
  font-weight: 720;
  text-align: center;
  text-decoration: none;
}

.kaokab-account-link:hover { color: #a2eafa; text-decoration: underline; }

.kaokab-account-success { display: none; padding: 12px 0 4px; text-align: center; }

.kaokab-success-icon {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  color: var(--auth-green);
  border: 1px solid rgba(37, 211, 154, .35);
  border-radius: 50%;
  background: rgba(37, 211, 154, .09);
  box-shadow: 0 0 28px rgba(37, 211, 154, .09);
}

.kaokab-success-icon svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.kaokab-account-success h1 { margin: 0 0 11px; font-size: 27px; }
.kaokab-account-success p { margin: 0; color: var(--auth-muted); font-size: 13.5px; line-height: 1.6; }
.kaokab-account-success strong { color: #dceaf2; }

.kaokab-account-footer {
  margin: 24px 0 0;
  color: #627f90;
  font-size: 10.5px;
  line-height: 1.5;
  text-align: center;
}

.kaokab-account-page a:focus-visible,
.kaokab-account-page button:focus-visible,
.kaokab-account-page input:focus-visible {
  outline: 2px solid var(--auth-cyan);
  outline-offset: 3px;
}

@media (max-width: 560px) {
  .kaokab-account-shell { padding: 18px; }
  .kaokab-account-card { padding: 28px 22px 25px; border-radius: 15px; }
  .kaokab-account-brand img { width: min(250px, 82%); }
}

@media (prefers-reduced-motion: reduce) {
  .kaokab-account-page *,
  .kaokab-account-page *::before,
  .kaokab-account-page *::after { transition-duration: .01ms !important; }
}
