/* ==========================================================================
   RVR PROJECTS - ENTERPRISE ERP DESIGN SYSTEM
   Strict Enterprise UI: Clean Solid Aesthetics, Zero Glass/Gloss, 100% Lucide SVG Vectors
   ========================================================================== */

/* --- ROOT DESIGN TOKENS --- */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Outfit', var(--font-sans);
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  
  /* Solid Enterprise Palette */
  --color-brand-orange: #fa6e28;
  --color-brand-orange-hover: #e05814;
  --color-brand-blue: #0056b3;
  --color-accent-blue: #2563eb;
  --color-accent-blue-hover: #1d4ed8;
  --color-accent-blue-light: #eff6ff;
  
  --color-page-bg: #f8fafc;
  --color-card-bg: #ffffff;
  --color-input-bg: #f8fafc;
  --color-input-border: #cbd5e1;
  --color-input-focus-border: #2563eb;
  
  --color-text-dark: #0f172a;
  --color-text-body: #334155;
  --color-text-muted: #64748b;
  --color-text-light: #94a3b8;
  --color-error: #ef4444;
  --color-success: #16a34a;

  /* Elevations */
  --shadow-main-card: 0 25px 50px -12px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(226, 232, 240, 0.9), 0 2px 4px rgba(15, 23, 42, 0.04);
  --shadow-dialog: 0 25px 50px -12px rgba(15, 23, 42, 0.25);

  /* Transitions */
  --transition-fast: 150ms ease-in-out;
  --transition-normal: 250ms cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- RESET & BASE SETUP --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  width: 100%;
  height: 100%;
  min-height: 100vh;
  font-family: var(--font-sans);
  background-color: #f8fafc;
  background: radial-gradient(ellipse 90% 70% at 50% 0%, #f1f5f9 0%, #f8fafc 50%, #edf2f7 100%);
  color: var(--color-text-dark);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

button, input, select, textarea {
  font-family: inherit;
}

/* --- MAIN PAGE CONTAINER (Settled Perfectly to Browser Viewport) --- */
.page-container {
  min-height: 100vh;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: clamp(14px, 2vh, 24px) clamp(16px, 2vw, 32px);
  box-sizing: border-box;
  background: transparent;
  overflow-y: auto;
}

/* --- MAIN SPLIT AUTHENTICATION CARD (60% Left / 40% Right Large Container) --- */
.split-auth-card {
  width: min(92vw, 1360px);
  max-width: 1360px;
  height: min(84vh, 660px);
  min-height: 540px;
  background-color: var(--color-card-bg);
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(226, 232, 240, 0.9), 0 10px 30px rgba(15, 23, 42, 0.08);
  display: grid;
  grid-template-columns: 60% 40%;
  overflow: hidden;
  border: 1px solid #e2e8f0;
  margin: 0 auto;
  transition: box-shadow var(--transition-normal);
}

/* ==========================================================================
   LEFT PANEL: HERO SHOWCASE (login.webp) - 60% EXPANDED COLUMN
   ========================================================================== */
.banner-showcase-panel {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 2.5vw, 32px) clamp(24px, 2.5vw, 32px) clamp(18px, 2.2vh, 24px);
  background-color: #071126;
  user-select: none;
}

.login-hero-bg-wrap {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.login-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center right;
  display: block;
}

.login-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    135deg,
    rgba(6, 18, 48, 0.92) 0%,
    rgba(8, 24, 60, 0.70) 50%,
    rgba(4, 12, 34, 0.95) 100%
  );
}

/* Hero Top Bar: Logo in White Box on Left, Slogan on Right */
.hero-top-bar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  width: 100%;
}

.hero-logo-white-card {
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.hero-logo-img {
  height: 40px;
  width: auto;
  max-width: 165px;
  object-fit: contain;
  display: block;
}

/* Cursive Slogan Floating in Top Right (2 Lines) */
.hero-cursive-badge {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: right;
  font-family: 'Caveat', cursive;
  color: #f8fafc;
  line-height: 1.1;
  transform: rotate(-2deg);
  pointer-events: none;
}

.hero-cursive-badge .cursive-line1 {
  font-size: 32px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
}

.hero-cursive-badge .cursive-line2 {
  font-size: 30px;
  font-weight: 700;
  color: #f1f5f9;
  white-space: nowrap;
}

.cursive-swoosh {
  width: 130px;
  height: 20px;
  margin-top: 3px;
}

.login-hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
}

.hero-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1;
}

.hero-brand-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: 0.05em;
}

.hero-brand-sub {
  font-size: 9px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.18em;
  margin-top: 1px;
}

.hero-top-menu {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #7dd3fc;
}

.hero-top-menu .pipe {
  color: rgba(255, 255, 255, 0.3);
  font-weight: 400;
}

.hero-middle-section {
  margin-top: auto;
  margin-bottom: clamp(18px, 3vh, 32px);
  max-width: 720px;
}

.hero-main-heading {
  font-family: 'Outfit', 'Plus Jakarta Sans', var(--font-display);
  font-size: clamp(26px, 2.4vw, 36px);
  font-weight: 900;
  line-height: 1.12;
  color: #ffffff;
  letter-spacing: -0.4px;
  text-transform: uppercase;
  margin-bottom: 0;
}

.highlight-cyan {
  color: #00c2ff;
  text-shadow: 0 0 24px rgba(0, 194, 255, 0.4);
}

.headline-underline-orange {
  width: 50px;
  height: 4px;
  background-color: var(--color-brand-orange);
  border-radius: 3px;
  margin: 12px 0 14px 0;
}

.hero-desc-text {
  font-size: clamp(13px, 0.95vw, 14px);
  line-height: 1.5;
  color: #cbd5e1;
  max-width: 540px;
  font-weight: 400;
}

