/* ============================================================
   ZENITH AUTH - Complete Responsive Authentication Stylesheet
   Mobile-first | 5 breakpoints | clamp() typography | dvh-safe
   ============================================================ */

/* --- CSS Custom Properties --- */
:root {
  --zenith-bg: #020817;
  --zenith-surface: #04111f;
  --zenith-accent: #013dc4;
  --zenith-accent-bright: #0052ff;
  --zenith-accent-glow: rgba(1, 61, 196, 0.35);
  --zenith-text: #ffffff;
  --zenith-muted: rgba(255, 255, 255, 0.72);
  --zenith-card: #ffffff;
  --zenith-card-text: #0f172a;
  --zenith-card-muted: #64748b;
  --zenith-border: rgba(1, 61, 196, 0.18);
  --zenith-input-border: #e2e8f0;
  --zenith-input-focus: rgba(1, 61, 196, 0.12);
  --zenith-radius: 12px;
  --zenith-radius-sm: 10px;
  --zenith-shadow: 0 24px 64px rgba(2, 8, 23, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.04);
  --zenith-shadow-sm: 0 4px 20px rgba(2, 8, 23, 0.2);
  --zenith-btn-shadow: 0 8px 24px var(--zenith-accent-glow);
  --zenith-btn-shadow-hover: 0 12px 28px rgba(0, 82, 255, 0.35);
  --zenith-font: 'Plus Jakarta Sans', 'Outfit', sans-serif;
  --zenith-font-display: 'Outfit', sans-serif;
  --zenith-input-height: clamp(44px, 5.5vw, 52px);
  --zenith-radius-card: clamp(12px, 2vw, 20px);
  --zenith-padding-card: clamp(1.25rem, 4vw, 2.5rem);
  --zenith-padding-card-x: clamp(1rem, 3.5vw, 2.25rem);
  --zenith-brand-pad: clamp(2rem, 4vw, 4.5rem) clamp(2rem, 5vw, 5rem);
  --zenith-main-pad: clamp(1rem, 2.5vw, 2.5rem);
  --zenith-field-gap: clamp(0.75rem, 1.2vw, 1.1rem);
  --zenith-header-gap: clamp(1.25rem, 2.25vw, 2rem);
  --zenith-logo-gap: clamp(0.75rem, 1.5vw, 1.25rem);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.zenith-auth-body {
  font-family: var(--zenith-font);
  background: var(--zenith-bg);
  color: var(--zenith-text);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.zenith-auth-body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 15% 50%, rgba(1, 61, 196, 0.22), transparent 60%),
    radial-gradient(ellipse 50% 40% at 85% 20%, rgba(0, 82, 255, 0.12), transparent 55%);
  pointer-events: none;
  z-index: 0;
}

/* --- Auth Container: strict viewport fit --- */
.zenith-auth {
  position: relative;
  z-index: 1;
  display: flex;
  height: 100dvh;
  height: 100vh;
  overflow: hidden;
}

/* ============================================================
   BRAND SIDEBAR (Desktop)
   ============================================================ */
.zenith-auth-brand {
  flex: 1.05;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: var(--zenith-brand-pad);
  position: relative;
  overflow: hidden;
  min-height: 0;
}

.zenith-auth-brand::after {
  content: '';
  position: absolute;
  right: 0;
  top: 10%;
  bottom: 10%;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--zenith-border), transparent);
}

.zenith-auth-brand__logo {
  display: inline-flex;
  margin-bottom: clamp(0.75rem, 1.5vw, 2.25rem);
}

.zenith-auth-brand__logo img {
  height: clamp(32px, 4vw, 46px);
  width: auto;
  object-fit: contain;
}

.zenith-auth-brand__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--zenith-border);
  background: rgba(1, 61, 196, 0.12);
  color: var(--zenith-muted);
  font-size: clamp(0.65rem, 0.8vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: clamp(0.75rem, 1.5vw, 1.75rem);
  width: fit-content;
}

.zenith-auth-brand__badge span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #06ffa5;
  box-shadow: 0 0 10px rgba(6, 255, 165, 0.6);
  flex-shrink: 0;
}

.zenith-auth-brand__title {
  font-family: var(--zenith-font-display);
  font-size: clamp(1.4rem, 2.8vw, 3.2rem);
  font-weight: 800;
  line-height: 1.08;
  margin-bottom: clamp(0.5rem, 1.2vw, 1.25rem);
  color: #fff !important;
}

.zenith-auth-brand__title span {
  display: block;
}

.zenith-auth-brand__title .line-accent {
  background: linear-gradient(135deg, #3a7cff, #06ffa5);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.zenith-auth-brand__desc {
  font-size: clamp(0.8rem, 0.9vw, 1.05rem);
  line-height: 1.6;
  color: var(--zenith-muted);
  max-width: clamp(320px, 38vw, 520px);
  margin-bottom: clamp(0.75rem, 2vw, 2rem);
}

.zenith-auth-brand__pills {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(0.35rem, 0.6vw, 0.6rem);
}

.zenith-auth-brand__pill {
  padding: clamp(0.25rem, 0.4vw, 0.4rem) clamp(0.6rem, 0.9vw, 0.9rem);
  border-radius: 999px;
  border: 1px solid var(--zenith-border);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(0.65rem, 0.75vw, 0.78rem);
  font-weight: 600;
}

/* Brand visibility toggles */
.zenith-auth-brand--desktop { display: flex; }
.zenith-auth-brand--mobile { display: none; }

/* ============================================================
   MAIN CONTENT (Card area)
   ============================================================ */
.zenith-auth-main {
  flex: 0.95;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--zenith-main-pad);
  overflow: hidden;
  min-height: 0;
}

