* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: #fff;
}
[hidden] {
  display: none !important;
}
a {
  color: inherit;
  text-decoration: none;
}
.auth-header {
  position: fixed;
  z-index: 10;
  inset: 0 0 auto;
  height: 78px;
  padding: 0 5vw;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 88%);
  backdrop-filter: blur(14px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  letter-spacing: 0.08em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: block;
  object-fit: contain;
}
.brand small {
  display: block;
  margin-top: 2px;
  letter-spacing: 0.22em;
}
main {
  min-height: 100vh;
  padding-top: 78px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
}
.intro-panel {
  position: relative;
  min-height: calc(100vh - 78px);
  padding: 9vh 7%;
  padding-left: max(
    24px,
    calc((100vw - var(--theme-header-content-width)) / 2)
  );
  display: flex;
  flex-direction: column;
  /* justify-content: center; */
  overflow: hidden;
  color: var(--navy);
  background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
}
.intro-panel::before,
.intro-panel::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(15px);
}
.intro-panel::before {
  width: 360px;
  height: 360px;
  right: -170px;
  top: -80px;
  background: rgb(14 165 233 / 13%);
}
.intro-panel::after {
  width: 280px;
  height: 280px;
  left: -140px;
  bottom: -90px;
  background: rgb(20 184 166 / 13%);
}
.intro-content {
  position: relative;
  z-index: 1;
  width: 100%;
  margin: 0;
}
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 23px;
  letter-spacing: 0.18em;
}
.eyebrow span {
  width: 28px;
  height: 2px;
  background: var(--blue);
}
h1 {
  margin: 0;
  /* font-size: clamp(40px, 4vw, 58px); */
    font-size: var(--theme-heading-register);
  line-height: 1.25;
  letter-spacing: -0.045em;
  text-align: center;
}
.lead {
  max-width: 450px;
  margin-top: 5px;
  /* margin-bottom: 36px; */
  color: #475569;
  line-height: 1.85;
  text-align: center;
}
.tech-animated-cubes {
  display: block;
  width: 100%;
  height: clamp(340px, 42vh, 460px);
  border: 0;
}
.panel-foot {
  position: absolute;
  z-index: 1;
  left: max(24px, calc((100vw - var(--theme-header-content-width)) / 2));
  right: 7%;
  bottom: 24px;
  margin: 0;
  color: #64748b;
  font-size: 9px;
  letter-spacing: 0.05em;
  text-align: center;
}
.form-panel {
  padding: 6vh 7%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.form-shell {
  width: min(100%, 480px);
}
.step-indicator {
  width: 100%;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 31px;
  list-style: none;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #94a3b8;
  white-space: nowrap;
}
.step-item + .step-item {
  flex: 1;
}
.step-item + .step-item::before {
  content: "";
  height: 2px;
  flex: 1;
  margin: 0 18px;
  background: var(--theme-color-primary);
}
.step-marker {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  color: #64748b;
  background: #fff;
  font-size: var(--theme-text-lg);
  font-weight: 800;
}
.step-check {
  display: none;
}
.step-item small {
  color: inherit;
  font-size: var(--theme-text-base);
  font-weight: var(--theme-weight-medium);
}
.step-item.active,
.step-item.completed {
  color: var(--theme-color-primary);
}
.step-item.active .step-marker {
  border-color: var(--theme-color-primary);
  color: #fff;
  background: var(--theme-color-primary);
}
.step-item.completed .step-marker {
  border-color: var(--theme-color-primary-soft);
  color: var(--theme-color-primary);
  background: var(--theme-color-primary-soft);
}
.step-item.completed .step-number {
  display: none;
}
.step-item.completed .step-check {
  display: block;
}
.form-heading h2 {
  margin: 0;
  letter-spacing: -0.03em;
}
form {
  margin-top: 25px;
}
.field {
  margin-bottom: 16px;
}
.field label {
  display: block;
  margin-bottom: 8px;
}
.input-wrap {
  height: 52px;
  display: flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: 0.2s;
}
.input-wrap:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgb(2 132 199 / 10%);
}
.input-wrap .material-symbols-outlined {
  width: 48px;
  flex: 0 0 48px;
  text-align: center;
  color: #94a3b8;
  font-size: 21px;
  line-height: 1;
  user-select: none;
  font-variation-settings:
    "FILL" 0,
    "wght" 400,
    "GRAD" 0,
    "opsz" 24;
}
input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font: inherit;
}
.password-toggle {
  height: 100%;
  padding: 0 16px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}
.error-message {
  display: none;
  margin-top: 6px;
  color: #dc2626;
  font-size: 9px;
}
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 20px 0;
  cursor: pointer;
}
.check-row input {
  position: absolute;
  opacity: 0;
}