.hero-bottom-section {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

/* Left: Skyline Illustration & Nation In Progress */
.nation-in-progress-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.skyline-wireframe-svg {
  width: 155px;
  height: 26px;
}

.nation-text-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nation-text-bold {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #f8fafc;
}

.nation-orange-dash-end {
  display: inline-block;
  width: 22px;
  height: 3.5px;
  background-color: var(--color-brand-orange);
  border-radius: 2px;
}

/* Right: 3-Metric Live Telemetry Pill Bar */
.hero-metrics-pill-bar {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  background: rgba(10, 24, 52, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 8px 16px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.hero-metric-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.metric-icon {
  width: 18px;
  height: 18px;
  color: #94a3b8;
  flex-shrink: 0;
}

.metric-icon.highlight-cyan-icon {
  color: #00c2ff !important;
}

.metric-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.metric-num {
  font-size: 13.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.metric-lbl {
  font-size: 9.5px;
  font-weight: 600;
  color: #94a3b8;
  margin-top: 1px;
  white-space: nowrap;
}

.metric-v-sep {
  width: 1px;
  height: 24px;
  background: rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}


/* ==========================================================================
   RIGHT PANEL: AUTHENTICATION FORM (40% RIGHT COLUMN)
   ========================================================================== */
.auth-form-panel {
  background-color: var(--color-card-bg);
  padding: clamp(24px, 2.5vw, 32px) clamp(26px, 3vw, 42px) clamp(18px, 2.2vh, 24px);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  overflow-y: auto;
}

/* Header Top Row (Aligned Right for Contact Admin) */
.auth-header-top-row {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-shrink: 0;
  margin-bottom: 0;
}

/* Standalone recovery/verification pages reuse this row with a left item
   (back link / two-factor eyebrow) plus a right item - flex-end collapses
   them together, so those two-item variants need space-between instead. */
.auth-header-top-row:has(.link-back-header),
.auth-header-top-row:has(.two-factor-eyebrow) {
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Centered Main Form Wrapper: Groups Sign In Title + Form in the Middle */
.auth-form-center-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  margin: auto 0;
  width: 100%;
}

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

.auth-brand-identity-simple {
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-portal-title {
  font-size: 10px;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.brand-identity-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.auth-brand-logo-img {
  height: 36px;
  width: auto;
  max-width: 145px;
  object-fit: contain;
  display: block;
}

.brand-erp-badge {
  font-size: 9px;
  font-weight: 800;
  color: #0284c7;
  letter-spacing: 0.12em;
  background: rgba(2, 132, 199, 0.08);
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid rgba(2, 132, 199, 0.2);
}

.brand-v-divider {
  width: 1px;
  height: 32px;
  background-color: #cbd5e1;
}

.brand-tagline-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  font-size: 8.5px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #64748b;
  line-height: 1.25;
}

.tagline-highlight {
  color: #0f172a;
}

.tagline-orange-bar {
  width: 14px;
  height: 2px;
  background-color: var(--color-brand-orange);
  border-radius: 1px;
  margin-top: 2px;
}

.auth-header-admin {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
}

.admin-label {
  color: #64748b;
}

.admin-link-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.admin-link-btn:hover {
  color: #1d4ed8;
}

/* Form Heading */
.auth-title-group {
  margin-bottom: clamp(14px, 2vh, 20px);
}

.auth-heading {
  font-family: var(--font-display);
  font-size: clamp(24px, 2.2vw, 30px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
  margin-bottom: 4px;
}

.auth-subheading {
  font-size: 13.5px;
  color: #64748b;
  line-height: 1.4;
}

/* Form Body */
.auth-form-body {
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 1.8vh, 16px);
}

.form-field-group {
  display: flex;
  flex-direction: column;
}

.form-field-label {
  font-size: 13.5px;
  font-weight: 700;
  color: #1e293b;
  margin-bottom: 6px;
  line-height: 1.2;
}

/* Structured Horizontal Header Row for Password (Fix for Image 2) */
.form-field-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-bottom: 5px;
}

.form-field-header-row .form-field-label {
  margin-bottom: 0;
}

.link-forgot-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: #2563eb;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
  line-height: 1.2;
  transition: color var(--transition-fast);
}

.link-forgot-btn:hover {
  color: #1d4ed8;
}

/* Field Wrapper & Input */
.form-field-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background-color: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  height: clamp(46px, 5vh, 50px);
  transition: all var(--transition-fast);
}

.form-field-wrapper:hover {
  border-color: #cbd5e1;
}

.form-field-wrapper:focus-within {
  background-color: #ffffff;
  border-color: var(--color-input-focus-border);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.form-field-wrapper.has-error {
  background-color: #ffffff;
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.12);
}

/* Lucide Input Leading Icon */
.field-leading-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 14px;
  padding-right: 2px;
  color: #64748b;
  pointer-events: none;
  flex-shrink: 0;
  transition: color var(--transition-fast);
}

.form-field-wrapper:focus-within .field-leading-icon {
  color: #2563eb;
}

.lucide-input-icon {
  width: 18px;
  height: 18px;
}

.form-field-input {
  flex: 1;
  height: 100%;
  background: transparent;
  border: none;
  outline: none;
  padding: 0 10px;
  font-size: 14.5px;
  font-weight: 500;
  color: #0f172a;
}

.form-field-input::placeholder {
  color: #94a3b8;
  font-size: 14px;
  font-weight: 400;
}

/* Input Helper Action Buttons */
.field-clear-btn {
  background: none;
  border: none;
  padding: 0 12px;
  color: #94a3b8;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.field-clear-btn:hover {
  color: #1e293b;
}

.lucide-clear-icon {
  width: 16px;
  height: 16px;
}

.pwd-toggle-action {
  background: none;
  border: none;
  padding: 0 14px;
  color: #64748b;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.pwd-toggle-action:hover {
  color: #0f172a;
}

.pwd-toggle-action .lucide-icon {
  width: 18px;
  height: 18px;
}

.field-error-text {
  font-size: 12px;
  font-weight: 500;
  color: var(--color-error);
  min-height: 14px;
  margin-top: 3px;
}

/* Keep Me Signed In Checkbox */
.remember-me-row {
  display: flex;
  align-items: center;
  margin: 2px 0 3px;
}

.checkbox-container {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}

.checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.custom-checkbox {
  width: 16px;
  height: 16px;
  border: 1.5px solid #cbd5e1;
  border-radius: 4px;
  background-color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.checkbox-container:hover .custom-checkbox {
  border-color: #94a3b8;
}

.checkbox-container input:checked ~ .custom-checkbox {
  background-color: var(--color-brand-orange);
  border-color: var(--color-brand-orange);
}

.checkbox-container input:checked ~ .custom-checkbox::after {
  content: '';
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin-bottom: 2px;
}

.checkbox-text {
  font-size: 13px;
  font-weight: 500;
  color: #475569;
}

/* Primary Orange Action Button */
.btn-primary-orange {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #fa6e28 0%, #f15a18 100%);
  color: #ffffff;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 16px rgba(241, 90, 24, 0.32);
  margin-top: 6px;
}

.btn-primary-orange:hover {
  background: linear-gradient(135deg, #fb7938 0%, #e05112 100%);
  box-shadow: 0 6px 18px rgba(241, 90, 24, 0.42);
  transform: translateY(-1px);
}

.btn-primary-orange:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(241, 90, 24, 0.25);
}

.lucide-btn-icon {
  width: 18px;
  height: 18px;
  transition: transform var(--transition-fast);
}

.btn-primary-orange:hover .lucide-btn-icon {
  transform: translateX(3px);
}

.btn-spinner-disc {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

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

.btn-primary-orange.is-loading {
  opacity: 0.95;
  cursor: wait;
}

.btn-primary-orange.is-loading .lucide-btn-icon {
  display: none !important;
}

.btn-primary-orange.is-loading .btn-text-holder {
  display: inline-block !important;
  color: #ffffff !important;
}

.btn-primary-orange.is-loading .btn-spinner-disc {
  display: inline-block !important;
}

/* OR CONTINUE WITH Separator */
.or-separator-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 4px 0;
}

.or-line {
  flex: 1;
  height: 1px;
  background-color: #e2e8f0;
}

.or-text {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.06em;
}

/* Secondary Action Row: QR Login & Web OTP */
.alt-login-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.btn-outline-blue {
  height: 40px;
  background-color: #ffffff;
  color: var(--color-accent-blue);
  border: 1.5px solid #bfdbfe;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-outline-blue .lucide-icon {
  width: 15px;
  height: 15px;
}

.btn-outline-blue:hover {
  background-color: var(--color-accent-blue-light);
  border-color: var(--color-accent-blue);
  color: var(--color-accent-blue-hover);
}

/* Card Bottom Trust & Support Row */
.auth-card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 0;
  padding-top: 14px;
  border-top: 1px solid #f1f5f9;
  font-size: 11.5px;
  flex-shrink: 0;
}

.trust-pill-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #475569;
  font-weight: 600;
}

