/* Legacy demo quick-login UI must never appear on the sign-in page. */
.demo-wrap,
.login-divider,
.demo-card,
[data-demo-username],
[data-demo-password] {
  display: none !important;
}

:root {
  --blue: #2e78b8;
  --green: #2e9e6b;
  --red: #d97a45;
  --blue-mid: #3f8ccc;
  --blue-lt: #75acd8;
  --blue-dk: #235c90;
  --red-dk: #b96538;
  --white: #ffffff;
  --off: #f4f8fc;
  --cream: #fcf5ee;
  --text: #223548;
  --muted: #62778b;
  --border: #d4e0ea;
  --accent-soft: #f1c7ad;
  --auth-shadow:
    0 4px 6px rgba(34, 53, 72, 0.04),
    0 12px 30px rgba(34, 53, 72, 0.08),
    0 24px 60px rgba(35, 92, 144, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  height: 100%;
}

body.auth-mode {
  margin: 0;
  min-height: 100%;
  font-family: "DM Sans", sans-serif;
  background: var(--blue-dk);
  color: var(--text);
  overflow: hidden;
}

body.auth-mode::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 50%, rgba(46, 120, 184, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse at 80% 20%, rgba(217, 122, 69, 0.1) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 100%, rgba(63, 140, 204, 0.08) 0%, transparent 50%);
  z-index: 0;
}

body.auth-mode::after {
  content: "";
  position: fixed;
  top: -120px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: rgba(217, 122, 69, 0.06);
  z-index: 0;
  animation: authFloatOrb 12s ease-in-out infinite;
}

@keyframes authFloatOrb {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(-30px, 20px) scale(1.08);
  }
}

.is-hidden {
  display: none !important;
}

#portalApp.is-hidden {
  display: none !important;
}

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: var(--blue-dk);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

#loading-screen.fade-out {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.ld-spin {
  position: relative;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ld-spin::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 4px solid transparent;
  border-top-color: var(--red);
  border-right-color: rgba(185, 101, 56, 0.34);
  animation: authLoaderSpin 1s linear infinite;
}

.ld-spin::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.25);
  border-left-color: rgba(255, 255, 255, 0.12);
  animation: authLoaderSpin 1.7s linear infinite reverse;
}

@keyframes authLoaderSpin {
  to {
    transform: rotate(360deg);
  }
}

.ld-img {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  object-fit: cover;
  background: #fff;
  padding: 6px;
  position: relative;
  z-index: 1;
  animation: authLoaderPulse 2s ease-in-out infinite;
  box-shadow: 0 0 30px rgba(185, 101, 56, 0.42);
}

@keyframes authLoaderPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(185, 101, 56, 0.34);
  }

  50% {
    transform: scale(1.05);
    box-shadow: 0 0 46px rgba(185, 101, 56, 0.55);
  }
}

.ld-fallback {
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: var(--red);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Sora", sans-serif;
  font-weight: 700;
  font-size: 28px;
  color: #fff;
  position: relative;
  z-index: 1;
  box-shadow: 0 0 30px rgba(185, 101, 56, 0.42);
}

.ld-name {
  text-align: center;
  color: var(--white);
  font-family: "Sora", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.3px;
}

.ld-name small {
  display: block;
  margin-top: 0.3rem;
  font-family: "DM Sans", sans-serif;
  font-size: 0.72rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 3px;
}

.ld-track {
  width: 200px;
  height: 3px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 99px;
  overflow: hidden;
}

.ld-bar {
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, var(--red), #e4ad85);
  border-radius: 99px;
  transition: width 0.15s ease;
}

.loader-status {
  min-height: 18px;
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.45);
  text-align: center;
  letter-spacing: 0.4px;
}

.login-wrapper {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 18px;
}

.login-shell {
  width: min(100%, 460px);
  position: relative;
  z-index: 1;
}

.login-shell:has(#unlockRequestCard:not(.is-hidden)) {
  width: min(100%, 760px);
}

