:root {
  --ds-dark: #050f54;
  --ds-dark-2: #071044;
  --ds-blue: #0f8cfa;
  --ds-blue-light: #16a3ff;
  --ds-blue-soft: #63b4ff;
  --ds-green: #a3ff00;
  --white: #ffffff;
  --ink: #061042;
  --muted-white: rgba(255, 255, 255, 0.72);
  --danger: #ff8f8f;
  --success: #cfff8a;
  --radius: 26px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--white);
  background:
    radial-gradient(circle at 8% 12%, rgba(15, 140, 250, 0.26), transparent 28%),
    radial-gradient(circle at 90% 8%, rgba(163, 255, 0, 0.10), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(15, 140, 250, 0.14), transparent 24%),
    linear-gradient(180deg, #040b3e 0%, #07145f 48%, #040b3e 100%);
  padding: 24px;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 58%, transparent 100%);
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.wrap {
  width: min(100%, var(--max));
}

.hero {
  display: block;
  text-align: center;
  margin-bottom: 28px;
}

.logo {
  display: block;
  height: 72px;
  width: auto;
  margin: 0 auto 18px auto;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.35rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 12px;
}

.subtitle {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.55;
  font-size: 1rem;
  max-width: 680px;
  margin: 0 auto;
  font-weight: 500;
}

.accent {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: var(--ds-green);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  font-size: 0.78rem;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(163, 255, 0, 0.08);
  border: 1px solid rgba(163, 255, 0, 0.18);
}

.accent::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ds-green);
  box-shadow: 0 0 16px rgba(163, 255, 0, 0.7);
}

.flash {
  padding: 14px 16px;
  border-radius: 18px;
  margin-bottom: 18px;
  line-height: 1.5;
  text-align: center;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.flash.success {
  background: rgba(163, 255, 0, 0.12);
  border: 1px solid rgba(163, 255, 0, 0.24);
  color: var(--success);
}

.flash.error {
  background: rgba(255, 143, 143, 0.12);
  border: 1px solid rgba(255, 143, 143, 0.24);
  color: var(--danger);
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
}

.card {
  min-height: 100%;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(14px);
}

.register-card {
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 34%),
    radial-gradient(circle at bottom right, rgba(163, 255, 0, 0.08), transparent 32%),
    linear-gradient(180deg, #1096f2 0%, #0f8cfa 42%, #0667c4 100%);
  border: 1px solid rgba(255, 255, 255, 0.26);
}

.login-card {
  color: var(--white);
  background:
    radial-gradient(circle at top left, rgba(15, 140, 250, 0.24), transparent 36%),
    radial-gradient(circle at bottom right, rgba(163, 255, 0, 0.08), transparent 34%),
    linear-gradient(180deg, #081660 0%, #050f54 48%, #07133d 100%);
  border: 1px solid rgba(99, 180, 255, 0.18);
}

.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 18px;
  padding-bottom: 16px;
}

.register-card .card-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
}

.login-card .card-head {
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}

.card-title-wrap {
  display: grid;
  gap: 5px;
}

.card h2 {
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  font-weight: 900;
}

.card-subtitle {
  font-size: 0.9rem;
  line-height: 1.45;
  font-weight: 600;
}

.register-card .card-subtitle {
  color: rgba(255, 255, 255, 0.78);
}

.login-card .card-subtitle {
  color: rgba(255, 255, 255, 0.64);
}