.trust-pill-badge svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.help-support-text {
  color: #64748b;
  font-weight: 500;
}

.link-support-btn {
  background: none;
  border: none;
  color: #2563eb;
  font-weight: 600;
  font-size: 11.5px;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.link-support-btn:hover {
  color: #1d4ed8;
}

/* PAGE GLOBAL FOOTER */
.page-global-footer {
  width: min(95vw, 1440px);
  max-width: 1440px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  padding: 0 4px;
  font-size: 11px;
  color: #64748b;
  font-weight: 500;
  flex-shrink: 0;
}

.footer-tagline-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-dash-line {
  width: 24px;
  height: 1px;
  background-color: #cbd5e1;
}

.footer-tagline-text {
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #475569;
}


/* ==========================================================================
   MODALS & DIALOG OVERLAYS
   ========================================================================== */
/* Universal SVG constraints */
svg {
  flex-shrink: 0;
}

.lucide-icon {
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex-shrink: 0 !important;
}

.lucide-icon-sm {
  width: 15px !important;
  height: 15px !important;
  min-width: 15px !important;
  min-height: 15px !important;
  flex-shrink: 0 !important;
}

.lucide-icon-lg {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  flex-shrink: 0 !important;
}

.text-blue {
  color: var(--color-accent-blue);
}

.dialog-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 16px;
  animation: fadeIn 0.2s ease;
}

.dialog-modal-card {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: 90vh;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: var(--shadow-dialog);
  padding: 24px 22px;
  text-align: center;
  animation: modalScale 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dialog-ticket-card {
  max-width: 560px;
  text-align: left;
  padding: 20px 24px;
}

.dialog-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.dialog-close-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.dialog-close-btn svg {
  width: 16px;
  height: 16px;
}

.dialog-icon-shield {
  width: 40px;
  height: 40px;
  background: #fff3ec;
  color: var(--color-brand-orange);
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.dialog-icon-shield svg {
  width: 20px;
  height: 20px;
}

.dialog-title {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 4px;
}

.dialog-description {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.4;
  margin-bottom: 14px;
}

.dialog-btn {
  margin-top: 14px;
}

/* Admin Contact Details */
.admin-contacts-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  color: #334155;
}

.admin-item strong {
  color: #0f172a;
}

/* QR Code Display */
.qr-code-graphic-box {
  display: flex;
  justify-content: center;
  padding: 14px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 12px;
  margin-bottom: 12px;
}

.qr-svg-matrix {
  width: 130px;
  height: 130px;
}

/* ==========================================================================
   TWILIO OTP VERIFICATION & RECOVERY MODAL (MATCHES REFERENCE DESIGN)
   ========================================================================== */
.dialog-otp-card {
  max-width: 680px;
  width: 94%;
  padding: 24px 30px 20px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.9);
}

.otp-modal-top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.otp-modal-logo-img {
  height: 34px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}

.otp-step-view {
  display: flex;
  flex-direction: column;
  animation: fadeIn 0.2s ease;
}

