.auth-page {
  min-height: 100vh;
  display: flex;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

body:not(.auth-layout) .auth-page {
  overflow: visible;
}

.auth-page::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 55% 50% at 75% 45%, rgba(14, 159, 142, 0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 30% 30%, rgba(31, 182, 214, 0.05) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 60% 80%, rgba(95, 190, 70, 0.04) 0%, transparent 60%);
}

.auth-page::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.015;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(14, 159, 142, 0.4) 80px, rgba(14, 159, 142, 0.4) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(14, 159, 142, 0.4) 80px, rgba(14, 159, 142, 0.4) 81px);
}

.auth-visual {
  display: none;
  width: 45%;
  position: relative;
  overflow: hidden;
  align-self: stretch;
  min-height: 100vh;
}

@media (min-width: 1024px) { .auth-visual { display: flex; } }

.auth-visual-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: top;
}

.auth-visual-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(7, 24, 42, 0.3) 0%, rgba(7, 24, 42, 0.1) 30%, rgba(7, 24, 42, 0.05) 60%, rgba(7, 24, 42, 0.3) 100%);
}

.auth-visual-copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 48px;
  background: linear-gradient(0deg, rgba(7, 24, 42, 0.92) 0%, rgba(7, 24, 42, 0.4) 40%, transparent 70%);
}

.auth-visual-copy .lead {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.6;
  margin: 0 0 12px;
}

.auth-visual-lead {
  max-width: 340px;
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
  color: #B8C6D4;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}

.auth-brand-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(95, 190, 70, 0.2), rgba(14, 159, 142, 0.2));
  border: 1px solid rgba(14, 159, 142, 0.2);
}

.auth-brand-mark.green {
  background: linear-gradient(135deg, rgba(95, 190, 70, 0.2), rgba(14, 159, 142, 0.2));
  border-color: rgba(95, 190, 70, 0.2);
}

.auth-brand-mark.cyan {
  background: linear-gradient(135deg, rgba(31, 182, 214, 0.2), rgba(14, 159, 142, 0.2));
  border-color: rgba(31, 182, 214, 0.2);
}