/* Registration page theme presentation */
.page-register { color: var(--theme-color-heading); background: var(--theme-color-surface); }
.page-register main { padding-top: var(--theme-header-height); }
.page-register .intro-panel { min-height: calc(100vh - var(--theme-header-height)); background: var(--theme-gradient-panel); }
.page-register .button,.page-register .submit-button { color: var(--theme-color-surface); background: var(--theme-color-primary); box-shadow: var(--theme-shadow-primary); }
.page-register .button:hover,.page-register .submit-button:hover { color: var(--theme-color-surface); background: var(--theme-color-primary-hover); }
.page-register .eyebrow,.page-register .label-row a,.page-register .check-row a { color: var(--theme-color-primary); }
.page-register .input-wrap input::placeholder,.page-register .password-toggle,.page-register .check-row p,.page-register .secure-note,.page-register .prototype-toast span { color: var(--theme-color-muted); }
.page-register .input-wrap { color: var(--theme-color-heading); border-color: var(--theme-color-border); background: var(--theme-color-surface); }
.page-register .input-wrap:focus-within { border-color: var(--theme-color-primary); box-shadow: 0 0 0 4px rgb(19 94 232 / 8%); }
.page-register .input-wrap input { color: var(--theme-color-heading); font-size: var(--theme-text-md); }
.page-register .form-heading h2 { color: var(--theme-color-text); font-size: var(--theme-heading-register); font-weight: var(--theme-weight-bold); text-align: center; }
.page-register .field label { color: var(--theme-color-text); font-size: var(--theme-text-lg); font-weight: var(--theme-weight-bold); }
.page-register .button { font-size: var(--theme-text-md); font-weight: var(--theme-weight-medium); }
.page-register .submit-button { font-size: var(--theme-text-lg); font-weight: var(--theme-weight-medium); }
.page-register .password-toggle,.page-register .check-row p,.page-register .secure-note { font-size: var(--theme-text-base); }
.page-register .prototype-toast span { font-size: var(--theme-text-xs); }
@media (max-width: 560px) {
  .page-register main { padding-top: var(--theme-header-mobile-height); }
  .page-register .intro-panel { min-height: calc(100vh - var(--theme-header-mobile-height)); }
}
.check-row > span {
  flex: 0 0 18px;
  height: 18px;
  border: 1px solid #cbd5e1;
  border-radius: 5px;
}
.check-row input:checked + span {
  display: grid;
  place-items: center;
  border-color: var(--blue);
  background: var(--blue);
}
.check-row input:checked + span::after {
  content: "✓";
  color: #fff;
  font-size: 10px;
}
.check-row p {
  margin: 0;
  line-height: 1.7;
}
.button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 12px;
  min-height: 43px;
  padding-right: 18px;
  padding-left: 18px;
  font: inherit;
  cursor: pointer;
  transition: 0.2s;
}
.button:hover {
  transform: translateY(-2px);
}
.button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}
.submit-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  border: 0;
  border-radius: 12px;
  min-height: 43px;
  padding-right: 18px;
  padding-left: 18px;
  font: inherit;
  cursor: pointer;
  transition: 0.2s;
}
.submit-button:hover {
  transform: translateY(-2px);
}
.otp-summary {
  margin-bottom: 20px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  border-radius: 12px;
  color: #475569;
  background: #f0f9ff;
}
.otp-summary strong {
  color: var(--navy);
}
.otp-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 40px 0px;
}
.otp-wrap .otp-digit {
  width: clamp(38px, 11vw, 48px);
  height: 52px;
  min-width: 0;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  color: var(--navy);
  background: #fff;
  text-align: center;
  font-size: 20px;
  font-weight: 800;
  transition: 0.2s;
}
.otp-wrap .otp-digit:focus {
  border-color: var(--theme-color-primary);
  box-shadow: 0 0 0 3px rgb(2 132 199 / 12%);
}
.otp-expiry,
.provision-note {
  color: #64748b;
  text-align: center;
}
.resend-button {
  width: 100%;
  margin-top: 10px;
  padding: 10px;
  border: 0;
  color: var(--blue);
  background: transparent;
  font: inherit;
  cursor: pointer;
}
.resend-button:disabled {
  color: #94a3b8;
  cursor: default;
}
.submit-button:disabled {
  opacity: 0.65;
  cursor: wait;
  transform: none;
}
.prototype-toast[data-type="error"] {
  border-color: #fecaca;
  color: #991b1b;
}
.prototype-toast {
  position: fixed;
  z-index: 30;
  right: 25px;
  bottom: 25px;
  max-width: 340px;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 50px rgb(15 23 42 / 15%);
  opacity: 0;
  pointer-events: none;
  transform: translateY(15px);
  transition: 0.25s;
}
.prototype-toast.show {
  opacity: 1;
  transform: translateY(0);
}
.prototype-toast span {
  margin-top: 3px;
}
.notice-modal {
  width: min(420px, calc(100% - 32px));
  padding: 32px;
  border: 0;
  border-radius: 20px;
  color: var(--navy);
  background: #fff;
  box-shadow: 0 24px 70px rgb(15 23 42 / 25%);
  text-align: center;
}
.notice-modal::backdrop {
  background: rgb(15 23 42 / 55%);
  backdrop-filter: blur(4px);
}
.notice-modal-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--theme-color-primary);
  background: var(--theme-color-primary-soft);
  font-size: 28px;
}
.notice-modal h2 {
  margin: 0;
  font-size: var(--theme-text-xl);
}
.notice-modal-message {
  margin: 12px 0 24px;
  color: #64748b;
  line-height: 1.7;
}
.notice-modal-button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: var(--theme-color-primary);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.notice-modal-button:hover {
  background: var(--theme-color-primary-hover);
}
@media (max-width: 850px) {
  main {
    grid-template-columns: 1fr;
  }
  .intro-panel {
    display: none;
  }
  .form-panel {
    min-height: calc(100vh - 78px);
    padding: 50px 24px;
  }
  .auth-header {
    padding: 0 24px;
  }
}
@media (max-width: 480px) {
  .form-panel {
    align-items: flex-start;
    padding-top: 40px;
  }
  .prototype-toast {
    left: 18px;
    right: 18px;
    bottom: 18px;
  }
}
.check-row input {
  position: absolute;
  width: 1px;
  height: 1px;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  opacity: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.page-register .button { font-size: var(--theme-text-md); font-weight: var(--theme-weight-medium); }
.page-register .submit-button { color: var(--theme-color-surface); background: var(--theme-color-primary); box-shadow: var(--theme-shadow-primary); font-size: var(--theme-text-lg); font-weight: var(--theme-weight-medium); }
.page-register .submit-button:hover { color: var(--theme-color-surface); background: var(--theme-color-primary-hover); }