/* Hero Split Row: Left text, Right otp.svg */
.otp-hero-split-row {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 14px;
}

.otp-security-pill-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #475569;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.otp-hero-heading {
  font-family: var(--font-display);
  font-size: clamp(20px, 2vw, 24px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.otp-hero-desc {
  font-size: 12.5px;
  color: #64748b;
  line-height: 1.45;
}

.otp-hero-visual-col {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.otp-illustration-container {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.otp-hero-svg-img {
  height: 128px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(15, 23, 42, 0.08));
}

.otp-security-checklist {
  position: absolute;
  right: -4px;
  bottom: 6px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.otp-check-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10.5px;
  font-weight: 700;
  color: #1e293b;
  background: rgba(255, 255, 255, 0.95);
  padding: 2px 7px;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid #e2e8f0;
}

.otp-check-icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

/* Form Styling */
.otp-main-form {
  display: flex;
  flex-direction: column;
}

.otp-field-helper-note {
  font-size: 11px;
  color: #64748b;
  margin-top: 4px;
  display: block;
}

/* Delivery Channel Selection */
.otp-delivery-section {
  margin: 12px 0 10px;
}

.otp-delivery-header {
  display: flex;
  flex-direction: column;
  margin-bottom: 6px;
}

.delivery-label-main {
  font-size: 12.5px;
  font-weight: 700;
  color: #0f172a;
}

.delivery-label-sub {
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

.otp-channel-selector-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.otp-channel-card-option {
  cursor: pointer;
  position: relative;
}

.otp-channel-card-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.otp-channel-card-content {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 10px;
  transition: all var(--transition-fast);
  text-align: left;
}

.otp-channel-card-option input:checked + .otp-channel-card-content {
  border-color: #fa6e28;
  background: #fffcf9;
  box-shadow: 0 2px 10px rgba(250, 110, 40, 0.1);
}

.channel-icon-badge {
  width: 32px;
  height: 32px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.channel-icon-badge.sms-badge {
  background: #fff3eb;
}

.channel-icon-badge.email-badge {
  background: #f1f5f9;
}

.channel-icon-badge svg {
  width: 16px;
  height: 16px;
}

.channel-details-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  flex: 1;
  min-width: 0;
}

.channel-name-title {
  font-size: 12px;
  font-weight: 700;
  color: #0f172a;
}

.channel-desc-text {
  font-size: 10px;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.channel-masked-id {
  font-size: 11px;
  font-weight: 600;
  color: #334155;
  margin-top: 2px;
}

.channel-radio-indicator {
  width: 15px;
  height: 15px;
  border: 1.5px solid #cbd5e1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.otp-channel-card-option input:checked + .otp-channel-card-content .channel-radio-indicator {
  border-color: #fa6e28;
}

.otp-channel-card-option input:checked + .otp-channel-card-content .radio-dot-custom {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: #fa6e28;
  display: block;
}

/* Twilio Secure Gateway Info Banner */
.twilio-gateway-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f0f7ff;
  border: 1px solid #dbeafe;
  border-radius: 9px;
  padding: 8px 12px;
  margin: 10px 0 12px;
  gap: 8px;
}

.gateway-info-left {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 500;
  color: #1e40af;
}

.gateway-shield-svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.gateway-brand-right {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: #0f172a;
  flex-shrink: 0;
}

.twilio-logo-icon {
  width: 14px;
  height: 14px;
}

.twilio-brand-label strong {
  font-weight: 800;
  color: #f22f46;
}

.otp-action-submit-btn {
  width: 100%;
  height: 46px;
  font-size: 14.5px;
  font-weight: 700;
  border-radius: 9px;
  gap: 8px;
  margin-top: 2px;
}

.btn-send-plane-svg {
  width: 16px;
  height: 16px;
}

/* Modal Footer: Trusted by industry leaders */
.otp-trust-footer-bar {
  margin-top: 14px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  text-align: center;
}

.otp-trust-header-caption {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #94a3b8;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.otp-trust-badges-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.otp-trust-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 600;
  color: #475569;
}

.otp-trust-item svg {
  width: 13px;
  height: 13px;
  color: #64748b;
}

.otp-demo-callout svg {
  color: #16a34a;
  flex-shrink: 0;
}

.highlight-code {
  font-family: monospace;
  font-size: 13.5px;
  background: #dcfce7;
  padding: 1px 5px;
  border-radius: 4px;
  color: #14532d;
  letter-spacing: 0.05em;
}

/* 6-Digit OTP Segmented Input Boxes */
.otp-boxes-wrapper {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 10px 0 6px;
}

.otp-digit-input {
  width: 44px;
  height: 50px;
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  color: #0f172a;
  background: #f8fafc;
  border: 1.5px solid #cbd5e1;
  border-radius: 9px;
  outline: none;
  font-family: var(--font-display);
  transition: all var(--transition-fast);
}

.otp-digit-input:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
  transform: translateY(-1px);
}

.otp-countdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 8px 0 4px;
  font-size: 11.5px;
}

.countdown-text {
  color: #64748b;
  font-weight: 500;
}

.countdown-text strong {
  color: #ea580c;
  font-weight: 700;
}

.link-btn-resend {
  background: none;
  border: none;
  color: #2563eb;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: color var(--transition-fast);
}

.link-btn-resend.disabled {
  color: #94a3b8;
  cursor: not-allowed;
  text-decoration: none;
}

.btn-back-link {
  background: none;
  border: none;
  color: #64748b;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 10px;
  padding: 4px;
  transition: color var(--transition-fast);
}

.btn-back-link:hover {
  color: #0f172a;
}

/* IT Support Ticket Modal Styles */
.ticket-modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.ticket-modal-header .dialog-icon-shield {
  width: 38px;
  height: 38px;
  margin-bottom: 0;
  flex-shrink: 0;
}

.ticket-modal-header .dialog-icon-shield svg {
  width: 18px;
  height: 18px;
}

.ticket-preset-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 6px;
  margin-bottom: 10px;
}