.badge {
  flex: 0 0 auto;
  font-size: 0.72rem;
  font-weight: 900;
  padding: 8px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.register-card .badge {
  background: var(--ds-dark);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: var(--white);
  box-shadow: 0 10px 24px rgba(5, 15, 84, 0.20);
}

.login-card .badge {
  background: rgba(15, 140, 250, 0.13);
  border: 1px solid rgba(15, 140, 250, 0.26);
  color: var(--ds-blue-soft);
}

form {
  display: grid;
  gap: 14px;
}

.grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.field {
  display: grid;
  gap: 7px;
}

label {
  font-size: 0.86rem;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
}

input,
select {
  width: 100%;
  min-height: 46px;
  border-radius: 14px;
  padding: 11px 13px;
  outline: none;
  font: inherit;
  font-weight: 600;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

/* Left registration inputs: transparent glass effect */
.register-card input,
.register-card select {
  background: rgba(255, 255, 255, 0.22);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 8px 18px rgba(5, 15, 84, 0.10);
  backdrop-filter: blur(10px);
}

.register-card input::placeholder {
  color: rgba(255, 255, 255, 0.72);
}

.register-card select {
  color: #ffffff;
}

.register-card select option {
  color: #111111;
  background: #ffffff;
}

.register-card input:focus,
.register-card select:focus {
  background: rgba(255, 255, 255, 0.30);
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow:
    0 0 0 4px rgba(255, 255, 255, 0.14),
    0 10px 24px rgba(5, 15, 84, 0.16);
}

/* Right login inputs: solid dark blue */
.login-card input,
.login-card select {
  background: #14226d;
  color: #ffffff;
  border: 1px solid rgba(99, 180, 255, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 8px 18px rgba(0, 0, 0, 0.16);
}

.login-card input::placeholder {
  color: rgba(255, 255, 255, 0.52);
}

.login-card select option {
  color: #111111;
  background: #ffffff;
}

.login-card input:focus,
.login-card select:focus {
  background: #192b82;
  border-color: rgba(15, 140, 250, 0.86);
  box-shadow:
    0 0 0 4px rgba(15, 140, 250, 0.18),
    0 8px 18px rgba(0, 0, 0, 0.18);
}

.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.81rem;
  line-height: 1.45;
  padding: 12px;
  font-weight: 600;
  background: rgba(5, 15, 84, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
}

.checkbox input {
  width: 18px;
  min-height: 18px;
  margin-top: 2px;
  flex: 0 0 auto;
  accent-color: var(--ds-green);
}

.btn {
  border: 0;
  cursor: pointer;
  min-height: 50px;
  border-radius: 14px;
  font-weight: 900;
  font-size: 0.96rem;
  margin-top: 2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 16px;
  transition: transform 0.16s ease, filter 0.16s ease, box-shadow 0.16s ease;
}

.btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

.btn.register {
  background: linear-gradient(135deg, var(--ds-dark), #07196d);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 14px 32px rgba(5, 15, 84, 0.25);
}

.btn.login {
  background: linear-gradient(135deg, var(--ds-blue), #0074df);
  color: var(--white);
  border: 1px solid rgba(255, 255, 255, 0.10);
  box-shadow: 0 14px 32px rgba(15, 140, 250, 0.20);
}

.hint-box {
  margin-top: 18px;
  padding: 14px;
  border-radius: 16px;
  font-size: 0.84rem;
  line-height: 1.55;
  background:
    radial-gradient(circle at top left, rgba(15, 140, 250, 0.12), transparent 34%),
    rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.10);
  color: rgba(255, 255, 255, 0.72);
}

.quick-points {
  display: grid;
  gap: 8px;
}

.quick-point {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.quick-point::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
  margin-top: 7px;
  background: var(--ds-green);
}

.footer {
  text-align: center;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.8rem;
  margin-top: 26px;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  body {
    padding: 14px;
  }

  .hero {
    margin-bottom: 18px;
  }

  .logo {
    height: 62px;
  }

  h1 {
    font-size: clamp(1.9rem, 12vw, 2.65rem);
  }

  .subtitle {
    font-size: 0.95rem;
  }

  .accent {
    font-size: 0.7rem;
    padding: 7px 10px;
  }

  .card {
    padding: 16px;
    border-radius: 20px;
  }

  .card-head {
    flex-direction: column;
    gap: 10px;
  }

  .badge {
    font-size: 0.68rem;
    padding: 7px 9px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  input,
  select {
    min-height: 42px;
    padding: 9px 12px;
  }

  .btn {
    min-height: 44px;
    padding: 10px 14px;
  }
}