/* --- Auth Card --- */
.zenith-auth .account {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: min(92vw, 480px);
  max-height: 100%;
  overflow: hidden;
  margin: 0 auto;
}

.zenith-auth .account.kyc {
  max-width: min(95vw, 920px);
}

.zenith-auth .account-area {
  width: 100%;
  overflow: hidden;
}

.zenith-auth .account-wrapper {
  width: 100% !important;
  max-width: 100%;
  max-height: 100%;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: var(--zenith-card);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--zenith-radius-card);
  box-shadow: var(--zenith-shadow);
  padding: var(--zenith-padding-card) var(--zenith-padding-card-x);
  transition: padding 0.2s ease;
}

.zenith-auth .account-wrapper::-webkit-scrollbar {
  display: none;
}

.zenith-auth .account-wrapper.kyc {
  padding: clamp(1.25rem, 3vw, 2rem) clamp(0.875rem, 2.5vw, 2.25rem);
}

.zenith-auth .account-wrapper .account-logo {
  margin-bottom: var(--zenith-logo-gap);
  text-align: center;
}

.zenith-auth .account-wrapper .account-logo img {
  height: clamp(28px, 4vw, 40px);
  width: auto;
}

/* --- Card Header --- */
.zenith-auth .auth-card-header {
  margin-bottom: var(--zenith-header-gap);
  text-align: center;
}

.zenith-auth .auth-card-title {
  font-family: var(--zenith-font-display);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--zenith-card-text) !important;
  margin-bottom: 0.35rem;
  line-height: 1.2;
}

.zenith-auth .auth-card-subtitle {
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  color: var(--zenith-card-muted);
  margin-bottom: 0;
  line-height: 1.4;
}

.zenith-auth .account-wrapper .title {
  font-family: var(--zenith-font-display);
  font-size: clamp(1.2rem, 2vw, 1.75rem);
  font-weight: 700;
  color: var(--zenith-card-text) !important;
  margin-bottom: 0.35rem;
}

.zenith-auth .account-wrapper p {
  font-size: clamp(0.8rem, 1vw, 0.95rem);
  color: var(--zenith-card-muted);
  margin-bottom: clamp(0.75rem, 1.5vw, 1.75rem);
}

/* ============================================================
   FORM ELEMENTS
   ============================================================ */

/* --- Labels --- */
.zenith-auth .account-form .form-group label,
.zenith-auth .auth-field label {
  display: block;
  font-size: clamp(0.78rem, 0.9vw, 0.875rem);
  font-weight: 600;
  color: #334155;
  margin-bottom: 0.35rem;
}

/* --- Inputs --- */
.zenith-auth .account-form input.form--control,
.zenith-auth .account-form input.form-control,
.zenith-auth .account-form select.form--control,
.zenith-auth .account-form .nice-select {
  border: 1.5px solid var(--zenith-input-border) !important;
  border-radius: var(--zenith-radius-sm) !important;
  min-height: var(--zenith-input-height);
  height: auto;
  color: var(--zenith-card-text);
  background: #fff;
  font-size: clamp(0.875rem, 1vw, 0.95rem);
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  margin: 0;
}

.zenith-auth .account-form input.form--control:focus,
.zenith-auth .account-form input.form-control:focus,
.zenith-auth .account-form select.form--control:focus,
.zenith-auth .account-form input.form--control:focus-visible,
.zenith-auth .account-form input.form-control:focus-visible {
  border-color: var(--zenith-accent) !important;
  box-shadow: 0 0 0 3px var(--zenith-input-focus) !important;
  outline: none;
}

/* --- Input with icon wrapper --- */
.zenith-auth .auth-input-wrap {
  position: relative;
}

.zenith-auth .auth-input-wrap .auth-input-icon {
  position: absolute;
  left: clamp(12px, 1.5vw, 16px);
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: clamp(1rem, 1.2vw, 1.15rem);
  z-index: 2;
  pointer-events: none;
  line-height: 1;
}

.zenith-auth .auth-input-wrap .form--control,
.zenith-auth .auth-input-wrap .form-control {
  padding-left: clamp(2.5rem, 3.5vw, 3rem) !important;
}

/* --- Password toggle --- */
.zenith-auth .account-form .show-pass {
  position: absolute;
  right: clamp(10px, 1.2vw, 14px);
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  background: none;
  border: none;
  padding: 8px;
  cursor: pointer;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.9rem, 1.1vw, 1.05rem);
  line-height: 1;
  min-width: 36px;
  min-height: 36px;
  border-radius: 6px;
  transition: background 0.2s, color 0.2s;
}

.zenith-auth .account-form .show-pass:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #334155;
}