.preset-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  white-space: nowrap;
}

.preset-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}

.preset-chip-btn {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  padding: 2px 7px;
  font-size: 10.5px;
  font-weight: 600;
  color: #334155;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.preset-chip-btn:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}

.ticket-dialog-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ticket-grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.ticket-dialog-form .form-field-label {
  font-size: 11.5px;
  font-weight: 700;
  margin-bottom: 3px;
}

.ticket-dialog-form .form-field-wrapper {
  height: 38px;
}

.ticket-dialog-form .form-field-input {
  font-size: 12px;
}

.form-select-custom {
  cursor: pointer;
  padding-right: 24px;
}

.priority-pill-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 2px;
  height: 38px;
}

.priority-radio-opt {
  position: relative;
  cursor: pointer;
}

.priority-radio-opt input {
  position: absolute;
  opacity: 0;
}

.prio-tag {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  border-radius: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #64748b;
  transition: all var(--transition-fast);
}

.priority-radio-opt input:checked + .prio-tag.low {
  background: #e0f2fe;
  color: #0369a1;
}

.priority-radio-opt input:checked + .prio-tag.med {
  background: #fef3c7;
  color: #b45309;
}

.priority-radio-opt input:checked + .prio-tag.high {
  background: #fee2e2;
  color: #b91c1c;
}

.priority-radio-opt input:checked + .prio-tag.crit {
  background: #ef4444;
  color: #ffffff;
}

.ticket-textarea {
  width: 100%;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 12px;
  font-family: inherit;
  color: #0f172a;
  outline: none;
  resize: none;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  transition: all var(--transition-fast);
}

.ticket-textarea:focus {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

/* Ticket Attachment Box Failsafe Sizing */
.ticket-attachment-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: #f8fafc;
  border: 1.5px dashed #cbd5e1;
  border-radius: 8px;
  cursor: pointer;
  height: 38px;
  max-height: 38px;
  overflow: hidden;
  transition: all var(--transition-fast);
}

.ticket-attachment-box:hover {
  background: #eff6ff;
  border-color: #2563eb;
  color: #2563eb;
}

.ticket-attachment-box svg,
.ticket-attachment-box .lucide-icon-sm {
  width: 16px !important;
  height: 16px !important;
  min-width: 16px !important;
  min-height: 16px !important;
  color: #2563eb !important;
  flex-shrink: 0 !important;
}

.ticket-attachment-box .attach-text {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ticket-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.btn-cancel-modal {
  height: 38px;
  padding: 0 14px;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
}

.btn-cancel-modal:hover {
  background: #e2e8f0;
  color: #0f172a;
}

.ticket-submit-btn {
  width: auto;
  min-width: 180px;
  height: 38px;
  font-size: 13px;
  margin-top: 0;
}

/* Ticket Success State */
.ticket-success-state {
  text-align: center;
  padding: 8px 0;
}

.ticket-success-badge {
  width: 44px;
  height: 44px;
  background: #ecfdf5;
  color: #10b981;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.ticket-success-badge svg {
  width: 22px;
  height: 22px;
}

.ticket-success-title {
  font-size: 18px;
  font-weight: 800;
  color: #0f172a;
  margin-bottom: 3px;
}

.ticket-success-desc {
  font-size: 12px;
  color: #64748b;
  margin-bottom: 12px;
}

.ticket-summary-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 14px;
  font-size: 11.5px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
}

.sum-label {
  color: #64748b;
  font-weight: 500;
}

.sum-val {
  font-weight: 700;
  color: #0f172a;
}

.sum-val.highlight {
  color: #2563eb;
  font-family: monospace;
  font-size: 13px;
}

.sum-badge-active {
  background: #dcfce7;
  color: #15803d;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 11px;
}

.ticket-success-actions {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.ticket-success-actions button {
  height: 40px;
  padding: 0 16px;
}

/* Toast System (Positioned on Top Right) */
.toast-hub {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 99999;
  max-width: calc(100vw - 40px);
  pointer-events: none;
}

.toast-pill {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #0f172a;
  color: #ffffff;
  padding: 11px 16px;
  border-radius: 10px;
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.3), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  font-size: 13px;
  font-weight: 600;
  animation: slideInRight 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid #3b82f6;
  max-width: 440px;
  line-height: 1.4;
}

.toast-pill.toast-success {
  border-left-color: #10b981;
}

.toast-pill.toast-error {
  border-left-color: #ef4444;
}

.toast-pill.toast-info {
  border-left-color: #06b6d4;
}

@media (max-width: 640px) {
  .toast-hub {
    top: 14px;
    right: 14px;
    max-width: calc(100vw - 28px);
  }
  .toast-pill {
    font-size: 12px;
    padding: 10px 14px;
  }
}

.toast-icon svg {
  width: 16px;
  height: 16px;
}

