@font-face {
  font-family: Nunito;
  src: url("../fonts/Nunito-Variable.ttf") format("truetype");
  font-weight: 200 1000;
  font-style: normal;
}

@font-face {
  font-family: Fredoka;
  src: url("../fonts/Fredoka-Variable.ttf") format("truetype");
  font-weight: 300 700;
  font-style: normal;
}

:root {
  --page: #F3F7FB;
  --card: #FFFFFF;
  --ink: #14365A;
  --muted: #4E6278;
  --line: #DCE5EE;
  --navy: #14365A;
  --on-navy: #F7F8F4;
  --yellow: #FBFF44;
  --link: #1A70B3;
  --danger: #8E1530;
  --danger-bg: #FDECEE;
  --font: Nunito, "Segoe UI", sans-serif;
  --display: Fredoka, sans-serif;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  line-height: 1.5;
}

main {
  padding: 24px;
}

h1, h2 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}

a {
  color: var(--link);
}

button, .primary {
  background: var(--navy);
  color: #FFFFFF;
  border: 0;
  border-radius: 8px;
  padding: 12px 16px;
  font-family: var(--display);
  font-weight: 700;
}

input {
  font-family: var(--font);
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
}

.envb {
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--yellow);
  color: var(--navy);
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  border-bottom: 2.5px solid var(--navy);
}

.envb small {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: 0;
  text-transform: none;
}

main.bleed {
  padding: 0;
}

.sx {
  display: flex;
  min-height: 100vh;
}

body:has(.envb) .sx {
  min-height: calc(100vh - 40px);
}

.brand {
  width: min(560px, 42vw);
  position: relative;
  overflow: hidden;
  background: linear-gradient(170deg, #1A70B3 0%, #175C9C 70%);
  color: #fff;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand .wm {
  font-family: var(--display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1;
  margin-top: 22px;
}

.brand .wm small {
  display: block;
  font-family: var(--font);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  opacity: 0.9;
  margin-top: 10px;
}

.brand p {
  font-weight: 600;
  font-size: 17px;
  line-height: 1.5;
  margin-top: 22px;
  max-width: 400px;
}

.sr {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 32px 24px;
}

.scard {
  width: min(500px, 100%);
  background: var(--card);
  border-radius: 26px;
  box-shadow: 0 3px 0 rgba(20, 54, 90, 0.1), 0 8px 20px rgba(20, 54, 90, 0.08);
  padding: 34px 36px;
}

.scard h1 {
  font-size: 30px;
  margin: 2px 0 6px;
}

.lbl {
  font-family: var(--display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--muted);
}

.lbl.field {
  margin: 18px 2px 5px;
}

.sm {
  font-weight: 600;
  font-size: 14px;
  line-height: 1.45;
  color: var(--muted);
}

.sm.hint {
  margin: 6px 2px 0;
}

.sm.center {
  text-align: center;
  margin-top: 10px;
}

.nowrap {
  white-space: nowrap;
}

.phone-row {
  display: flex;
  gap: 10px;
}

.fld {
  min-height: 50px;
  border-radius: 16px;
  border: 2.5px solid #C7D3E0;
  display: flex;
  align-items: center;
  padding: 0 14px;
  background: var(--card);
  font-weight: 700;
}

.fld.lock {
  flex: none;
  background: #F0F4F8;
  border-color: var(--line);
  color: var(--muted);
}

.phone-row .fld:last-child {
  flex: 1;
}

.fld input,
.codes input {
  border: 0;
  outline: none;
  width: 100%;
  padding: 0;
  background: transparent;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  color: var(--ink);
}

.scard button.primary,
.scard button.outline {
  width: 100%;
  height: 50px;
  border-radius: 26px;
  margin-top: 16px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  font-size: 15px;
}

.scard button.outline {
  background: var(--card);
  color: var(--ink);
  border: 2.5px solid var(--navy);
}

.scard button:disabled {
  background: var(--line);
  color: var(--muted);
}

.codes {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 18px;
}

.codes .box {
  width: 48px;
  height: 58px;
  border-radius: 14px;
  border: 2.5px solid #C7D3E0;
  display: grid;
  place-items: center;
  font-family: var(--display);
  font-weight: 700;
  font-size: 26px;
}

.codes .box.active {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 2px var(--navy);
}

.codes .box.active::after {
  content: "";
  width: 2px;
  height: 28px;
  background: var(--ink);
  animation: code-caret-blink 1s step-end infinite;
}

@keyframes code-caret-blink {
  50% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .codes .box.active::after {
    animation: none;
  }
}

.codes input.code {
  position: absolute;
  inset: 0;
  height: 58px;
  opacity: 0;
  cursor: text;
}

.between {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

button.link {
  background: transparent;
  color: var(--ink);
  border: 0;
  padding: 0;
  font-family: var(--display);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.wait {
  font-weight: 800;
}

.ferr {
  color: var(--danger);
  font-weight: 700;
  margin: 10px 2px 0;
}

.ban {
  display: flex;
  gap: 10px;
  border-radius: 18px;
  padding: 12px 14px;
  margin-top: 18px;
}

.ban.info {
  background: #E8F3FC;
}

.ban.bad {
  background: var(--danger-bg);
}

.ban b {
  display: block;
  font-family: var(--display);
  font-size: 15px;
}

.ban.bad b {
  color: var(--danger);
}

.ban p {
  margin: 2px 0 0;
  font-size: 13px;
}

.refused {
  text-align: center;
}

.dev {
  margin-top: 22px;
  border: 2.5px dashed #9FB6CC;
  border-radius: 20px;
  padding: 16px 18px;
  background: #F0F4F8;
}

.dev .lbl {
  margin: 0;
}

.tag {
  font-family: var(--display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  background: #EDF2F7;
  color: var(--muted);
  border-radius: 8px;
  padding: 3px 8px;
}

@media (max-width: 800px) {
  .sx {
    flex-direction: column;
  }

  .brand {
    width: auto;
    min-height: 240px;
  }
}

table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
}

th, td {
  text-align: left;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: var(--display);
  font-weight: 700;
}