.zenith-auth .account-form .show-pass:focus-visible {
  outline: 2px solid var(--zenith-accent);
  outline-offset: 2px;
}

/* Auth field spacing */
.zenith-auth .auth-field {
  margin-bottom: var(--zenith-field-gap);
}

/* --- Input Group (phone number) --- */
.zenith-auth .account-form .input-group {
  display: flex;
  align-items: stretch;
  width: 100%;
}

.zenith-auth .account-form .input-group .input-group-prepend {
  display: flex;
}

.zenith-auth .account-form .input-group-text,
.zenith-auth .account-form .input-group-prepend .input-group-text,
.zenith-auth .account-form .input-group-text.copytext {
  border: 1.5px solid var(--zenith-input-border) !important;
  border-right: none !important;
  background: #f8fafc !important;
  color: #475569 !important;
  border-radius: var(--zenith-radius-sm) 0 0 var(--zenith-radius-sm) !important;
  min-height: var(--zenith-input-height);
  height: auto;
  font-size: clamp(0.78rem, 0.9vw, 0.85rem);
  padding: 0 clamp(8px, 1.2vw, 14px);
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
}

.zenith-auth .account-form .input-group .form--control {
  border-radius: 0 var(--zenith-radius-sm) var(--zenith-radius-sm) 0 !important;
  flex: 1;
  min-width: 0;
}

.zenith-auth .account-form .input-group .input-group-text.copytext select {
  background: transparent;
  border: none;
  color: inherit;
  font-size: inherit;
  font-weight: 600;
  min-height: auto;
  height: auto;
  padding: 0 1.25rem 0 0;
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23475569'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0 center;
  background-size: 10px 6px;
  cursor: pointer;
  max-width: 18ch;
  overflow: hidden;
  text-overflow: ellipsis;
}

.zenith-auth .account-form .input-group .input-group-text.copytext select:focus-visible {
  outline: 2px solid var(--zenith-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --- Radio Group (toggle style) --- */
.zenith-auth .radio-group {
  display: flex;
  gap: clamp(6px, 1vw, 10px);
  background: #f1f5f9;
  padding: clamp(4px, 0.6vw, 6px);
  border-radius: var(--zenith-radius);
  margin-bottom: clamp(0.5rem, 1vw, 1.25rem);
  border: 1px solid #e2e8f0;
}

.zenith-auth .radio-item {
  flex: 1;
}

.zenith-auth .radio-item input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.zenith-auth .radio-item label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 0.6vw, 8px);
  padding: clamp(7px, 1vw, 12px) clamp(6px, 1vw, 12px);
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.25s ease;
  margin-bottom: 0;
  color: #64748b;
  font-size: clamp(0.7rem, 0.85vw, 0.85rem);
  text-transform: uppercase;
  letter-spacing: 0.4px;
  min-height: clamp(36px, 4.5vw, 44px);
}

.zenith-auth .radio-item input:checked + label {
  background: var(--zenith-accent);
  color: #fff;
  box-shadow: 0 4px 16px var(--zenith-accent-glow);
}

.zenith-auth .radio-item label:hover {
  color: var(--zenith-accent);
}

.zenith-auth .radio-item input:focus-visible + label {
  outline: 2px solid var(--zenith-accent);
  outline-offset: 2px;
}