/* Keyframes */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes modalScale {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes slideInRight {
  from { opacity: 0; transform: translateX(40px); }
  to { opacity: 1; transform: translateX(0); }
}

.hidden {
  display: none !important;
}

/* ==========================================================================
   MOBILE & TABLET RESPONSIVE PERFECTION (IPAD PORTRAIT & LANDSCAPE EXCELLENCE)
   ========================================================================== */

/* 1. COMPACT SHORT-HEIGHT LANDSCAPE (Height <= 650px) */
@media (orientation: landscape) and (max-height: 650px) {
  .page-container {
    padding: 12px 16px;
    min-height: 100vh;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .split-auth-card {
    display: grid;
    grid-template-columns: 50% 50%;
    max-width: 1200px;
    width: 98%;
    border-radius: 20px;
    box-shadow: 0 15px 45px -10px rgba(15, 23, 42, 0.1), 0 0 0 1px #e2e8f0;
    overflow: hidden;
    max-height: 96vh;
    min-height: 480px;
    margin: auto;
  }

  .banner-showcase-panel {
    padding: 20px 24px 18px 24px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .hero-top-bar-row {
    margin-bottom: 6px;
  }

  .hero-logo-img {
    height: 32px;
    max-width: 130px;
  }

  .hero-cursive-badge .cursive-line1 {
    font-size: 20px;
  }

  .hero-cursive-badge .cursive-line2 {
    font-size: 18px;
  }

  .hero-middle-section {
    margin-top: auto;
    margin-bottom: 12px;
  }

  .hero-main-heading {
    font-size: 26px;
    line-height: 1.15;
    margin-bottom: 6px;
  }

  .headline-underline-orange {
    width: 36px;
    height: 3px;
    margin-bottom: 8px;
  }

  .hero-desc-text {
    font-size: 12px;
    line-height: 1.45;
  }

  .hero-bottom-section {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
  }

  .skyline-wireframe-svg {
    width: 140px;
    height: 20px;
  }

  .nation-text-row {
    font-size: 8.5px;
  }

  .hero-metrics-pill-bar {
    padding: 6px 12px;
    gap: 8px;
  }

  .metric-num {
    font-size: 12px;
  }

  .metric-lbl {
    font-size: 8.5px;
  }

  .auth-form-panel {
    padding: 22px 28px 18px 28px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .auth-header-top-row {
    margin-bottom: 8px;
  }

  .auth-title-group {
    margin-bottom: 8px;
  }

  .auth-title-group .auth-heading {
    font-size: 20px;
  }

  .auth-title-group .auth-subheading {
    font-size: 12px;
  }

  .role-tabs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    margin-bottom: 10px;
  }

  .role-tab-btn {
    padding: 6px 8px;
    min-height: 38px;
    font-size: 11.5px;
    border-radius: 8px;
    gap: 6px;
  }

  .form-field-label {
    font-size: 12px;
    margin-bottom: 3px;
  }

  .form-field-wrapper {
    height: 42px;
  }

  .form-field-input {
    font-size: 13px;
  }

  .btn-primary-orange {
    height: 44px;
    font-size: 14px;
    font-weight: 700;
  }

  .auth-card-footer-row {
    margin-top: 10px;
  }

  .page-global-footer {
    display: none;
  }
}

/* 2. IPAD & TABLET PORTRAIT ORIENTATION (Width 641px to 1040px) */
@media (min-width: 641px) and (max-width: 1040px) and (orientation: portrait),
       (min-width: 641px) and (max-width: 880px) {
  .page-container {
    padding: 24px 20px;
    min-height: 100vh;
    height: auto;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow-y: auto;
  }

  .split-auth-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 740px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 16px 40px -10px rgba(15, 23, 42, 0.08), 0 0 0 1px #e2e8f0;
    overflow: hidden;
    min-height: auto;
    max-height: none;
    margin: 0 auto;
    border: 1px solid #e2e8f0;
  }

  .banner-showcase-panel {
    display: flex !important;
    min-height: 280px;
    padding: 24px 28px 22px 28px;
    border-radius: 0;
    position: relative;
  }

  .hero-top-bar-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
  }

  .hero-logo-white-card {
    padding: 6px 12px;
    border-radius: 10px;
  }

  .hero-logo-img {
    height: 32px;
    max-width: 130px;
  }

  .hero-cursive-badge .cursive-line1 {
    font-size: 22px;
  }

  .hero-cursive-badge .cursive-line2 {
    font-size: 20px;
  }

  .hero-middle-section {
    margin-top: 6px;
    margin-bottom: 14px;
    max-width: 580px;
  }

  .hero-main-heading {
    font-size: 26px;
    line-height: 1.15;
    margin-bottom: 6px;
  }

  .headline-underline-orange {
    width: 38px;
    height: 3px;
    margin-bottom: 8px;
  }

  .hero-desc-text {
    font-size: 13px;
    line-height: 1.5;
    color: #cbd5e1;
  }

  .hero-bottom-section {
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
  }

  .hero-bottom-nation {
    display: flex;
    flex-direction: column;
    gap: 2px;
  }

  .hero-metrics-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 6px 14px;
    background: rgba(15, 23, 42, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 10px;
    backdrop-filter: blur(8px);
  }

  .auth-form-panel {
    background: #ffffff;
    padding: 26px 30px 22px 30px;
    border-radius: 0;
    margin-top: 0;
    box-shadow: none;
  }

  .auth-title-group .auth-heading {
    font-size: 22px;
    font-weight: 800;
  }

  .auth-title-group .auth-subheading {
    font-size: 12.5px;
  }

  .role-tabs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
  }

  .role-tab-btn {
    padding: 8px 10px;
    min-height: 42px;
    font-size: 12px;
    border-radius: 8px;
  }

  .form-field-wrapper {
    height: 44px;
  }

  .form-field-input {
    font-size: 13.5px;
  }

  .btn-primary-orange {
    height: 46px;
    font-size: 14.5px;
    font-weight: 700;
  }

  .auth-card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
  }

  .page-global-footer {
    padding: 16px 20px;
    text-align: center;
    color: #94a3b8;
  }
}

/* 3. DESKTOP & LARGE MONITORS (>= 1041px) */
@media (min-width: 1041px) {
  .split-auth-card {
    grid-template-columns: 60% 40%;
    width: min(92vw, 1360px);
    max-width: 1360px;
    height: min(84vh, 660px);
    min-height: 540px;
  }
}