.login-card {
  width: 100%;
  background: var(--white);
  border: 2px solid var(--accent-soft);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--auth-shadow);
  animation: authCardIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

@keyframes authCardIn {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-header {
  position: relative;
  overflow: hidden;
  padding: 26px 24px 22px;
  text-align: center;
  background: linear-gradient(135deg, var(--blue-dk) 0%, #1a4a74 60%, #1e5a8a 100%);
}

.login-header::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -40px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
}

.login-header::after {
  content: "";
  position: absolute;
  left: -20px;
  bottom: -60px;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: rgba(217, 122, 69, 0.08);
}

.login-wrapper .brand-row {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  text-align: left;
  max-width: 100%;
}

.login-wrapper .brand-icon {
  width: 84px;
  height: 84px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: none;
  border: none;
  box-shadow: none;
  border-radius: 0;
  overflow: visible;
}

.login-wrapper .brand-logo {
  width: 84px;
  height: 84px;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
  padding: 0;
}

.login-wrapper .brand-label {
  min-width: 0;
  padding-top: 2px;
}

.login-wrapper .brand-label strong {
  display: block;
  font-family: "Playfair Display", serif;
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  letter-spacing: 0.04em;
  line-height: 1.15;
  text-transform: uppercase;
}

.login-wrapper .brand-label span {
  margin-top: 5px;
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.login-subtitle {
  position: relative;
  z-index: 1;
  max-width: 22rem;
  margin: 0 auto;
  font-size: 12.5px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.72);
}

.login-body {
  padding: 20px 24px;
}

.error-msg {
  display: none;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--accent-soft);
  background: var(--cream);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--red-dk);
}

.error-msg.show {
  display: flex;
}

.error-msg.success {
  background: rgba(39, 174, 96, 0.1);
  border-color: rgba(39, 174, 96, 0.35);
  color: #1e7e45;
}

.login-field-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 4px;
}

.login-field-error {
  display: none;
  margin: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  color: var(--red-dk);
}

.login-field-error.show {
  display: block;
}

.form-group > .login-field-error.show {
  margin-top: 4px;
}

.form-input.is-invalid {
  border-color: var(--red-dk);
  background: rgba(192, 57, 43, 0.03);
}

.form-input.is-invalid:focus {
  border-color: var(--red-dk);
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.form-group {
  margin-bottom: 12px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.01em;
}

.form-input-wrap {
  position: relative;
}

.form-input-wrap > svg {
  position: absolute;
  top: 50%;
  left: 13px;
  transform: translateY(-50%);
  stroke: var(--muted);
  opacity: 0.6;
  pointer-events: none;
  transition: opacity 0.15s;
}

.form-input-wrap:focus-within > svg {
  opacity: 1;
}

.form-input {
  width: 100%;
  height: 46px;
  padding: 0 42px 0 41px;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.form-input::placeholder {
  color: #90a0af;
}

.form-input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(46, 120, 184, 0.12);
  background: #fff;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.password-toggle:hover {
  background: rgba(46, 120, 184, 0.08);
  color: var(--blue-dk);
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 2px 0 14px;
}

.checkbox-wrap {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--muted);
  cursor: pointer;
}

.checkbox-wrap input {
  accent-color: var(--blue);
}

.forgot-link {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--blue-dk);
  text-decoration: none;
}

.forgot-link:hover {
  color: var(--blue);
  text-decoration: underline;
}

.login-btn {
  position: relative;
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--blue) 0%, var(--blue-dk) 100%);
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  box-shadow: 0 10px 20px rgba(35, 92, 144, 0.22);
}

.login-btn:hover {
  transform: translateY(-1px);
}

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

