:root {
  --bg: #0b1220;
  --bg-2: #111827;
  --card: rgba(15, 23, 42, 0.78);
  --card-solid: #101827;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --primary: #38bdf8;
  --primary-2: #2563eb;
  --primary-dark: #075985;
  --danger: #fb7185;
  --success: #86efac;
  --shadow: 0 32px 90px rgba(0, 0, 0, 0.42);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(56, 189, 248, 0.16), transparent 30%),
    radial-gradient(circle at 82% 78%, rgba(37, 99, 235, 0.22), transparent 34%),
    linear-gradient(135deg, #0b1220 0%, #111827 48%, #0f172a 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  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: 46px 46px;
  mask-image: radial-gradient(circle at center, black, transparent 72%);
}

.auth-header {
  position: fixed;
  top: 28px;
  left: 34px;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  text-decoration: none;
  font-size: 25px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  font-size: 19px;
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.22);
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 110px 22px 110px;
}

.verify-box {
  width: 100%;
  max-width: 470px;
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  text-align: center;
}

.icon-wrap {
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background: rgba(56, 189, 248, 0.13);
  border: 1px solid rgba(56, 189, 248, 0.26);
}

.icon-wrap svg {
  width: 27px;
  height: 27px;
  fill: #7dd3fc;
}

.eyebrow {
  width: fit-content;
  margin: 0 auto 16px;
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.16);
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 750;
}

.verify-box h1 {
  margin: 0 0 14px;
  color: var(--text);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 850;
  letter-spacing: -0.055em;
}

.subtitle {
  margin: 0 0 30px;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.65;
}

.subtitle span {
  display: block;
  margin-top: 2px;
  color: #ffffff;
  font-weight: 800;
  word-break: break-word;
}

.verify-form {
  text-align: left;
}

.input-label {
  display: block;
  margin: 0 0 10px 5px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 750;
}

#codeInput {
  width: 100%;
  height: 60px;
  margin: 0 0 16px;
  padding: 0 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  outline: none;
  background: rgba(2, 6, 23, 0.34);
  color: var(--text);
  font-size: 23px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-align: center;
  transition: border 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

#codeInput::placeholder {
  color: rgba(203, 213, 225, 0.43);
}

#codeInput:focus {
  border-color: rgba(56, 189, 248, 0.9);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.14);
  background: rgba(2, 6, 23, 0.48);
}

.primary-btn {
  width: 100%;
  height: 60px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #ffffff;
  font-size: 16px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.24);
  transition: transform 0.16s ease, box-shadow 0.16s ease, opacity 0.16s ease;
}

.primary-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 22px 42px rgba(37, 99, 235, 0.3);
}

.primary-btn:active {
  transform: translateY(0);
}

.primary-btn:disabled {
  opacity: 0.62;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 18px;
  margin-top: 22px;
  flex-wrap: wrap;
}

.text-btn,
.text-link {
  border: none;
  background: transparent;
  color: #bae6fd;
  font-size: 14.5px;
  font-weight: 750;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.text-btn:hover,
.text-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.message {
  min-height: 22px;
  margin: 22px 0 0;
  color: var(--danger);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

.message.success {
  color: var(--success);
}

.auth-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 30px;
  text-align: center;
  color: rgba(203, 213, 225, 0.68);
  font-size: 13px;
}

@media (max-width: 640px) {
  .auth-header {
    top: 22px;
    left: 22px;
  }

  .brand {
    font-size: 22px;
  }

  .brand-mark {
    width: 31px;
    height: 31px;
    border-radius: 10px;
    font-size: 17px;
  }

  .auth-page {
    align-items: start;
    padding-top: 105px;
    padding-bottom: 70px;
  }

  .verify-box {
    padding: 28px 22px;
    border-radius: 26px;
  }

  .verify-box h1 {
    font-size: 31px;
  }

  .subtitle {
    font-size: 15.5px;
  }

  .auth-footer {
    position: static;
    padding: 0 18px 28px;
  }
}