/* 4. MOBILE SMARTPHONES (<= 640px) */
@media (max-width: 640px) {
  html, body {
    height: auto !important;
    min-height: 100% !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
  }

  .page-container {
    padding: 0 0 24px 0;
    min-height: 100vh;
    height: auto;
    background: #ffffff;
    justify-content: flex-start;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

  .split-auth-card {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    max-width: 580px;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    background: #ffffff;
    min-height: auto;
    height: auto;
    border: none;
    overflow: visible;
    margin: 0 auto;
  }

  /* Keep Hero Showcase Visible on Mobile like Reference */
  .banner-showcase-panel {
    display: flex !important;
    padding: 24px 20px 28px 20px;
    min-height: 340px;
    height: auto;
    gap: 16px;
    border-radius: 0;
    position: relative;
    overflow: hidden;
    flex-shrink: 0;
  }

  .hero-top-bar-row {
    margin-bottom: 8px;
  }

  .hero-logo-white-card {
    padding: 6px 12px;
    border-radius: 8px;
  }

  .hero-logo-img {
    height: 30px;
    max-width: 125px;
  }

  .hero-cursive-badge .cursive-line1 {
    font-size: 20px;
  }

  .hero-cursive-badge .cursive-line2 {
    font-size: 18px;
  }

  .cursive-swoosh {
    width: 85px;
    height: 14px;
  }

  .hero-middle-section {
    margin-top: 10px;
    margin-bottom: 14px;
    max-width: 100%;
  }

  .hero-main-heading {
    font-size: 25px;
    line-height: 1.15;
    margin-bottom: 8px;
  }

  .headline-underline-orange {
    width: 36px;
    height: 3px;
    margin-bottom: 10px;
  }

  .hero-desc-text {
    font-size: 12px;
    line-height: 1.5;
    color: #cbd5e1;
  }

  .hero-bottom-section {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    width: 100%;
  }

  .hero-metrics-pill-bar {
    width: 100%;
    justify-content: space-around;
    gap: 8px;
    padding: 8px 10px;
    box-sizing: border-box;
  }

  .hero-metric-item {
    gap: 6px;
  }

  .metric-icon {
    width: 14px;
    height: 14px;
  }

  .metric-num {
    font-size: 11.5px;
    white-space: nowrap;
  }

  .metric-lbl {
    font-size: 8.5px;
  }

  /* Overlapping Clean White Authentication Card */
  .auth-form-panel {
    background: #ffffff;
    border-radius: 28px 28px 0 0;
    padding: 26px 20px 22px 20px;
    margin-top: -16px;
    position: relative;
    z-index: 10;
    box-shadow: 0 -8px 25px rgba(15, 23, 42, 0.08);
    overflow: visible;
    height: auto;
    flex: 1;
  }

  .auth-title-group .auth-heading {
    font-size: 21px;
  }

  .auth-title-group .auth-subheading {
    font-size: 12px;
  }

  .role-tabs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .role-tab-btn {
    padding: 8px 10px;
    font-size: 11.5px;
    min-height: 44px;
    gap: 8px;
    border-radius: 9px;
  }

  .role-tab-btn .role-tab-icon {
    width: 15px;
    height: 15px;
  }

  .auth-card-footer-row {
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
  }

  .page-global-footer {
    background: transparent;
    padding: 16px 20px;
    color: #94a3b8;
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }

  .page-global-footer .footer-copyright {
    color: #94a3b8;
    font-size: 11px;
  }

  .page-global-footer .footer-tagline-text {
    color: #64748b;
    font-size: 9.5px;
  }
}

/* 5. COMPACT MOBILE SCREENS (<= 480px) */
@media (max-width: 480px) {
  .page-container {
    padding: 0 0 16px 0;
  }

  .banner-showcase-panel {
    padding: 20px 16px 24px 16px;
    min-height: 330px;
  }

  .hero-logo-white-card {
    padding: 5px 10px;
    border-radius: 7px;
  }

  .hero-logo-img {
    height: 26px;
    max-width: 110px;
  }

  .hero-main-heading {
    font-size: 22px;
  }

  .hero-cursive-badge .cursive-line1 {
    font-size: 18px;
  }

  .hero-cursive-badge .cursive-line2 {
    font-size: 16px;
  }

  .hero-metrics-pill-bar {
    padding: 6px 8px;
    gap: 6px;
  }

  .metric-num {
    font-size: 11px;
  }

  .metric-lbl {
    font-size: 8px;
  }

  .auth-form-panel {
    padding: 22px 16px 18px 16px;
    border-radius: 24px 24px 0 0;
  }

  .role-tabs-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 6px;
  }

  .form-field-wrapper {
    height: 44px;
  }

  .btn-primary-orange {
    height: 46px;
    font-size: 14px;
  }
}


/* ==========================================================================
   STANDALONE PAGES: FORGOT PASSWORD, VERIFY OTP & RESET PASSWORD
   ========================================================================== */
.standalone-auth-page {
  background: radial-gradient(circle at 50% 10%, #f8fafc 0%, #edf2f7 100%);
}

.link-back-header {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #475569;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.link-back-header svg {
  width: 15px;
  height: 15px;
}

.link-back-header:hover {
  color: #0f172a;
}

/* 1. STANDALONE RECOVERY CARD (forgot-password.html) */
.recovery-hero-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.recovery-logo-pill {
  background: #ffffff;
  padding: 8px 18px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.recovery-logo-img {
  height: 32px;
  width: auto;
  max-width: 135px;
  object-fit: contain;
  display: block;
}

.security-status-tag {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #38bdf8;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 4px 10px;
  border-radius: 20px;
}

.recovery-hero-middle {
  margin: auto 0;
  display: flex;
  flex-direction: column;
}

.recovery-hero-heading {
  font-family: 'Outfit', 'Plus Jakarta Sans', var(--font-display);
  font-size: clamp(30px, 2.8vw, 42px);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 8px;
  letter-spacing: -0.4px;
}

.recovery-headline-dash {
  width: 50px;
  height: 4px;
  background-color: var(--color-brand-orange);
  border-radius: 2px;
  margin-bottom: 12px;
}

.recovery-hero-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #cbd5e1;
  max-width: 480px;
  margin-bottom: 14px;
}

.recovery-hero-visual-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0;
}

.recovery-svg-hero {
  height: 140px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 25px rgba(0, 0, 0, 0.35));
}