.login-btn:disabled,
.login-btn[aria-disabled="true"] {
  opacity: 0.58;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.login-btn:disabled:hover,
.login-btn[aria-disabled="true"]:hover {
  transform: none;
}

.login-btn.loading .btn-text {
  opacity: 0;
}

.login-btn.loading .btn-spinner {
  opacity: 1;
}

.btn-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  animation: authLoaderSpin 0.8s linear infinite;
  transition: none;
}

.login-btn .btn-text {
  transition: none;
}

.login-aside {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
  padding: 14px 8px;
  color: #fff;
}

.login-aside-card {
  padding: 24px 24px 22px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 40px rgba(9, 28, 45, 0.12);
}

.login-aside-card h2 {
  font-family: "Playfair Display", serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.login-aside-card p {
  margin-top: 12px;
  max-width: 40ch;
  font-size: 0.98rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
}

.login-feature-list {
  display: grid;
  gap: 12px;
}

.login-feature {
  display: flex;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.login-feature i {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(217, 122, 69, 0.16);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--accent-soft);
  flex-shrink: 0;
}

.login-feature strong {
  display: block;
  font-family: "Sora", sans-serif;
  font-size: 0.94rem;
}

.login-feature span {
  display: block;
  margin-top: 3px;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.7);
}

.login-field-hint {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.4;
  color: var(--muted);
}

.login-footer {
  padding: 0 24px 22px;
  text-align: center;
  font-size: 11px;
  line-height: 1.65;
  color: var(--muted);
}

.login-footer a {
  color: var(--blue-dk);
  text-decoration: none;
}

.login-footer a:hover {
  text-decoration: underline;
}

.login-cookie-note {
  display: block;
  margin-top: 8px;
  font-size: 10.5px;
  line-height: 1.5;
  color: rgba(90, 106, 122, 0.92);
}

.login-card-motion {
  display: flex;
  flex-direction: column;
}

.login-card-motion.shake {
  animation: authLoginShake 0.38s ease;
}

@keyframes authLoginShake {
  0%,
  100% {
    transform: translateX(0);
  }

  25% {
    transform: translateX(-5px);
  }

  50% {
    transform: translateX(5px);
  }

  75% {
    transform: translateX(-3px);
  }
}



/* Account locked modal + unlock request */
.login-portal-title {
  text-align: center;
  margin-bottom: 18px;
  color: #fff;
}

.login-portal-name {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.login-portal-kicker {
  display: block;
  margin-top: 6px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.88;
}

.unlock-form-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.unlock-form-actions {
  margin-top: 8px;
}

.unlock-form-actions .login-btn {
  width: 100%;
}

.auth-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 36, 62, 0.55);
  backdrop-filter: blur(6px);
}

.auth-modal-overlay.is-hidden {
  display: none;
}

.auth-modal-card {
  width: min(420px, 100%);
  padding: 32px 28px 26px;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(15, 36, 62, 0.22);
  text-align: center;
}

.auth-modal-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 18px;
  border-radius: 14px;
  background: rgba(231, 76, 60, 0.1);
  color: var(--red, #c0392b);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}

.auth-modal-card h2 {
  margin: 0 0 10px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  color: #1a2b3c;
}

.auth-modal-card p {
  margin: 0 0 22px;
  color: #5c6b7a;
  font-size: 0.95rem;
  line-height: 1.5;
}

.auth-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.auth-modal-actions .login-btn {
  width: 100%;
}

.auth-btn-ghost {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border, #d7e0ea);
  border-radius: 12px;
  background: #fff;
  color: #2c3e50;
  font-weight: 600;
  cursor: pointer;
}

.auth-btn-ghost:hover {
  background: #f7fafc;
}

.unlock-request-card .unlock-kicker {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted, #6b7c8f);
  margin-bottom: 6px;
}

.unlock-request-card h2 {
  margin: 0 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
  color: #1a2b3c;
}

.unlock-request-card .unlock-lead {
  margin: 0 0 20px;
  color: #5c6b7a;
  font-size: 0.92rem;
}

.unlock-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  text-align: left;
  align-items: stretch;
}