/* --- Button Base --- */
.zenith-auth .btn--base {
  background: var(--zenith-accent) !important;
  border: none !important;
  border-radius: var(--zenith-radius-sm) !important;
  min-height: var(--zenith-input-height);
  height: auto;
  font-weight: 700 !important;
  font-size: clamp(0.875rem, 1vw, 0.95rem) !important;
  letter-spacing: 0.02em;
  box-shadow: var(--zenith-btn-shadow);
  transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
  padding: clamp(10px, 1.2vw, 14px) clamp(16px, 2vw, 24px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  cursor: pointer;
  color: #fff !important;
  line-height: 1.2;
}

.zenith-auth .btn--base:hover {
  background: var(--zenith-accent-bright) !important;
  transform: translateY(-1px);
  box-shadow: var(--zenith-btn-shadow-hover);
}

.zenith-auth .btn--base:active {
  transform: translateY(0);
}

.zenith-auth .btn--base:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.zenith-auth .btn--base.w-100 {
  width: 100%;
}

/* --- Forgot & Account Links --- */
.zenith-auth .account-form .forgot-item {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.35rem;
}

.zenith-auth .account-form .forgot-item a,
.zenith-auth .account-form .account-item a,
.zenith-auth .account-form .custom-check-group label a,
.zenith-auth .text--base {
  color: var(--zenith-accent) !important;
  font-weight: 600;
  text-decoration: none;
  transition: color 0.2s;
}

.zenith-auth .account-form .forgot-item a:hover,
.zenith-auth .account-form .account-item a:hover {
  color: var(--zenith-accent-bright) !important;
  text-decoration: underline;
}

.zenith-auth .account-form .forgot-item a:focus-visible,
.zenith-auth .account-form .account-item a:focus-visible {
  outline: 2px solid var(--zenith-accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.zenith-auth .account-form .account-item {
  color: #475569;
  font-size: clamp(0.8rem, 0.9vw, 0.9rem);
  padding: 0.2rem 0;
}

/* --- Or Divider --- */
.zenith-auth .account-form .or-area {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.35rem;
  margin-bottom: 0.35rem;
  width: 100%;
}

.zenith-auth .account-form .or-area .or-line {
  flex: 1;
  height: 1px;
  background: #e2e8f0;
  border: none;
}

.zenith-auth .account-form .or-area .or-title {
  color: #94a3b8;
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

/* --- Custom Checkbox --- */
.zenith-auth .account-form .custom-check-group {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}

.zenith-auth .account-form .custom-check-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  min-width: 18px;
  margin-top: 2px;
  accent-color: var(--zenith-accent);
  cursor: pointer;
  border-radius: 4px;
}

.zenith-auth .account-form .custom-check-group input[type="checkbox"]:focus-visible {
  outline: 2px solid var(--zenith-accent);
  outline-offset: 2px;
}

.zenith-auth .account-form .custom-check-group label {
  color: #334155;
  font-size: clamp(0.8rem, 0.9vw, 0.875rem);
  cursor: pointer;
  line-height: 1.5;
}

/* ============================================================
   OTP INPUTS
   ============================================================ */
.zenith-auth .otp {
  width: clamp(38px, 10vw, 52px);
  height: clamp(40px, 7vw, 56px);
  border: 1.5px solid var(--zenith-input-border) !important;
  border-radius: var(--zenith-radius-sm) !important;
  background: #fff;
  color: var(--zenith-card-text);
  font-weight: 700;
  font-size: clamp(1rem, 2vw, 1.35rem);
  text-align: center;
  transition: border-color 0.2s, box-shadow 0.2s;
  margin: 0 clamp(3px, 0.5vw, 5px);
}

.zenith-auth .otp:focus {
  border-color: var(--zenith-accent) !important;
  box-shadow: 0 0 0 3px var(--zenith-input-focus);
  outline: none;
}

.zenith-auth .otp:focus-visible {
  border-color: var(--zenith-accent) !important;
  box-shadow: 0 0 0 3px var(--zenith-input-focus);
}

.zenith-auth .otp.required {
  border-color: #ef4444 !important;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* OTP container: flex row */
.zenith-auth .otp-container {
  display: flex;
  justify-content: center;
  gap: clamp(4px, 1vw, 10px);
  flex-wrap: wrap;
}

.zenith-auth .otp-container .otp {
  margin: 0;
}

/* --- Time/Countdown --- */
.zenith-auth .time-area {
  color: #64748b;
  font-size: clamp(0.8rem, 0.9vw, 0.875rem);
  line-height: 1.5;
}

.zenith-auth .time-area a {
  color: var(--zenith-accent) !important;
  font-weight: 600;
  text-decoration: none;
}

.zenith-auth .time-area a:hover {
  text-decoration: underline;
}

/* ============================================================
   KYC / MULTI-STEP
   ============================================================ */

.zenith-auth .account-wrapper.kyc .multi-step-indicator {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin-bottom: 8px;
  gap: 0;
  width: 100%;
}

.zenith-auth .account-wrapper.kyc .multi-step-indicator .step-item {
  flex: 1;
  max-width: 120px;
  text-align: center;
  position: relative;
}

.zenith-auth .account-wrapper.kyc .multi-step-indicator .step-item:not(:last-child)::after {
  content: "";
  position: absolute;
  top: clamp(12px, 1.8vw, 17px);
  left: calc(50% + clamp(14px, 2.2vw, 22px));
  width: calc(100% - clamp(28px, 4.5vw, 44px));
  height: 2px;
  background: #e2e8f0;
  z-index: 0;
  transition: background 0.3s;
}

.zenith-auth .account-wrapper.kyc .multi-step-indicator .step-item.completed:not(:last-child)::after {
  background: var(--zenith-accent);
}

.zenith-auth .account-wrapper.kyc .multi-step-indicator .step-circle {
  width: clamp(28px, 3.5vw, 36px);
  height: clamp(28px, 3.5vw, 36px);
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: clamp(11px, 1.3vw, 14px);
  margin-bottom: 4px;
  position: relative;
  z-index: 1;
  background: #f1f5f9;
  border: 2px solid #e2e8f0;
  color: #64748b;
  transition: all 0.3s ease;
}

.zenith-auth .account-wrapper.kyc .multi-step-indicator .step-item.active .step-circle,
.zenith-auth .account-wrapper.kyc .multi-step-indicator .step-item.completed .step-circle {
  background: var(--zenith-accent);
  border-color: var(--zenith-accent);
  color: #fff;
  box-shadow: 0 4px 12px var(--zenith-accent-glow);
}

.zenith-auth .account-wrapper.kyc .multi-step-indicator .step-label {
  display: block;
  font-size: clamp(8px, 1vw, 11px);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.2px;
  line-height: 1.2;
  color: #64748b;
}

.zenith-auth .account-wrapper.kyc .multi-step-indicator .step-item.active .step-label {
  color: var(--zenith-accent);
}

/* Step progress bar */
.zenith-auth .account-wrapper.kyc .step-progress {
  height: 3px;
  border-radius: 3px;
  margin-bottom: clamp(10px, 2vw, 20px);
  overflow: hidden;
  background: #e2e8f0;
}

.zenith-auth .account-wrapper.kyc .step-progress-bar {
  height: 100%;
  border-radius: 3px;
  background: var(--zenith-accent);
  transition: width 0.35s ease;
}

/* Step body */
.zenith-auth .account-wrapper.kyc .multi-step-body {
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.zenith-auth .account-wrapper.kyc .multi-step-body::-webkit-scrollbar {
  display: none;
}

.zenith-auth .account-wrapper.kyc .form-step {
  display: none;
}

.zenith-auth .account-wrapper.kyc .form-step.active {
  display: block;
}

.zenith-auth .account-wrapper.kyc .step-panel-header {
  margin-bottom: clamp(8px, 1.5vw, 16px);
  padding-bottom: clamp(8px, 1.2vw, 12px);
  border-bottom: 1px solid #f0edf5;
}

.zenith-auth .account-wrapper.kyc .step-panel-header h6 {
  margin-bottom: 2px;
  font-size: clamp(13px, 1.4vw, 16px);
  font-weight: 600;
  color: var(--zenith-card-text);
}

.zenith-auth .account-wrapper.kyc .step-panel-header p {
  margin-bottom: 0;
  font-size: clamp(11px, 1.1vw, 13px);
  color: var(--zenith-card-muted);
}

.zenith-auth .account-wrapper.kyc .form-step-fields .form-group {
  margin-bottom: clamp(10px, 1.5vw, 18px);
}

.zenith-auth .account-wrapper.kyc .form-step-fields select.form--control {
  width: 100%;
  height: auto;
  min-height: var(--zenith-input-height);
}

/* Step navigation buttons */
.zenith-auth .account-wrapper.kyc .step-navigation {
  display: flex;
  gap: clamp(8px, 1.2vw, 12px);
  margin-top: 4px;
  flex-wrap: wrap;
}

.zenith-auth .account-wrapper.kyc .step-navigation .btn--base {
  flex: 1;
  min-height: var(--zenith-input-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.zenith-auth .account-wrapper.kyc .step-navigation .btn-step-prev {
  background: #f1f5f9 !important;
  color: var(--zenith-accent) !important;
  border: 1.5px solid #e2e8f0 !important;
  box-shadow: none !important;
  flex: 0 0 auto;
  min-width: clamp(90px, 25vw, 140px);
}

.zenith-auth .account-wrapper.kyc .step-navigation .btn-step-prev:hover {
  background: #e2e8f0 !important;
}

.zenith-auth .account-wrapper.kyc .step-navigation .btn-step-next,
.zenith-auth .account-wrapper.kyc .step-navigation .btn-step-submit {
  flex: 1;
}

/* ============================================================
   VALIDATION & ERROR STATES
   ============================================================ */
.zenith-auth .error-msg,
.zenith-auth .text-danger {
  font-size: clamp(0.7rem, 0.8vw, 0.825rem);
  line-height: 1.3;
  word-break: break-word;
}

.zenith-auth .invalid-feedback {
  font-size: clamp(0.7rem, 0.8vw, 0.825rem);
  display: block;
  margin-top: 3px;
}

/* ============================================================
   RESPONSIVE BREAKPOINTS
   ============================================================ */

/* --- Tablet & below: collapse layout to vertical --- */
@media (max-width: 991px) {
  .zenith-auth {
    flex-direction: column;
  }

  .zenith-auth-brand--desktop {
    display: none;
  }

  .zenith-auth-brand--mobile {
    display: block;
    text-align: center;
    padding: clamp(0.75rem, 2vw, 1.5rem) clamp(0.75rem, 3vw, 1.25rem) 0;
    width: 100%;
  }

  .zenith-auth-brand--mobile .zenith-auth-brand__logo {
    justify-content: center;
    margin-bottom: 0;
  }

  .zenith-auth-brand--mobile .zenith-auth-brand__logo img {
    height: clamp(26px, 4vw, 38px);
  }

  .zenith-auth-main {
    padding: clamp(0.5rem, 2vw, 1.5rem) clamp(0.5rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2rem);
  }

  .zenith-auth .account-wrapper {
    padding: clamp(1rem, 3vw, 1.75rem) clamp(0.875rem, 3vw, 1.5rem);
  }

  .zenith-auth .account-wrapper.kyc {
    padding: clamp(0.875rem, 2.5vw, 1.5rem) clamp(0.75rem, 2vw, 1.25rem);
  }

  .zenith-auth .account {
    max-width: min(94vw, 480px);
  }

  .zenith-auth .account.kyc {
    max-width: min(96vw, 920px);
  }
}

/* --- Small phones (320px–430px landscape & portrait) --- */
@media (max-width: 430px) {
  .zenith-auth-main {
    padding: 0.35rem 0.5rem 1rem;
  }

  .zenith-auth .account-wrapper {
    padding: 0.875rem 0.75rem;
    border-radius: 12px;
  }

  .zenith-auth .account-wrapper.kyc {
    padding: 0.75rem 0.625rem;
  }

  .zenith-auth .auth-card-title {
    font-size: 1.15rem;
  }

  .zenith-auth .auth-card-header {
    margin-bottom: 0.75rem;
  }

  .zenith-auth .radio-item label {
    font-size: 0.68rem;
    padding: 6px 4px;
    gap: 3px;
  }

  .zenith-auth .otp {
    width: 34px;
    height: 38px;
    font-size: 0.9rem;
  }

  .zenith-auth .otp-container {
    gap: 3px;
  }

  .zenith-auth .auth-field {
    margin-bottom: 0.6rem;
  }

  .zenith-auth .account-form .account-item {
    font-size: 0.78rem;
  }

  .zenith-auth .account-wrapper.kyc .step-navigation {
    flex-direction: column;
  }

  .zenith-auth .account-wrapper.kyc .step-navigation .btn-step-prev {
    flex: 1;
    min-width: 100%;
  }

  .zenith-auth .account-wrapper.kyc .step-navigation .btn--base {
    width: 100%;
  }
}

/* --- 360px minimum: ensure nothing breaks --- */
@media (max-width: 360px) {
  .zenith-auth .account {
    max-width: 100%;
  }

  .zenith-auth .account-wrapper {
    padding: 0.75rem 0.5rem;
    border-radius: 10px;
  }

  .zenith-auth .auth-card-title {
    font-size: 1.05rem;
  }

  .zenith-auth .radio-item label {
    font-size: 0.62rem;
    padding: 5px 2px;
  }

  .zenith-auth .otp {
    width: 30px;
    height: 34px;
    font-size: 0.8rem;
  }

  .zenith-auth .account-form .input-group-text.copytext select {
    max-width: 12ch;
    font-size: 0.72rem;
  }

  .zenith-auth .account-form .input-group-text {
    padding: 0 5px;
    font-size: 0.72rem;
  }

  .zenith-auth .auth-field {
    margin-bottom: 0.5rem;
  }

  .zenith-auth .account-form .account-item {
    font-size: 0.75rem;
  }
}

/* ============================================================
   HEIGHT-AWARE BREAKPOINTS (compact layout)
   ============================================================ */

/* --- Moderate height reduction (<= 750px) --- */
@media (max-height: 750px) {
  :root {
    --zenith-brand-pad: clamp(1.25rem, 3vw, 2.5rem) clamp(1.5rem, 4vw, 3.5rem);
    --zenith-main-pad: clamp(0.75rem, 2vw, 1.5rem);
    --zenith-field-gap: clamp(0.5rem, 1vw, 0.85rem);
    --zenith-header-gap: clamp(0.75rem, 1.5vw, 1.5rem);
    --zenith-logo-gap: clamp(0.5rem, 1vw, 0.85rem);
    --zenith-input-height: clamp(40px, 5vw, 48px);
  }

  .zenith-auth-brand__desc {
    font-size: clamp(0.75rem, 0.85vw, 0.9rem);
    margin-bottom: clamp(0.5rem, 1.2vw, 1.25rem);
  }

  .zenith-auth-brand__title {
    font-size: clamp(1.2rem, 2.2vw, 2.4rem);
    margin-bottom: clamp(0.35rem, 0.8vw, 0.75rem);
  }

  .zenith-auth-brand__badge {
    font-size: clamp(0.6rem, 0.7vw, 0.72rem);
    padding: 0.25rem 0.6rem;
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
  }

  .zenith-auth-brand__logo {
    margin-bottom: clamp(0.5rem, 1vw, 1.25rem);
  }

  .zenith-auth-brand__logo img {
    height: clamp(28px, 3vw, 38px);
  }

  .zenith-auth-brand--mobile {
    padding: clamp(0.5rem, 1.5vw, 0.75rem) clamp(0.75rem, 3vw, 1.25rem) 0;
  }

  .zenith-auth .radio-group {
    margin-bottom: clamp(0.35rem, 0.8vw, 0.75rem);
  }

  .zenith-auth .radio-item label {
    min-height: clamp(32px, 4vw, 40px);
    padding: clamp(5px, 0.8vw, 8px) clamp(4px, 0.8vw, 8px);
    font-size: clamp(0.65rem, 0.78vw, 0.78rem);
  }

  .zenith-auth .account-form .forgot-item {
    margin-bottom: 0.25rem;
  }

  .zenith-auth .auth-card-title {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  }

  .zenith-auth .auth-card-subtitle {
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
  }

  .zenith-auth .account-wrapper p {
    font-size: clamp(0.75rem, 0.9vw, 0.85rem);
    margin-bottom: clamp(0.5rem, 1vw, 1rem);
  }

  .zenith-auth .auth-card-header {
    margin-bottom: clamp(0.5rem, 1.2vw, 1rem);
  }

  .zenith-auth .account-wrapper .title {
    font-size: clamp(1.1rem, 1.6vw, 1.4rem);
  }

  .zenith-auth .otp {
    width: clamp(34px, 8vw, 44px);
    height: clamp(36px, 6vw, 48px);
    font-size: clamp(0.9rem, 1.6vw, 1.15rem);
  }

  .zenith-auth .account-wrapper.kyc .multi-step-indicator {
    margin-bottom: 6px;
  }

  .zenith-auth .account-wrapper.kyc .step-progress {
    margin-bottom: clamp(8px, 1.5vw, 14px);
  }

  .zenith-auth .account-wrapper.kyc .multi-step-indicator .step-item {
    max-width: 100px;
  }

  .zenith-auth .account-wrapper.kyc .form-step-fields .form-group {
    margin-bottom: clamp(8px, 1.2vw, 14px);
  }
}

/* --- Short viewport (<= 650px) tighter packing --- */
@media (max-height: 650px) {
  :root {
    --zenith-brand-pad: clamp(0.75rem, 2vw, 1.5rem) clamp(1rem, 3vw, 2.5rem);
    --zenith-main-pad: clamp(0.5rem, 1.5vw, 1rem);
    --zenith-field-gap: clamp(0.4rem, 0.8vw, 0.65rem);
    --zenith-header-gap: clamp(0.5rem, 1vw, 1rem);
    --zenith-logo-gap: clamp(0.35rem, 0.8vw, 0.65rem);
    --zenith-input-height: clamp(38px, 4.5vw, 44px);
    --zenith-padding-card: clamp(0.75rem, 2.5vw, 1.25rem);
    --zenith-padding-card-x: clamp(0.625rem, 2.5vw, 1rem);
  }

  .zenith-auth-brand__desc {
    font-size: clamp(0.7rem, 0.8vw, 0.82rem);
    line-height: 1.4;
    margin-bottom: clamp(0.35rem, 0.8vw, 0.75rem);
  }

  .zenith-auth-brand__title {
    font-size: clamp(1rem, 1.8vw, 1.8rem);
    margin-bottom: clamp(0.25rem, 0.6vw, 0.5rem);
  }

  .zenith-auth-brand__badge {
    font-size: clamp(0.55rem, 0.65vw, 0.68rem);
    padding: 0.2rem 0.5rem;
    margin-bottom: clamp(0.35rem, 0.8vw, 0.75rem);
  }

  .zenith-auth-brand__logo img {
    height: clamp(24px, 2.5vw, 32px);
  }

  .zenith-auth-brand__pills {
    gap: clamp(0.2rem, 0.4vw, 0.4rem);
  }

  .zenith-auth-brand__pill {
    font-size: clamp(0.55rem, 0.6vw, 0.68rem);
    padding: clamp(0.15rem, 0.3vw, 0.3rem) clamp(0.4rem, 0.6vw, 0.7rem);
  }

  .zenith-auth-brand--mobile {
    padding: clamp(0.35rem, 1vw, 0.5rem) clamp(0.5rem, 2vw, 1rem) 0;
  }

  .zenith-auth-brand--mobile .zenith-auth-brand__logo img {
    height: clamp(22px, 3.5vw, 30px);
  }

  .zenith-auth .auth-card-title {
    font-size: clamp(1rem, 1.4vw, 1.25rem);
  }

  .zenith-auth .auth-card-subtitle {
    font-size: clamp(0.7rem, 0.8vw, 0.8rem);
  }

  .zenith-auth .account-wrapper {
    padding: clamp(0.625rem, 2vw, 1rem) clamp(0.5rem, 2vw, 0.875rem);
  }

  .zenith-auth .account-wrapper.kyc {
    padding: clamp(0.5rem, 1.5vw, 0.875rem) clamp(0.5rem, 1.5vw, 0.75rem);
  }

  .zenith-auth .radio-item label {
    min-height: clamp(30px, 3.5vw, 36px);
    padding: clamp(4px, 0.6vw, 6px) clamp(3px, 0.6vw, 6px);
    font-size: clamp(0.6rem, 0.7vw, 0.72rem);
  }

  .zenith-auth .radio-group {
    padding: clamp(3px, 0.4vw, 4px);
    gap: clamp(4px, 0.6vw, 6px);
    margin-bottom: clamp(0.25rem, 0.6vw, 0.5rem);
  }

  .zenith-auth .account-form label,
  .zenith-auth .auth-field label {
    font-size: clamp(0.72rem, 0.8vw, 0.8rem);
    margin-bottom: 0.25rem;
  }

  .zenith-auth .auth-field {
    margin-bottom: clamp(0.35rem, 0.6vw, 0.5rem);
  }

  .zenith-auth .account-form .forgot-item {
    margin-bottom: 0.15rem;
  }

  .zenith-auth .account-form .account-item {
    font-size: clamp(0.72rem, 0.8vw, 0.8rem);
    padding: 0.15rem 0;
  }

  .zenith-auth .account-form .form-group {
    margin-bottom: clamp(0.4rem, 0.8vw, 0.65rem);
  }

  .zenith-auth .account-wrapper p {
    font-size: clamp(0.7rem, 0.8vw, 0.8rem);
    margin-bottom: clamp(0.35rem, 0.8vw, 0.75rem);
  }

  .zenith-auth .otp {
    width: clamp(30px, 7vw, 38px);
    height: clamp(32px, 5vw, 42px);
    font-size: clamp(0.8rem, 1.4vw, 1rem);
  }

  .zenith-auth .account-wrapper.kyc .multi-step-indicator {
    margin-bottom: 4px;
  }

  .zenith-auth .account-wrapper.kyc .step-progress {
    margin-bottom: clamp(6px, 1vw, 10px);
  }

  .zenith-auth .account-wrapper.kyc .multi-step-indicator .step-item {
    max-width: 80px;
  }

  .zenith-auth .account-wrapper.kyc .step-panel-header {
    margin-bottom: clamp(6px, 1vw, 10px);
    padding-bottom: clamp(6px, 0.8vw, 8px);
  }

  .zenith-auth .account-wrapper.kyc .step-panel-header h6 {
    font-size: clamp(12px, 1.2vw, 14px);
  }

  .zenith-auth .account-wrapper.kyc .step-panel-header p {
    font-size: clamp(10px, 1vw, 12px);
  }

  .zenith-auth .account-wrapper.kyc .form-step-fields .form-group {
    margin-bottom: clamp(6px, 1vw, 10px);
  }

  .zenith-auth .account-wrapper.kyc .step-navigation {
    gap: clamp(4px, 0.8vw, 8px);
  }

  .zenith-auth .account-wrapper.kyc .step-navigation .btn-step-prev {
    min-width: clamp(70px, 20vw, 100px);
  }
}

/* --- Ultra-short landscape (<= 500px) maximal compaction --- */
@media (max-height: 500px) and (min-width: 500px) {
  :root {
    --zenith-input-height: 36px;
    --zenith-field-gap: 0.3rem;
    --zenith-header-gap: 0.4rem;
    --zenith-padding-card: 0.5rem;
    --zenith-padding-card-x: 0.5rem;
  }

  .zenith-auth {
    flex-direction: row;
  }

  .zenith-auth-brand--desktop {
    display: flex;
  }

  .zenith-auth-brand--mobile {
    display: none;
  }

  .zenith-auth-brand {
    padding: 0.75rem 1.5rem;
    justify-content: center;
  }

  .zenith-auth-brand__logo {
    margin-bottom: 0.35rem;
  }

  .zenith-auth-brand__logo img {
    height: 24px;
  }

  .zenith-auth-brand__badge {
    display: none;
  }

  .zenith-auth-brand__title {
    font-size: 1rem;
    margin-bottom: 0.25rem;
  }

  .zenith-auth-brand__desc {
    display: none;
  }

  .zenith-auth-brand__pills {
    display: none;
  }

  .zenith-auth-main {
    padding: 0.5rem;
  }

  .zenith-auth .account-wrapper {
    padding: 0.5rem 0.625rem;
    border-radius: 10px;
  }

  .zenith-auth .auth-card-header {
    margin-bottom: 0.35rem;
  }

  .zenith-auth .auth-card-title {
    font-size: 0.95rem;
    margin-bottom: 0.15rem;
  }

  .zenith-auth .auth-card-subtitle {
    display: none;
  }

  .zenith-auth .radio-item label {
    min-height: 30px;
    padding: 4px 3px;
    font-size: 0.6rem;
  }

  .zenith-auth .radio-group {
    margin-bottom: 0.25rem;
    padding: 3px;
    gap: 4px;
  }

  .zenith-auth .auth-field {
    margin-bottom: 0.3rem;
  }

  .zenith-auth .account-form label {
    font-size: 0.7rem;
    margin-bottom: 0.15rem;
  }

  .zenith-auth .account-form input.form--control,
  .zenith-auth .account-form input.form-control {
    min-height: 34px;
    font-size: 0.8rem;
  }

  .zenith-auth .btn--base {
    min-height: 36px;
    font-size: 0.8rem !important;
    padding: 6px 12px;
  }

  .zenith-auth .otp {
    width: 30px;
    height: 32px;
    font-size: 0.75rem;
  }

  .zenith-auth .account-form .forgot-item {
    margin-bottom: 0.1rem;
  }

  .zenith-auth .account-form .forgot-item a {
    font-size: 0.72rem;
  }

  .zenith-auth .account-form .account-item {
    font-size: 0.72rem;
    padding: 0.1rem 0;
  }
}

/* --- Large desktop (1440px+) --- */
@media (min-width: 1440px) {
  :root {
    --zenith-input-height: clamp(48px, 3.5vw, 54px);
  }

  .zenith-auth .account {
    max-width: 520px;
  }

  .zenith-auth .account.kyc {
    max-width: 960px;
  }

  .zenith-auth .account-wrapper {
    padding: 2.75rem 2.75rem;
  }

  .zenith-auth-brand {
    padding: 4rem 6rem;
  }

  .zenith-auth-main {
    padding: 3rem;
  }
}

/* --- Tall screens > 1440px height: allow more breathing room --- */
@media (min-height: 900px) {
  :root {
    --zenith-brand-pad: clamp(3rem, 5vw, 5rem) clamp(3rem, 6vw, 6rem);
    --zenith-main-pad: clamp(2rem, 3vw, 3.5rem);
    --zenith-field-gap: clamp(1rem, 1.5vw, 1.35rem);
    --zenith-header-gap: clamp(1.5rem, 3vw, 2.5rem);
    --zenith-logo-gap: clamp(1rem, 2vw, 1.75rem);
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .zenith-auth *,
  .zenith-auth *::before,
  .zenith-auth *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* --- Selection --- */
.zenith-auth ::selection {
  background: var(--zenith-accent);
  color: #fff;
}