.recovery-hero-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  padding-top: 10px;
}

.recovery-trust-mini-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.recovery-iso-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.recovery-iso-pill svg {
  width: 14px;
  height: 14px;
}

/* 2. STANDALONE VERIFY OTP CARD (verify-otp.html) */
.verify-hero-top-row {
  width: 100%;
}

.verify-hero-middle {
  margin: auto 0;
  display: flex;
  flex-direction: column;
}

.verify-hero-heading {
  font-family: 'Outfit', 'Plus Jakarta Sans', var(--font-display);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 4px;
}

.verify-hero-subtext {
  font-size: 13.5px;
  color: #94a3b8;
  margin-bottom: 12px;
}

.verify-3d-visual-container {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  margin-bottom: 12px;
  background: #0b1933;
}

.verify-3d-img {
  width: 100%;
  height: clamp(160px, 22vh, 220px);
  object-fit: cover;
  display: block;
}

.verify-tagline-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.verify-tagline-text {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #f8fafc;
}

.verify-telemetry-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(10, 24, 52, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  padding: 7px 14px;
  backdrop-filter: blur(12px);
  width: 100%;
}

.verify-metric-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  font-weight: 700;
  color: #f8fafc;
}

.verify-metric-item svg {
  width: 14px;
  height: 14px;
}

.two-factor-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: #64748b;
}

.verify-target-badge-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  border: 1.5px solid #e2e8f0;
  border-radius: 9px;
  padding: 9px 14px;
  margin-bottom: 10px;
}

.target-badge-left {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.target-badge-left svg {
  width: 16px;
  height: 16px;
  color: #64748b;
}

.link-edit-target {
  font-size: 12px;
  font-weight: 700;
  color: #2563eb;
  text-decoration: none;
}

.link-edit-target:hover {
  text-decoration: underline;
}

/* 3. STANDALONE RESET PASSWORD CARD (reset-password.html) */
.reset-hero-middle {
  margin: auto 0;
  display: flex;
  flex-direction: column;
}

.reset-hero-heading {
  font-family: 'Outfit', 'Plus Jakarta Sans', var(--font-display);
  font-size: clamp(28px, 2.6vw, 38px);
  font-weight: 900;
  line-height: 1.1;
  color: #ffffff;
  margin-bottom: 6px;
}

.reset-hero-subtext {
  font-size: 13px;
  color: #cbd5e1;
  margin-bottom: 12px;
}

.reset-feature-checklist {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.reset-feature-item {
  display: flex;
  align-items: center;
  gap: 7px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  padding: 6px 8px;
}

.feature-icon-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-icon-circle.blue-circle { background: #eff6ff; }
.feature-icon-circle.green-circle { background: #f0fdf4; }
.feature-icon-circle.orange-circle { background: #fff7ed; }

.feature-icon-circle svg {
  width: 13px;
  height: 13px;
}

.feature-text-group {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.feature-title {
  font-size: 9.5px;
  font-weight: 700;
  color: #ffffff;
}

.feature-sub {
  font-size: 8.5px;
  color: #94a3b8;
}

.reset-3d-visual-container {
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: #ffffff;
}

.reset-3d-img {
  width: 100%;
  height: clamp(150px, 20vh, 200px);
  object-fit: cover;
  display: block;
}

.account-security-eyebrow {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: #64748b;
  margin-bottom: 4px;
}

/* Password Strength Meter */
.pwd-strength-meter-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 5px;
}

.pwd-strength-bars {
  display: flex;
  gap: 4px;
  flex: 1;
  max-width: 160px;
}

.strength-bar {
  flex: 1;
  height: 4px;
  background-color: #e2e8f0;
  border-radius: 2px;
  transition: background-color var(--transition-fast);
}

.strength-bar.weak { background-color: #ef4444; }
.strength-bar.fair { background-color: #f59e0b; }
.strength-bar.good { background-color: #3b82f6; }
.strength-bar.strong { background-color: #10b981; }

.pwd-strength-label {
  font-size: 11px;
  color: #64748b;
}

/* Password Requirements Box */
.pwd-requirements-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 14px;
  margin: 4px 0 6px;
}

.req-box-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #0f172a;
  margin-bottom: 5px;
}

.req-box-header svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.req-bullet-list {
  margin: 0;
  padding-left: 18px;
  font-size: 11px;
  color: #64748b;
  line-height: 1.5;
}

.req-bullet-list li.passed {
  color: #16a34a;
  font-weight: 600;
}

/* Responsive adjustments for Standalone Auth Pages */
@media (max-width: 900px) {
  .standalone-recovery-card,
  .standalone-verify-card,
  .standalone-reset-card {
    grid-template-columns: 1fr;
    height: auto !important;
    min-height: auto !important;
    max-height: none !important;
    border-radius: 20px;
    width: 96%;
    margin: 16px auto;
  }

  .recovery-left-panel,
  .verify-left-panel,
  .reset-left-panel {
    padding: 24px 20px 20px 20px;
    border-radius: 20px 20px 0 0;
  }

  .recovery-hero-heading,
  .verify-hero-heading,
  .reset-hero-heading {
    font-size: 26px;
  }

  .recovery-svg-hero {
    height: 110px;
  }

  .verify-3d-img,
  .reset-3d-img {
    height: 160px;
  }

  .reset-feature-checklist {
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .recovery-right-panel,
  .verify-right-panel,
  .reset-right-panel {
    padding: 24px 20px 20px 20px;
  }
}

@media (max-width: 520px) {
  .otp-channel-selector-grid {
    grid-template-columns: 1fr;
  }

  .reset-feature-checklist {
    grid-template-columns: 1fr;
  }

  .otp-digit-input {
    width: clamp(36px, 12vw, 44px);
    height: clamp(44px, 13vw, 50px);
    font-size: 18px;
  }

  .otp-boxes-wrapper {
    gap: 6px;
  }

  .twilio-gateway-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
}