.unlock-form-grid .form-group.full-width {
  grid-column: 1 / -1;
}

.unlock-form-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
}

.unlock-form-col .form-label {
  margin-bottom: 8px;
}

.unlock-reason-panel {
  border: 1px solid var(--border, #d7e0ea);
  border-radius: 12px;
  padding: 12px;
  flex: 1;
  min-height: 200px;
  max-height: 280px;
  overflow-y: auto;
  background: #fafcfe;
}

.unlock-details-input {
  flex: 1;
  min-height: 200px;
  max-height: 280px;
  resize: vertical;
}

.unlock-reason-panel .panel-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7c8f;
  margin-bottom: 10px;
}

.unlock-reason-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 4px;
  font-size: 0.88rem;
  color: #2c3e50;
  cursor: pointer;
}

.unlock-reason-item input {
  margin-top: 3px;
  flex-shrink: 0;
}

.unlock-form-error {
  display: none;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(231, 76, 60, 0.08);
  color: #c0392b;
  font-size: 0.88rem;
  text-align: left;
}

.unlock-form-error.show {
  display: block;
}

.unlock-back-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue, #2e78b8);
  font-weight: 600;
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.unlock-back-link:hover {
  text-decoration: underline;
}

.is-hidden {
  display: none !important;
}

.auth-or-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.1rem 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.auth-or-divider::before,
.auth-or-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-or-divider span {
  padding: 0 4px;
  background: #fff;
}

.login-btn-outline {
  background: #fff;
  color: var(--blue);
  border: 1.5px solid var(--blue);
  box-shadow: none;
}

.login-btn-outline:hover {
  background: #f4f8fc;
  box-shadow: 0 6px 16px rgba(46, 120, 184, 0.12);
}

/* Activate account wizard */

.activate-modal-overlay {
  z-index: 1300;
  padding: 24px 16px;
  backdrop-filter: blur(4px);
}

.activate-modal-card {
  position: relative;
  width: min(680px, 100%);
  max-height: min(92vh, 860px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 0;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(212, 224, 234, 0.8);
  box-shadow:
    0 4px 6px rgba(34, 53, 72, 0.04),
    0 20px 50px rgba(35, 92, 144, 0.18);
  text-align: left;
  scrollbar-width: thin;
  scrollbar-color: #c8d6e2 transparent;
}

.activate-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.9);
  color: #6b7c8f;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.activate-modal-close:hover {
  background: #fff;
  color: #2c3e50;
}

.activate-modal-header {
  padding: 28px 28px 20px;
  background: linear-gradient(180deg, #f8fbfe 0%, #ffffff 100%);
  border-bottom: 1px solid var(--border);
  border-radius: 20px 20px 0 0;
}

.activate-modal-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-align: left;
  margin-bottom: 12px;
  padding-right: 36px;
}

.activate-modal-logo {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex-shrink: 0;
}

.activate-modal-brand-copy {
  min-width: 0;
}

.activate-modal-kicker {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 2px;
}

.activate-modal-brand h2 {
  margin: 0;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a2b3c;
  line-height: 1.2;
}

.activate-modal-lead {
  margin: 0;
  color: #5c6b7a;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* Step progress indicator — horizontal circle + label */
.activate-stepper {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: nowrap;
  gap: 0;
  padding: 18px 24px 10px;
  background: #fff;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.activate-stepper--four {
  padding-inline: 20px;
}

.activate-stepper--four .activate-step-label {
  font-size: 0.64rem;
}

.activate-stepper--four .activate-step-connector {
  min-width: 14px;
  max-width: 32px;
  margin-inline: 5px;
}

.activate-step-item {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.activate-step-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 0.75rem;
  font-weight: 700;
  color: #6b7c8f;
  background: #f3f6f9;
  border: 1.5px solid #d8e2ea;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.activate-step-item.is-active .activate-step-marker {
  color: #fff;
  background: var(--blue);
  border-color: var(--blue);
}

.activate-step-item.is-complete .activate-step-marker {
  color: #fff;
  background: var(--green);
  border-color: var(--green);
  font-size: 0;
}

.activate-step-item.is-complete .activate-step-marker::before {
  content: "\F633";
  font-family: "bootstrap-icons";
  font-size: 0.82rem;
  -webkit-text-stroke: 0.4px #fff;
}

.activate-step-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #6b7c8f;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.activate-step-item.is-active .activate-step-label {
  color: var(--blue);
}

