/* Registration + email OTP wizard (theme-aware). */

.tx-register {
  --tx-reg-ink: #152033;
  --tx-reg-muted: #5b6577;
  --tx-reg-line: rgba(21, 32, 51, 0.1);
  --tx-reg-soft: rgba(var(--tx-primary-rgb, 220, 53, 69), 0.1);
  --tx-reg-radius: 1.25rem;
  position: relative;
  isolation: isolate;
  padding: clamp(1.25rem, 3vw, 2.75rem) 0 clamp(2rem, 4vw, 3.5rem);
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 8% 12%, rgba(var(--tx-primary-rgb, 220, 53, 69), 0.16), transparent 60%),
    radial-gradient(ellipse 50% 40% at 92% 88%, rgba(21, 32, 51, 0.08), transparent 62%),
    linear-gradient(165deg, #f4f6f9 0%, #eef1f5 48%, #f7f8fa 100%);
}

.tx-register__shell {
  position: relative;
  z-index: 1;
  width: min(100% - 1.5rem, 980px);
  margin-inline: auto;
}

.tx-register__panel {
  display: grid;
  grid-template-columns: 1fr;
  border-radius: var(--tx-reg-radius);
  overflow: hidden;
  background: #fff;
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 18px 48px rgba(15, 23, 42, 0.1);
  border: 1px solid rgba(21, 32, 51, 0.06);
}

.tx-register__brand {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.25rem;
  padding: clamp(1.35rem, 3vw, 2.25rem);
  color: #f8fafc;
  min-height: 210px;
  background:
    linear-gradient(155deg, rgba(15, 23, 42, 0.92) 0%, rgba(21, 32, 51, 0.82) 48%, rgba(var(--tx-primary-rgb, 220, 53, 69), 0.78) 100%),
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.14), transparent 42%);
  overflow: hidden;
}

.tx-register__brand::after {
  content: "";
  position: absolute;
  width: 220px;
  height: 220px;
  right: -60px;
  bottom: -70px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}

.tx-register__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.85rem;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.92);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.tx-register__brand-title {
  margin: 0 0 0.55rem;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  line-height: 1.2;
  font-weight: 700;
  color: #fff;
}

.tx-register__brand-text {
  margin: 0;
  max-width: 30ch;
  font-size: 0.95rem;
  line-height: 1.55;
  color: rgba(248, 250, 252, 0.86);
}

.tx-register__steps {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.tx-register__steps li {
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 650;
  color: rgba(248, 250, 252, 0.72);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.tx-register__steps li.is-active {
  color: #fff;
  background: rgba(var(--tx-primary-rgb, 220, 53, 69), 0.55);
  border-color: rgba(255, 255, 255, 0.28);
}

.tx-register__steps li.is-done {
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.22);
  border-color: rgba(110, 231, 183, 0.35);
}

.tx-register__points {
  position: relative;
  z-index: 1;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.tx-register__points li {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.86rem;
  line-height: 1.4;
  color: rgba(248, 250, 252, 0.92);
}

.tx-register__points li i {
  margin-top: 0.12rem;
  color: #7dd3c7;
}

.tx-register__form-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.35rem, 3.2vw, 2.4rem);
  background: #fff;
}

.tx-register__icon {
  width: 3.1rem;
  height: 3.1rem;
  border-radius: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  color: var(--tx-primary, #dc3545);
  background: var(--tx-reg-soft);
  box-shadow: inset 0 0 0 1px rgba(var(--tx-primary-rgb, 220, 53, 69), 0.14);
}

.tx-register__title {
  margin: 0 0 0.4rem;
  font-size: clamp(1.35rem, 2vw, 1.65rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--tx-reg-ink);
}

.tx-register__subtitle {
  margin: 0 0 1.2rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--tx-reg-muted);
}

.tx-register__alert {
  border: 0;
  border-radius: 0.85rem;
  padding: 0.85rem 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 1.1rem;
}

.tx-register__alert--success {
  color: #0f5132;
  background: #e8f7ef;
  box-shadow: inset 0 0 0 1px rgba(25, 135, 84, 0.16);
}

.tx-register__alert--danger {
  color: #842029;
  background: #fdebec;
  box-shadow: inset 0 0 0 1px rgba(220, 53, 69, 0.16);
}

.tx-register__label {
  display: block;
  margin-bottom: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--tx-reg-ink);
}

.tx-register__field {
  position: relative;
  margin-bottom: 0.95rem;
}

.tx-register__field .form-control {
  min-height: 3rem;
  border-radius: 0.85rem;
  border-color: var(--tx-reg-line);
  background: #f8fafc;
}

.tx-register__field .form-control:focus {
  background: #fff;
  border-color: var(--tx-primary, #dc3545);
  box-shadow: 0 0 0 3px rgba(var(--tx-primary-rgb, 220, 53, 69), 0.18);
}

.tx-register__otp {
  letter-spacing: 0.35em;
  font-weight: 700;
  text-align: center;
  font-size: 1.2rem !important;
}

.tx-register__submit {
  min-height: 3.1rem;
  border-radius: 999px;
  font-weight: 650;
  box-shadow: 0 12px 24px -10px rgba(var(--tx-primary-rgb, 220, 53, 69), 0.55);
}

.tx-register__resend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.tx-register__resend .btn:disabled {
  opacity: 0.55;
  pointer-events: none;
}

.tx-register__cooldown {
  font-size: 0.84rem;
  color: var(--tx-reg-muted);
}

.tx-register__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.75rem;
  margin-top: 1.1rem;
  font-size: 0.9rem;
  color: var(--tx-reg-muted);
}

.tx-register__secure {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.85rem;
  font-size: 0.78rem;
  color: #6b7280;
}

.tx-register__secure i {
  color: var(--tx-primary, #dc3545);
}

@media (min-width: 768px) {
  .tx-register__panel {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    min-height: 520px;
  }

  .tx-register__brand {
    min-height: 100%;
  }
}

@media (max-width: 575.98px) {
  .tx-register__points {
    display: none;
  }
}
