:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --text: #0b1f3a;
  --muted: #5b6b82;
  --border: #d9e2ee;
  --input: #f7f9fc;
  --brand: #0e9f6e;
  --brand2: #0b7a5a;
  --accent: #f5b942;
  --danger: #e11d48;
  --ring: rgba(14, 159, 110, 0.25);
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
:root[data-theme="dark"] {
  --bg: #071426;
  --surface: #0d1f36;
  --text: #eaf1fb;
  --muted: #93a4bd;
  --border: #1f3350;
  --input: #0a1a2e;
  --brand: #2dd4a0;
  --brand2: #14b88a;
  --ring: rgba(45, 212, 160, 0.3);
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
}
* {
  box-sizing: border-box;
  margin: 0;
}
body {
  font-family:
    "Plus Jakarta Sans",
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background:
    radial-gradient(
      900px 500px at 85% -10%,
      rgba(45, 212, 160, 0.35),
      transparent 60%
    ),
    radial-gradient(
      700px 500px at -10% 110%,
      rgba(245, 185, 66, 0.18),
      transparent 60%
    ),
    linear-gradient(155deg, #061a33 0%, #0a2a4a 55%, #0b4a47 100%);
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 40%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(
    circle at 50% 40%,
    #000 20%,
    transparent 75%
  );
}
.hero > * {
  position: relative;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.02em;
}
.brand small {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  color: #9fe8cf;
  margin-top: 2px;
}
.hero h1 {
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.12;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 40px 0 14px;
  max-width: 560px;
}
.hero h1 span {
  background: linear-gradient(90deg, #5eeac0, #f5b942);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.digi{
  color: var(--mint) !important;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  color: #b8c9de;
  font-size: 16px;
  line-height: 1.6;
  max-width: 520px;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
  max-width: 640px;
}
.card {
  padding: 18px 20px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition:
    transform 0.25s,
    background 0.25s;
}
.card:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.11);
}
.card .ic {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #2dd4a0, #0e9f6e);
  margin-bottom: 12px;
}
.card h3 {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 4px;
}
.card p {
  font-size: 13px;
  color: #b8c9de;
  line-height: 1.5;
}
.stats {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  max-width: 640px;
}
.stats b {
  display: block;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.stats span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #9fb4cf;
}

/* Form side */
.side {
  display: grid;
  place-items: center;
  padding: 32px 24px;
  position: relative;
}
.theme {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.panel {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 40px 36px;
  box-shadow: 0 24px 60px -20px rgba(11, 31, 58, 0.25);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand2);
  background: var(--ring);
  padding: 7px 12px;
  border-radius: 99px;
}
:root[data-theme="dark"] .badge {
  color: var(--brand);
}
.panel h2 {
  font-size: 30px;
  letter-spacing: -0.03em;
  font-weight: 800;
  margin: 18px 0 6px;
}
.panel .sub {
  color: var(--muted);
  font-size: 14.5px;
  margin-bottom: 26px;
}
.field {
  margin-bottom: 18px;
}
label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
}
.wrap {
  position: relative;
}
.wrap svg.l {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
input[type="text"],
input[type="password"],
input[type="email"],
select {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  border: 1.5px solid var(--border);
  background: var(--input);
  color: var(--text);
  font: inherit;
  font-size: 15px;
  padding: 0 46px 0 44px;
  outline: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s,
    background 0.2s;
}
input::placeholder {
  color: var(--muted);
  opacity: 0.75;
}
input:focus,
select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--ring);
  background: var(--surface);
}
.field.err input,
.field.err select {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(225, 29, 72, 0.14);
}
.msg {
  font-size: 12.5px;
  color: var(--danger);
  margin-top: 6px;
  min-height: 0;
  display: none;
}
.field.err .msg {
  display: block;
}
.eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  background: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 10px;
  display: grid;
  place-items: center;
}
.eye:hover {
  color: var(--text);
}
.caps {
  display: none;
  font-size: 12.5px;
  color: #b7791f;
  margin-top: 6px;
}
.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 22px;
  font-size: 13.5px;
}
.chk {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  font-weight: 500;
  margin: 0;
}
.chk input {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--input);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: 0.2s;
}
.chk input:checked {
  background: var(--brand);
  border-color: var(--brand);
}
.chk input:checked::after {
  content: "";
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) translate(-1px, -1px);
}
.chk input:focus-visible {
  box-shadow: 0 0 0 4px var(--ring);
}
a.link {
  color: var(--brand2);
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
}
:root[data-theme="dark"] a.link {
  color: var(--brand);
}
a.link:hover {
  text-decoration: underline;
}
.btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 14px;
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  background: linear-gradient(135deg, #0a2a4a 0%, #0b6b57 55%, #0e9f6e 100%);
  box-shadow: 0 12px 24px -10px rgba(14, 159, 110, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition:
    transform 0.15s,
    box-shadow 0.2s,
    filter 0.2s;
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
}
.btn:active {
  transform: translateY(0);
}
.btn:disabled {
  cursor: wait;
  filter: saturate(0.7);
}
.spin {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: s 0.7s linear infinite;
  display: none;
}
.loading .spin {
  display: block;
}
@keyframes s {
  to {
    transform: rotate(360deg);
  }
}
.alert {
  display: none;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 13.5px;
  margin-bottom: 18px;
  line-height: 1.45;
}
.alert.show {
  display: block;
}
.alert.bad {
  background: rgba(225, 29, 72, 0.1);
  color: var(--danger);
  border: 1px solid rgba(225, 29, 72, 0.3);
}
.alert.ok {
  background: rgba(14, 159, 110, 0.12);
  color: var(--brand2);
  border: 1px solid rgba(14, 159, 110, 0.35);
}
:root[data-theme="dark"] .alert.ok {
  color: var(--brand);
}
.shake {
  animation: sh 0.4s;
}
@keyframes sh {
  20%,
  60% {
    transform: translateX(-6px);
  }
  40%,
  80% {
    transform: translateX(6px);
  }
}
.demo {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1.5px dashed var(--border);
  font-size: 12.5px;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.demo code {
  color: var(--text);
  font-weight: 700;
  font-family: ui-monospace, Menlo, Consolas, monospace;
}
.demo button {
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid var(--border);
  background: var(--input);
  color: var(--text);
  padding: 7px 12px;
  border-radius: 9px;
  cursor: pointer;
}
.trust {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 22px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.trust div {
  display: flex;
  align-items: center;
  gap: 8px;
}
.trust svg {
  color: var(--brand);
  flex: none;
}
.foot {
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  margin-top: 18px;
}

@media (max-width: 960px) {
  body {
    grid-template-columns: 1fr;
  }
  .hero {
    padding: 28px 24px 32px;
  }
  .hero h1 {
    margin: 22px 0 10px;
    font-size: 28px;
  }
  .hero .grid,
  .hero .stats,
  .hero p.lead {
    display: none;
  }
  .panel {
    padding: 32px 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

select {
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  padding-right: 44px;
}
.wrap .chev {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}
:root[data-theme="dark"] {
  color-scheme: dark;
}
.view-reset {
  display: none;
}
.show-reset .view-login {
  display: none;
}
.show-reset .view-reset {
  display: block;
}
.back {
  display: block;
  text-align: center;
  margin-top: 16px;
}
.hint {
  font-size: 13px;
  color: var(--muted);
  margin: -8px 0 18px;
}