.activate-step-item.is-complete .activate-step-label {
  color: var(--green);
  font-weight: 700;
}

.activate-step-connector {
  flex: 1;
  height: 2px;
  min-width: 28px;
  max-width: 56px;
  margin: 0 10px;
  background: #dde5ed;
  border-radius: 1px;
  transition: background 0.2s ease;
}

.activate-step-item.is-complete + .activate-step-connector {
  background: var(--green);
}

/* Step panels */
.activate-step-panel {
  padding: 8px 28px 12px;
  animation: activateStepIn 0.28s ease;
}

.activate-step-panel[data-step="1"] {
  padding-bottom: 4px;
}

@keyframes activateStepIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.activate-step-heading {
  margin-bottom: 18px;
}

.activate-step-title {
  margin: 0 0 4px;
  font-size: 1.05rem;
  font-weight: 700;
  color: #1a2b3c;
}

.activate-step-subtitle {
  margin: 0;
  font-size: 0.85rem;
  color: #6b7c8f;
  line-height: 1.45;
}

.activate-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}

.activate-form-full {
  grid-column: 1 / -1;
}

.activate-modal-card .form-group {
  margin-bottom: 0;
}

.activate-modal-card .form-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #4a6278;
  margin-bottom: 6px;
}

.activate-input-wrap {
  position: relative;
}

.activate-input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #8a9bab;
  font-size: 1rem;
  pointer-events: none;
}

.activate-input-wrap .activate-input {
  padding-left: 42px;
}

.activate-modal-card .activate-input {
  width: 100%;
  height: 46px;
  border-radius: 10px;
  border: 1.5px solid #dde5ed;
  padding: 10px 12px;
  font-size: 0.92rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.activate-modal-card .activate-input-wrap .activate-input {
  padding-left: 42px;
}

.activate-modal-card .activate-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 120, 184, 0.12);
}

.activate-info-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin: 16px 0 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f4f8fc;
  color: #62778b;
  font-size: 0.78rem;
  line-height: 1.45;
}

.activate-info-note i {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--blue);
}

.activate-security-box {
  margin-top: 18px;
  padding: 16px;
  border: 1px solid #cfe0f2;
  border-radius: 14px;
  background: #f8fbfe;
}