.accent-teal { color: #0E9F8E; }
.accent-cyan {
  background: linear-gradient(135deg, #1FB6D6, #0E9F8E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.auth-brand-mark img { height: 20px; width: auto; }

.auth-brand-mobile { display: flex; margin-bottom: 24px; }
@media (min-width: 1024px) { .auth-brand-mobile { display: none; } }

.auth-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
  padding: 32px;
}

body:not(.auth-layout) .auth-panel {
  padding-top: 112px;
  padding-bottom: 56px;
}

.auth-box { width: 100%; max-width: 500px; }

.auth-box-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.auth-box-top .back-btn { margin: 0; }

.auth-box h1 {
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

.auth-box .sub {
  color: #B8C6D4;
  font-size: 14px;
  line-height: 1.7;
  margin: 0 0 40px;
}

.auth-box form { display: flex; flex-direction: column; gap: 20px; }

.auth-visual-copy .brand-name {
  font-family: var(--mono);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
  transition: 200ms ease;
}

.back-btn:hover { background: rgba(255, 255, 255, 0.1); }

.auth-forgot { text-align: end; }
.auth-forgot a { color: var(--teal); font-size: 14px; font-weight: 500; }
.auth-forgot a:hover { color: #fff; }

.auth-submit {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 18px;
  background: #0E9F8E;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  box-shadow: 0 0 30px rgba(14, 159, 142, 0.3);
  transition: 300ms ease;
}

.auth-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(14, 159, 142, 0.4);
}

.auth-submit:disabled,
.auth-submit.is-loading {
  opacity: 0.72;
  cursor: wait;
  transform: none;
  pointer-events: none;
}

.or-line {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 32px 0;
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
}

.or-line::before,
.or-line::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.auth-switch { text-align: center; font-size: 14px; color: #B8C6D4; }
.auth-switch a { color: var(--teal); font-weight: 600; }
.auth-switch a:hover { color: #fff; }

.auth-secure {
  position: absolute;
  bottom: 16px;
  inset-inline: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding-inline: 16px;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  pointer-events: none;
}

@media (min-width: 1024px) {
  .auth-page > .auth-secure {
    inset-inline-start: 45%;
    inset-inline-end: 0;
  }
}

.pass-meter {
  display: flex;
  gap: 6px;
  margin-top: 0;
}

.pass-meter span {
  flex: 1;
  height: 4px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.08);
  transition: 300ms ease;
}

.pass-meter span.is-on { background: #5FBE46; }

.auth-cv-field {
  position: relative;
  margin: 4px 0 18px;
}
.auth-cv-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
.auth-cv-zone {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 16px 18px;
  border-radius: 16px;
  border: 1px dashed rgba(14, 159, 142, 0.35);
  background:
    linear-gradient(135deg, rgba(14, 159, 142, 0.08), rgba(255, 255, 255, 0.02));
  cursor: pointer;
  transition: border-color 200ms ease, background 200ms ease, transform 200ms ease;
}
.auth-cv-field:hover .auth-cv-zone,
.auth-cv-field.is-dragover .auth-cv-zone {
  border-color: rgba(14, 159, 142, 0.7);
  background:
    linear-gradient(135deg, rgba(14, 159, 142, 0.14), rgba(255, 255, 255, 0.03));
}
.auth-cv-field.is-dragover .auth-cv-zone {
  transform: translateY(-1px);
}
.auth-cv-ico {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(14, 159, 142, 0.14);
  color: #0E9F8E;
  font-size: 22px;
}
.auth-cv-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.auth-cv-copy strong {
  font-size: 14px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
}
.auth-cv-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.42);
  line-height: 1.5;
}
.auth-cv-action {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #5FBE46;
}
.auth-cv-field.is-filled .auth-cv-zone {
  display: none;
}
.auth-cv-field.is-filled .auth-cv-input {
  pointer-events: none;
}
.auth-cv-picked {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(95, 190, 70, 0.28);
  background: rgba(95, 190, 70, 0.08);
  cursor: pointer;
}
.auth-cv-picked[hidden] {
  display: none !important;
}
.auth-cv-file-ico {
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: rgba(95, 190, 70, 0.16);
  color: #5FBE46;
  font-size: 20px;
}
.auth-cv-file-meta {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.auth-cv-file-name {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.auth-cv-file-size {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.45);
}
.auth-cv-clear {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.7);
  display: grid;
  place-items: center;
  cursor: pointer;
  position: relative;
  z-index: 3;
  transition: background 160ms ease, color 160ms ease;
}
.auth-cv-clear:hover {
  background: rgba(255, 80, 80, 0.16);
  color: #ff8a8a;
}
.auth-cv-clear i {
  font-size: 18px;
}

.auth-agree {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 12px;
  line-height: 1.7;
  color: #B8C6D4;
  cursor: pointer;
}

.auth-agree input { position: absolute; opacity: 0; pointer-events: none; }

.auth-check {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  color: transparent;
  font-size: 10px;
}

.auth-agree input:checked + .auth-check {
  border-color: #0E9F8E;
  background: #0E9F8E;
  color: #fff;
}

.auth-agree a { color: #0E9F8E; }

.invite-box {
  padding: 24px;
  border-radius: 24px;
  backdrop-filter: blur(20px);
}

.invite-box.green {
  border: 1px solid rgba(95, 190, 70, 0.35);
  background: rgba(95, 190, 70, 0.06);
  box-shadow: 0 0 40px rgba(95, 190, 70, 0.12);
}

.invite-box.cyan {
  border: 1px solid rgba(31, 182, 214, 0.35);
  background: rgba(31, 182, 214, 0.06);
  box-shadow: 0 0 40px rgba(31, 182, 214, 0.12);
}

.invite-box-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 20px;
}

.invite-box-head strong { display: block; margin-bottom: 4px; }
.invite-box-head p { margin: 0; font-size: 12px; color: #B8C6D4; }

.invite-icon {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(95, 190, 70, 0.15);
  border: 1px solid rgba(95, 190, 70, 0.3);
  color: #5FBE46;
  font-size: 20px;
  box-shadow: 0 0 20px rgba(95, 190, 70, 0.15);
}

.invite-field input {
  border-color: rgba(95, 190, 70, 0.5);
  background: rgba(95, 190, 70, 0.04);
}

.invite-field input:focus {
  border-color: rgba(95, 190, 70, 0.7);
  box-shadow: 0 0 0 3px rgba(95, 190, 70, 0.08);
}

.invite-field .field-icon { color: rgba(95, 190, 70, 0.5); }
.invite-field:focus-within .field-icon { color: #5FBE46; }

.invite-field.cyan input {
  border-color: rgba(31, 182, 214, 0.5);
  background: rgba(31, 182, 214, 0.04);
  font-family: inherit;
  letter-spacing: normal;
}

.invite-field.cyan input:focus {
  border-color: rgba(31, 182, 214, 0.7);
  box-shadow: 0 0 0 3px rgba(31, 182, 214, 0.08);
}

.invite-field.cyan .field-icon { color: rgba(31, 182, 214, 0.5); }
.invite-field.cyan:focus-within .field-icon { color: #1FB6D6; }

.invite-field.cyan input:focus + label,
.invite-field.cyan.is-filled label {
  color: #1FB6D6;
}

.invite-icon.cyan {
  background: rgba(31, 182, 214, 0.15);
  border-color: rgba(31, 182, 214, 0.3);
  color: #1FB6D6;
  box-shadow: 0 0 20px rgba(31, 182, 214, 0.15);
}

.invite-hint {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 12px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(95, 190, 70, 0.04);
  border: 1px solid rgba(95, 190, 70, 0.08);
  color: rgba(255, 255, 255, 0.45);
  font-size: 12px;
  line-height: 1.7;
}

.invite-hint.cyan {
  background: rgba(31, 182, 214, 0.04);
  border-color: rgba(31, 182, 214, 0.08);
}

.invite-hint i { color: #5FBE46; }
.invite-hint.cyan i { color: #1FB6D6; }

.invite-code-input { font-family: var(--mono); letter-spacing: 0.08em; }

.auth-alt {
  margin-top: 32px;
  text-align: center;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
}

.auth-alt a { font-weight: 600; color: #1FB6D6; }

/* ===== Gateway ===== */
.gateway {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 40px;
  position: relative;
  overflow: hidden;
  background: var(--navy);
}

.gateway::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(ellipse 50% 60% at 30% 35%, rgba(95, 190, 70, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 70% 35%, rgba(31, 182, 214, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 40% 50% at 50% 80%, rgba(14, 159, 142, 0.05) 0%, transparent 60%);
}

.gateway::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.025;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 80px, rgba(14, 159, 142, 0.5) 80px, rgba(14, 159, 142, 0.5) 81px),
    repeating-linear-gradient(90deg, transparent, transparent 80px, rgba(14, 159, 142, 0.5) 80px, rgba(14, 159, 142, 0.5) 81px);
}

.gateway-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 880px;
}

.gateway-head { text-align: center; margin-bottom: 56px; }

.gateway-logo { justify-content: center; margin-bottom: 24px; }
.gateway-logo .auth-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(95, 190, 70, 0.15), rgba(14, 159, 142, 0.15));
}
.gateway-logo .auth-brand-mark img { height: 28px; }
.gateway-logo .brand-name { font-size: 20px; letter-spacing: 0.15em; color: #0E9F8E; }

.gateway-head h1 {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.gateway-head p {
  margin: 0 auto;
  max-width: 520px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.5);
}

.gateway-grid {
  display: grid;
  gap: 24px;
  align-items: stretch;
}

@media (min-width: 768px) { .gateway-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }

.gateway-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 32px;
  border-radius: 24px;
  border: 1px solid rgba(95, 190, 70, 0.2);
  background: rgba(15, 36, 58, 0.55);
  backdrop-filter: blur(24px);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.gateway-card.cyan { border-color: rgba(31, 182, 214, 0.2); }

.gateway-card-glow {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.gateway-card-glow.green { background: radial-gradient(ellipse 70% 70% at 70% 30%, rgba(95, 190, 70, 0.05) 0%, transparent 70%); }
.gateway-card-glow.cyan { background: radial-gradient(ellipse 70% 70% at 30% 30%, rgba(31, 182, 214, 0.05) 0%, transparent 70%); }

.gateway-card .auth-brand-mark { margin-bottom: 16px; transition: transform 500ms ease; }
.gateway-card:hover .auth-brand-mark { transform: scale(1.05); }

.gateway-card h3 { position: relative; margin: 0 0 8px; font-size: 20px; }
.gateway-card > p { position: relative; margin: 0; font-size: 14px; line-height: 1.7; color: rgba(255, 255, 255, 0.55); }

.gateway-actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.gateway-btn {
  flex: 1 1 11rem;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  white-space: normal;
  overflow-wrap: break-word;
  transition: transform 300ms ease, filter 300ms ease, box-shadow 300ms ease;
}

html[dir="ltr"] .gateway-actions {
  flex-direction: column;
}

html[dir="ltr"] .gateway-btn {
  flex: 1 1 auto;
  width: 100%;
}

.gateway-btn:hover { transform: translateY(-2px); }

.gateway-btn-teal {
  background: #0E9F8E;
  color: #fff;
  box-shadow: 0 0 25px rgba(14, 159, 142, 0.25);
}

.gateway-btn-outline-teal {
  border: 1px solid rgba(14, 159, 142, 0.3);
  color: #0E9F8E;
  background: rgba(14, 159, 142, 0.06);
}

.gateway-btn-cyan {
  background: linear-gradient(135deg, #1FB6D6, #0E9F8E);
  color: #fff;
  box-shadow: 0 0 25px rgba(31, 182, 214, 0.25);
}

.gateway-btn-outline-cyan {
  border: 1px solid rgba(31, 182, 214, 0.3);
  color: #1FB6D6;
  background: rgba(31, 182, 214, 0.06);
}

.gateway > .auth-secure {
  position: relative;
  bottom: auto;
  inset-inline: auto;
  z-index: 1;
  width: 100%;
  max-width: 880px;
  margin-top: 56px;
  margin-bottom: 8px;
}

.btn-outline-teal {
  border: 1px solid rgba(14, 159, 142, 0.3);
  color: #0E9F8E;
  background: rgba(14, 159, 142, 0.06);
}

.btn-outline-cyan {
  border: 1px solid rgba(31, 182, 214, 0.3);
  color: #1FB6D6;
  background: rgba(31, 182, 214, 0.06);
}

.btn-gradient-cyan {
  background: linear-gradient(135deg, #1FB6D6, #0E9F8E);
  color: #fff;
  box-shadow: 0 0 25px rgba(31, 182, 214, 0.25);
}

.otp-boxes {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.otp-boxes input {
  width: 52px;
  height: 60px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-align: center;
  font-size: 22px;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 700;
  outline: none;
}

.otp-boxes input:focus,
.otp-boxes input.is-filled {
  border-color: rgba(14, 159, 142, 0.6);
  box-shadow: 0 0 0 3px rgba(14, 159, 142, 0.08);
  background: rgba(14, 159, 142, 0.06);
}

/* Ready AuthFlow + OTPScreen (provider_new / website auth) */
.page-register-otp .site-header {
  height: 72px;
  background: rgba(7, 30, 50, 0.95);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.35);
}

.page-register-otp .auth-page--ready-flow {
  min-height: auto;
  overflow: visible;
  padding-top: 72px;
}

.auth-page--ready-flow {
  flex-direction: column;
  min-height: 100vh;
  background: #07182A;
}

.auth-page--ready-flow::before {
  background-image:
    radial-gradient(ellipse 60% 55% at 50% 40%, rgba(14, 159, 142, 0.06) 0%, transparent 70%),
    radial-gradient(ellipse 45% 40% at 20% 25%, rgba(95, 190, 70, 0.04) 0%, transparent 70%),
    radial-gradient(ellipse 35% 35% at 80% 20%, rgba(31, 182, 214, 0.04) 0%, transparent 70%);
  opacity: 1;
}

.auth-page--ready-flow::after {
  opacity: 0.02;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 70px, rgba(14, 159, 142, 0.5) 70px, rgba(14, 159, 142, 0.5) 71px),
    repeating-linear-gradient(90deg, transparent, transparent 70px, rgba(14, 159, 142, 0.5) 70px, rgba(14, 159, 142, 0.5) 71px);
}

.auth-flow-center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 48px 24px 24px;
  position: relative;
  z-index: 1;
}

.page-register-otp .auth-flow-center {
  min-height: auto;
  padding-top: 32px;
  padding-bottom: 48px;
}

.page-register-otp .otp-glass-card {
  position: relative;
  z-index: 1;
}

.otp-ready-wrap {
  width: 100%;
  max-width: 480px;
  margin-bottom: 24px;
}

.otp-glass-card {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(14, 159, 142, 0.12);
  background: rgba(15, 36, 58, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  padding: 24px;
}

@media (min-width: 768px) {
  .otp-glass-card { padding: 40px; }
}

.otp-ready-inner {
  width: 100%;
  max-width: 512px;
  margin-inline: auto;
}

.otp-back-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.45);
  margin-bottom: 24px;
  transition: background 0.2s ease;
}

.otp-back-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.otp-screen-head {
  text-align: center;
  margin-bottom: 40px;
}

.otp-screen-icon-wrap {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.otp-screen-glow {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(14, 159, 142, 0.15) 0%, transparent 70%);
  animation: otpPulseGlow 2.5s ease-in-out infinite;
}

.otp-screen-icon {
  position: relative;
  z-index: 1;
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(14, 159, 142, 0.1);
  border: 1px solid rgba(14, 159, 142, 0.2);
  color: #0E9F8E;
  font-size: 30px;
}

.otp-screen-icon i { display: block; line-height: 1; }

.otp-screen-title {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 700;
  color: #fff;
  text-align: center;
}

.otp-screen-sub {
  margin: 0;
  color: #B8C6D4;
  font-size: 14px;
  line-height: 1.625;
  text-align: center;
}

.otp-phone-ltr {
  direction: ltr;
  unicode-bidi: isolate;
  display: inline-block;
  color: #fff;
  font-family: "IBM Plex Mono", monospace;
  letter-spacing: 0.02em;
}

.otp-form { display: block; }

.otp-boxes--ready {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 0 0 24px;
}

.otp-boxes--ready input {
  width: 52px;
  height: 60px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  font-family: "IBM Plex Mono", monospace;
  outline: none;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.otp-boxes--ready input:focus,
.otp-boxes--ready input.is-focus {
  border-color: rgba(14, 159, 142, 0.8);
  box-shadow: 0 0 0 3px rgba(14, 159, 142, 0.12);
  background: rgba(14, 159, 142, 0.06);
}

.otp-boxes--ready input.is-filled {
  transform: translateY(-2px);
  border-color: rgba(14, 159, 142, 0.5);
  box-shadow: 0 0 12px rgba(14, 159, 142, 0.15);
  background: rgba(14, 159, 142, 0.06);
}

.otp-inline-error {
  margin: -8px 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 162, 77, 0.1);
  border: 1px solid rgba(255, 162, 77, 0.2);
  color: #FFA24D;
}

.otp-inline-success {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 13px;
  line-height: 1.55;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: start;
  background: rgba(14, 159, 142, 0.1);
  border: 1px solid rgba(14, 159, 142, 0.22);
  color: rgba(255, 255, 255, 0.88);
}

.otp-inline-success i {
  flex-shrink: 0;
  margin-top: 2px;
  font-size: 18px;
  color: #0E9F8E;
}

.otp-submit {
  width: 100%;
  padding: 16px;
  border: 0;
  border-radius: 18px;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 24px;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.3);
  box-shadow: none;
  transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, opacity 0.3s ease;
}

.otp-submit:disabled { opacity: 0.4; }

.otp-submit.is-ready:not(:disabled) {
  opacity: 1;
  cursor: pointer;
  background: #0E9F8E;
  color: #fff;
  box-shadow: 0 0 30px rgba(14, 159, 142, 0.3);
}

.otp-submit.is-ready:not(:disabled):hover {
  transform: translateY(-2px);
  box-shadow: 0 0 40px rgba(14, 159, 142, 0.4);
}

.otp-resend-block {
  text-align: center;
  margin-bottom: 24px;
}

.otp-resend-countdown {
  margin: 0;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.otp-resend-countdown span {
  font-family: "IBM Plex Mono", monospace;
  color: #1FB6D6;
  font-weight: 600;
}

.otp-resend-form { margin: 0; }
.otp-resend-form[hidden] { display: none !important; }

.otp-resend-btn {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  color: #1FB6D6;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.otp-resend-btn:hover { color: #fff; }

.otp-resend-hint {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.28);
}

.otp-change-phone {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.3);
  text-decoration: none;
  padding: 8px 0;
}

.otp-change-phone:hover { color: #fff; }

.otp-demo-hint {
  margin-top: 20px;
  padding: 8px;
  border-radius: 12px;
  text-align: center;
  background: rgba(255, 255, 255, 0.015);
}

.otp-demo-hint span {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.15);
}

.otp-flow-secure {
  width: 100%;
  max-width: 480px;
  margin: 16px auto 0;
  padding: 0 8px 24px;
  text-align: center;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.page-register-otp .otp-flow-secure {
  margin-top: 24px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.page-register-otp .otp-flow-secure i {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.28);
  flex-shrink: 0;
}

@keyframes otpPulseGlow {
  0%, 100% { opacity: 0.6; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.08); }
}

/* Onboarding — specialization pick (Ready SpecializationSelect) */
.onboarding-spec-page {
  min-height: calc(100vh - 120px);
  align-items: flex-start;
  padding: 48px 20px 64px;
}

.onboarding-spec-wrap {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 960px;
  margin: 0 auto;
}

.onboarding-spec-head {
  text-align: center;
  margin-bottom: 40px;
}

.onboarding-spec-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: rgba(95, 190, 70, 0.12);
  color: #5fbe46;
  font-size: 28px;
}

.onboarding-spec-head h1 {
  font-size: clamp(1.5rem, 4vw, 1.875rem);
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.onboarding-spec-head p {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.55);
  max-width: 28rem;
  margin: 0 auto;
  line-height: 1.6;
}

.onboarding-spec-grid {
  display: grid;
  gap: 24px;
  margin-bottom: 32px;
}

@media (min-width: 768px) {
  .onboarding-spec-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.onboarding-spec-card {
  position: relative;
  display: block;
  cursor: pointer;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(22, 55, 79, 0.5);
  backdrop-filter: blur(16px);
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-align: right;
}

.onboarding-spec-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.onboarding-spec-card-bar {
  display: block;
  height: 6px;
  width: 100%;
  background: linear-gradient(135deg, var(--spec-color, #0e9f8e), #1fb6d6);
}

.onboarding-spec-card-body {
  display: block;
  padding: 24px;
}

.onboarding-spec-card-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  margin-bottom: 20px;
  background: color-mix(in srgb, var(--spec-color, #0e9f8e) 18%, transparent);
  color: var(--spec-color, #0e9f8e);
  font-size: 22px;
}

.onboarding-spec-card-title {
  display: block;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 8px;
}

.onboarding-spec-card-desc {
  display: block;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 20px;
  min-height: 4.5em;
}

.onboarding-spec-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.55);
}

.onboarding-spec-card-meta i {
  margin-inline-end: 4px;
  vertical-align: middle;
}

.onboarding-spec-card-check {
  position: absolute;
  top: 14px;
  inset-inline-start: 14px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #0e9f8e;
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.onboarding-spec-card.is-active {
  border-color: rgba(14, 159, 142, 0.6);
  background: rgba(14, 159, 142, 0.08);
  transform: translateY(-4px);
  box-shadow: 0 0 30px rgba(14, 159, 142, 0.2);
}

.onboarding-spec-card.is-active .onboarding-spec-card-check {
  display: flex;
}

.onboarding-spec-error {
  text-align: center;
  color: #f87171;
  font-size: 14px;
  margin-bottom: 16px;
}

.onboarding-spec-actions {
  text-align: center;
}

.onboarding-spec-submit {
  padding: 16px 48px;
  border-radius: 16px;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.3);
}

.onboarding-spec-submit:not(:disabled) {
  background: #0e9f8e;
  color: #fff;
  box-shadow: 0 0 30px rgba(14, 159, 142, 0.35);
}

.onboarding-spec-submit:not(:disabled):hover {
  filter: brightness(1.05);
}