.activate-security-box-head {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.activate-security-box-head i {
  color: var(--blue);
  font-size: 1.2rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.activate-security-box-head strong {
  display: block;
  color: #1a2b3c;
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.activate-security-box-head p {
  margin: 0;
  font-size: 0.82rem;
  color: #6b7c8f;
  line-height: 1.45;
}

.activate-security-box .form-group {
  margin-bottom: 0;
}

.activate-captcha-row {
  display: flex;
  gap: 10px;
  align-items: stretch;
  margin-bottom: 12px;
}

.activate-captcha-image-wrap {
  flex: 1;
  min-height: 64px;
  border: 1px solid #d4e6f7;
  border-radius: 10px;
  background: #e8f3fb;
  overflow: hidden;
}

.activate-captcha-image {
  display: block;
  width: 100%;
  height: 64px;
  object-fit: cover;
}

.activate-captcha-refresh {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  min-height: 64px;
  border: 1px solid #d8e2ea;
  border-radius: 10px;
  background: #fff;
  color: var(--blue);
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.activate-captcha-refresh:hover {
  background: #f4f8fc;
  border-color: #c8d6e2;
}

.activate-captcha-hint {
  margin: 8px 0 0;
  font-size: 0.76rem;
  color: #6b7c8f;
  line-height: 1.4;
}

.activate-verified-card {
  margin-bottom: 16px;
  padding: 16px;
  border: 1px solid #d4e6f7;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbfe 0%, #eef5fb 100%);
}

.activate-verified-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  color: #1e7e45;
}

.activate-verified-card-head i {
  font-size: 1.15rem;
  flex-shrink: 0;
}

.activate-verified-card-head strong {
  font-size: 0.95rem;
  color: #1a2b3c;
}

.activate-verified-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}

.activate-verified-field {
  min-width: 0;
}

.activate-verified-label {
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7c8f;
  margin-bottom: 4px;
}

.activate-verified-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1a2b3c;
  line-height: 1.35;
  word-break: break-word;
}

.activate-verified-value.is-placeholder {
  color: #8a9bab;
  font-weight: 500;
}

.activate-verified-footnote {
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: #6b7c8f;
  line-height: 1.45;
}

.activate-registry-profile {
  margin-bottom: 20px;
  padding: 14px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbfe 0%, #eef5fb 100%);
  border: 1px solid #d4e6f7;
}

.activate-registry-profile-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.activate-registry-profile-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #dbe8f5;
  color: var(--blue);
  flex-shrink: 0;
  font-size: 1rem;
}

.activate-registry-profile-copy {
  min-width: 0;
  flex: 1;
}

.activate-registry-profile-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6b7c8f;
  margin-bottom: 3px;
}

.activate-registry-profile-value {
  display: block;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: #1a2b3c;
  word-break: break-word;
}

.activate-registry-profile-value.is-placeholder {
  color: #8a9bab;
  font-weight: 500;
}

.activate-registry-profile-divider {
  height: 1px;
  margin: 12px 0;
  background: rgba(212, 230, 247, 0.8);
}

/* OTP input */
.activate-otp-section {
  margin-bottom: 16px;
}

.activate-otp-label {
  display: block;
  text-align: center;
  margin-bottom: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #4a6278;
}

.activate-otp-row {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.activate-otp-digit {
  width: 44px;
  height: 52px;
  padding: 0;
  border: 1.5px solid #dde5ed;
  border-radius: 12px;
  background: #fff;
  text-align: center;
  font-size: 1.35rem;
  font-weight: 700;
  color: #1a2b3c;
  caret-color: var(--blue);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.1s ease;
}

.activate-otp-digit:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(46, 120, 184, 0.14);
  transform: translateY(-1px);
}

.activate-otp-digit.filled {
  border-color: var(--blue-lt);
  background: #f8fbfe;
}

/* Success / info banners */
.activate-success-banner {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 14px;
  padding: 11px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #eaf6ff 0%, #e8f4fd 100%);
  border: 1px solid #b8d9f5;
  color: #1e5a8a;
  font-size: 0.82rem;
  line-height: 1.45;
}

.activate-success-banner::before {
  content: "\F26A";
  font-family: "bootstrap-icons";
  flex-shrink: 0;
  font-size: 1rem;
  color: var(--blue);
}

.activate-success-banner.is-hidden {
  display: none !important;
}

.activate-success-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.25);
  color: #1e8449;
  font-size: 0.82rem;
  font-weight: 600;
}

.activate-success-badge i {
  font-size: 1rem;
}

.activate-resend-row {
  text-align: center;
  margin-top: 4px;
}

.activate-resend-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--blue);
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, opacity 0.15s ease;
}

.activate-resend-btn:hover:not(:disabled) {
  background: rgba(46, 120, 184, 0.08);
}

.activate-resend-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.activate-resend-countdown {
  color: #8a9bab;
  font-weight: 500;
}

/* Credentials step */
.activate-credentials-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 16px;
}

.activate-credential-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fbfe 0%, #eef5fb 100%);
  border: 1px solid #d4e6f7;
}

.activate-credential-card--password {
  background: linear-gradient(135deg, #fff9f5 0%, #fef3eb 100%);
  border-color: #f0d5c0;
}

.activate-credential-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
  font-size: 0.95rem;
  border: 1px solid #dbe8f5;
}

.activate-credential-card--password .activate-credential-icon {
  color: var(--red-dk);
  border-color: #f0d5c0;
}

.activate-credential-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #6b7c8f;
}

.activate-credential-value {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1a2b3c;
  word-break: break-all;
  line-height: 1.3;
}

.activate-credential-password {
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  font-family: "DM Sans", monospace;
}

.activate-error-msg {
  display: none;
  align-items: flex-start;
  gap: 8px;
  margin: 0 28px 12px;
  padding: 11px 14px;
  border-radius: 10px;
  background: rgba(231, 76, 60, 0.08);
  border: 1px solid rgba(231, 76, 60, 0.2);
  color: #c0392b;
  font-size: 0.85rem;
  line-height: 1.45;
}

.activate-error-msg i {
  flex-shrink: 0;
  margin-top: 1px;
}

.activate-error-msg.show {
  display: flex;
}

.activate-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 16px 28px 24px;
  border-top: 1px solid var(--border);
  background: #fafcfe;
  border-radius: 0 0 20px 20px;
}

.activate-btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: auto;
  padding: 10px 16px;
  border: 1.5px solid #dde5ed;
  border-radius: 10px;
  background: #fff;
  color: #4a6278;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.activate-btn-back:hover {
  background: #f4f8fc;
  border-color: #c8d6e2;
}

.activate-modal-footer .login-btn {
  width: auto;
  min-width: 148px;
  border-radius: 10px;
  font-weight: 600;
  padding: 11px 20px;
}

@media (max-width: 720px) {
  .unlock-form-grid {
    grid-template-columns: 1fr;
  }

  .activate-form-grid,
  .activate-credentials-grid,
  .activate-verified-grid {
    grid-template-columns: 1fr;
  }

  .activate-stepper {
    padding-inline: 16px;
    justify-content: flex-start;
  }

  .activate-stepper--four .activate-step-label {
    display: none;
  }

  .activate-stepper--four .activate-step-connector {
    min-width: 10px;
    max-width: 20px;
    margin-inline: 4px;
  }

  .activate-step-label {
    font-size: 0.68rem;
  }

  .activate-step-marker {
    width: 24px;
    height: 24px;
    font-size: 0.68rem;
  }

  .activate-step-connector {
    min-width: 16px;
    max-width: 32px;
    margin-inline: 6px;
  }

  .activate-otp-digit {
    width: 40px;
    height: 48px;
    font-size: 1.2rem;
  }

  .activate-modal-header,
  .activate-step-panel,
  .activate-modal-footer {
    padding-left: 20px;
    padding-right: 20px;
  }

  .activate-error-msg {
    margin-inline: 20px;
  }
}

@media (max-width: 640px) {
  .login-wrapper {
    padding: 18px 14px;
  }

  .login-header {
    padding: 22px 18px 20px;
  }

  .login-wrapper .brand-icon,
  .login-wrapper .brand-logo {
    width: 72px;
    height: 72px;
  }

  .login-wrapper .brand-label strong {
    font-size: 1rem;
  }

  .login-subtitle {
    font-size: 12px;
  }

  .login-body {
    padding: 18px;
  }

  .login-footer {
    padding: 0 18px 18px;
  }

  .form-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

.verify-state-panel {
  padding: 8px 0 16px;
}

.verify-state-panel h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.verify-state-panel p {
  margin: 0 0 16px;
  color: var(--text-muted, #5f6b7a);
  line-height: 1.5;
}

.verify-code-input {
  letter-spacing: 0.35em;
  text-align: center;
  font-weight: 600;
}

.verify-resend-row {
  margin-top: 12px;
  text-align: center;
}
