/* طب تو — صفحه ورود و ثبت‌نام */
:root {
  --teb-auth-teal: #14b8a6;
  --teb-auth-green: #10b981;
  --teb-auth-emerald: #31df88;
  --teb-auth-navy: #0f172a;
  --teb-auth-card: rgba(255, 255, 255, 0.92);
  --teb-auth-border: rgba(20, 184, 166, 0.22);
  --teb-auth-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
}

body.teb-login-page {
  background: #0b1220;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
  font-family: 'Vazirmatn', Tahoma, sans-serif;
}

.teb-login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.teb-login-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: none;
  animation: none;
}

.teb-login-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.72) 0%, rgba(6, 95, 70, 0.45) 55%, rgba(15, 23, 42, 0.78) 100%),
    radial-gradient(circle at 20% 20%, rgba(49, 223, 136, 0.18), transparent 42%),
    radial-gradient(circle at 80% 70%, rgba(20, 184, 166, 0.16), transparent 40%);
  animation: none;
}

.teb-login-bg-shimmer {
  display: none !important;
}

.teb-login-shell {
  position: relative;
  z-index: 1;
}

body.teb-login-page .site-header {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18);
  margin-bottom: 0;
}

body.teb-login-page .header-nav .nav-link {
  color: rgba(255, 255, 255, 0.88) !important;
  border-radius: 999px;
  padding: 8px 14px !important;
}

body.teb-login-page .header-nav .nav-link:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}

body.teb-login-page .container {
  padding-top: 24px;
  padding-bottom: 40px;
}

body.teb-login-page .login-container {
  text-align: inherit;
  background: var(--teb-auth-card);
  border: 1px solid var(--teb-auth-border);
  border-radius: 24px;
  box-shadow: var(--teb-auth-shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  max-width: 520px;
  margin: 24px auto 40px;
  padding: 36px 32px 32px;
  animation: tebCardIn 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes tebCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.teb-auth-brand {
  text-align: center;
  margin-bottom: 1.5rem;
}

.teb-auth-brand img {
  max-width: 72px;
  height: auto;
  filter: drop-shadow(0 8px 18px rgba(20, 184, 166, 0.25));
}

.teb-auth-brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--teb-auth-navy);
  margin: 0.75rem 0 0.25rem;
  letter-spacing: -0.02em;
}

.teb-auth-brand-sub {
  font-size: 0.88rem;
  color: #64748b;
  margin: 0;
}

.teb-auth-heading {
  text-align: center;
  margin-bottom: 1.5rem;
}

.teb-auth-heading h4,
.teb-auth-heading h5 {
  font-weight: 800;
  color: var(--teb-auth-navy);
  margin-bottom: 0.35rem;
}

.teb-auth-heading p {
  color: #64748b;
  font-size: 0.92rem;
  margin: 0;
}

body.teb-login-page .login-container label {
  text-align: right;
  font-weight: 600;
  color: #334155;
  font-size: 0.88rem;
}

body.teb-login-page .login-container .form-control,
body.teb-login-page .login-container .form-select {
  text-align: right;
  border: 1.5px solid #e2e8f0;
  border-radius: 14px;
  padding: 0.72rem 1rem;
  background: #f8fafc;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  min-height: 48px;
}

body.teb-login-page .login-container .form-control:focus,
body.teb-login-page .login-container .form-select:focus {
  border-color: var(--teb-auth-teal);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

body.teb-login-page .login-container .input-group {
  justify-content: stretch;
}

body.teb-login-page .login-container .input-group .form-control {
  border-top-left-radius: 14px;
  border-bottom-left-radius: 14px;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

body.teb-login-page .login-container .input-group .btn-outline-secondary {
  border: 1.5px solid #e2e8f0;
  border-right: 0;
  border-radius: 0 14px 14px 0;
  background: #f8fafc;
  color: #64748b;
}

body.teb-login-page .login-container .input-group .btn-outline-secondary:hover,
body.teb-login-page .login-container .input-group .btn-outline-secondary.active {
  background: linear-gradient(135deg, var(--teb-auth-teal), var(--teb-auth-green));
  border-color: transparent;
  color: #fff;
}

body.teb-login-page .btn-primary {
  background: linear-gradient(135deg, var(--teb-auth-teal) 0%, var(--teb-auth-green) 55%, var(--teb-auth-emerald) 100%);
  border: none;
  border-radius: 14px;
  font-weight: 700;
  min-height: 50px;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.28);
  transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
}

body.teb-login-page .btn-primary:hover {
  transform: translateY(-1px);
  filter: brightness(1.03);
  box-shadow: 0 16px 34px rgba(16, 185, 129, 0.34);
  background: linear-gradient(135deg, #0d9488 0%, #059669 55%, #22c55e 100%);
}

body.teb-login-page .btn-outline-primary {
  border: 2px solid var(--teb-auth-teal);
  color: #0f766e;
  border-radius: 14px;
  font-weight: 700;
  min-height: 48px;
  background: rgba(20, 184, 166, 0.06);
}

body.teb-login-page .btn-outline-primary:hover {
  background: rgba(20, 184, 166, 0.12);
  color: #0d9488;
  border-color: #0d9488;
}

body.teb-login-page .btn-outline-success,
body.teb-login-page .teb-auth-biometric-btn {
  border: 2px solid var(--teb-auth-teal);
  color: #0f766e;
  border-radius: 14px;
  font-weight: 700;
  min-height: 48px;
  background: #fff;
}

body.teb-login-page .teb-auth-biometric-btn:hover,
body.teb-login-page .btn-outline-success:hover {
  background: rgba(20, 184, 166, 0.08);
  color: #0d9488;
  border-color: #0d9488;
}

body.teb-login-page .btn-link.text-success {
  color: #0d9488 !important;
  font-weight: 600;
  text-decoration: none;
}

body.teb-login-page .btn-link.text-success:hover {
  color: #047857 !important;
}

body.teb-login-page .teb-auth-type-icon {
  font-size: 2rem;
  color: var(--teb-auth-teal) !important;
}

body.teb-login-page .btn-secondary,
body.teb-login-page .btn-outline-secondary {
  border-radius: 14px;
  min-height: 46px;
}

.teb-auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 1.25rem 0;
  color: #94a3b8;
  font-size: 0.82rem;
}

.teb-auth-divider::before,
.teb-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, #cbd5e1, transparent);
}

.teb-auth-register-cta {
  text-align: center;
  padding: 1rem;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(20, 184, 166, 0.08), rgba(16, 185, 129, 0.04));
  border: 1px dashed rgba(20, 184, 166, 0.28);
}

.teb-auth-register-cta p,
.teb-auth-register-question {
  margin-bottom: 0.65rem;
  color: #334155;
  font-weight: 700;
  font-size: 1rem;
}

.teb-auth-register-btn {
  font-weight: 800 !important;
}

body.teb-login-page .user-type-card {
  border: 1.5px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 16px;
  margin-bottom: 14px;
  background: linear-gradient(180deg, #fff, #f8fafc);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.04);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  flex: 0 0 auto;
  float: none;
  clear: both;
}

/* پنل ثبت‌نام: همیشه ستونی — جلوگیری از چیدمان افقی کارت‌ها در بعضی مرورگرها */
body.teb-login-page #loginSection,
body.teb-login-page #registrationSection,
body.teb-login-page #step1,
body.teb-login-page #step2,
body.teb-login-page #step3,
body.teb-login-page #step4,
body.teb-login-page #step-sp-type,
body.teb-login-page #step-sp-natural-roles,
body.teb-login-page #step-sp-legal-roles {
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

body.teb-login-page #step1 > h5,
body.teb-login-page #step-sp-type > h5,
body.teb-login-page #step-sp-natural-roles > h5,
body.teb-login-page #step-sp-legal-roles > h5,
body.teb-login-page #step2 > h5,
body.teb-login-page #step3 > h5,
body.teb-login-page #step4 > h5 {
  flex: 0 0 auto;
  width: 100%;
  writing-mode: horizontal-tb;
}

body.teb-login-page .user-type-card .row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
}

body.teb-login-page .user-type-card .row > [class*="col-"] {
  float: none;
  min-width: 0;
}

body.teb-login-page .user-type-card:hover {
  transform: translateY(-2px);
  border-color: rgba(20, 184, 166, 0.45);
  box-shadow: 0 12px 28px rgba(20, 184, 166, 0.12);
}

body.teb-login-page .user-type-card.selected {
  border-color: var(--teb-auth-teal);
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.1), rgba(49, 223, 136, 0.08));
  box-shadow: 0 12px 30px rgba(20, 184, 166, 0.16);
}

body.teb-login-page .user-type-card h5 {
  color: #0f766e;
  font-weight: 800;
  font-size: 0.98rem;
}

body.teb-login-page .user-type-card .fa,
body.teb-login-page .user-type-card i {
  color: var(--teb-auth-teal) !important;
}

body.teb-login-page .step-indicator {
  gap: 10px;
  margin-bottom: 1.5rem;
}

body.teb-login-page .step {
  width: 36px;
  height: 36px;
  font-size: 0.85rem;
  border: 2px solid #e2e8f0;
  background: #fff;
}

body.teb-login-page .step.active {
  background: linear-gradient(135deg, var(--teb-auth-teal), var(--teb-auth-green));
  border-color: transparent;
  box-shadow: 0 8px 18px rgba(20, 184, 166, 0.28);
}

body.teb-login-page .step.completed {
  background: #059669;
  border-color: transparent;
}

body.teb-login-page .otp-input {
  width: 48px;
  height: 52px;
  border-radius: 12px;
  border: 1.5px solid #cbd5e1;
  background: #f8fafc;
  font-weight: 700;
}

body.teb-login-page .otp-input:focus {
  border-color: var(--teb-auth-teal);
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.14);
}

body.teb-login-page .login-terms-note {
  text-align: center;
  color: #64748b !important;
}

body.teb-login-page .login-terms-link {
  color: #0d9488;
}

body.teb-login-page .login-terms-link:hover {
  color: #047857;
}

body.teb-login-page .form-check {
  justify-content: flex-start;
}

body.teb-login-page #loginSection {
  display: flex;
  flex-direction: column;
}

body.teb-login-page .teb-auth-login-stack {
  display: flex;
  flex-direction: column;
}

body.teb-login-page .teb-auth-login-footer {
  position: relative;
  z-index: 20;
  flex-shrink: 0;
}

body.teb-login-page #registrationSection .btn-link {
  color: #0d9488;
  text-decoration: none;
  font-weight: 600;
}

/* ── موبایل / PWA: فیت کامل بدون اسکرول ── */
@media (max-width: 768px), ((display-mode: standalone) and (max-width: 900px)) {
  html,
  body.teb-login-page {
    height: 100dvh !important;
    max-height: 100dvh !important;
    overflow: hidden !important;
    position: fixed !important;
    inset: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body.teb-login-page .teb-login-bg {
    display: none !important;
    opacity: 0 !important;
  }

  body.teb-login-page .teb-login-bg-overlay {
    background:
      linear-gradient(180deg, rgba(238, 242, 247, 0.15) 0%, rgba(224, 242, 254, 0.35) 50%, rgba(240, 253, 250, 0.25) 100%),
      radial-gradient(circle at 30% 10%, rgba(20, 184, 166, 0.12), transparent 45%);
  }

  body.teb-login-page.teb-has-bottom-nav {
    padding-bottom: var(--teb-bottom-nav-offset, calc(64px + env(safe-area-inset-bottom, 0px))) !important;
    box-sizing: border-box !important;
  }

  body.teb-login-page .teb-login-bg img {
    animation: none;
    transform: scale(1.04);
  }

  body.teb-login-page .site-header {
    display: none !important;
  }

  body.teb-login-page .teb-login-shell {
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body.teb-login-page .container {
    flex: 1 1 auto;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    display: flex !important;
    flex-direction: column !important;
  }

  body.teb-login-page > .container > .row,
  body.teb-login-page > .container > .row.justify-content-center,
  body.teb-login-page > .container > .row > .col-md-8,
  body.teb-login-page > .container > .row > .col-lg-6,
  body.teb-login-page .teb-login-shell > .container > .row,
  body.teb-login-page .teb-login-shell > .container > .row.justify-content-center,
  body.teb-login-page .teb-login-shell > .container > .row > .col-md-8,
  body.teb-login-page .teb-login-shell > .container > .row > .col-lg-6 {
    flex: 1 1 auto !important;
    min-height: 0 !important;
    height: auto !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
    display: flex !important;
    align-items: stretch !important;
  }

  body.teb-login-page .login-container {
    flex: 1 1 auto;
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 10px 14px 8px !important;
    border-radius: 0 !important;
    border-left: 0 !important;
    border-right: 0 !important;
    border-top: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
    background: #ffffff !important;
    overflow: auto !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
  }

  body.teb-login-page #loginSection,
  body.teb-login-page #registrationSection {
    flex: 0 1 auto;
    min-height: 0;
    overflow: visible !important;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  body.teb-login-page .teb-auth-login-stack {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: visible;
  }

  body.teb-login-page .teb-auth-login-footer {
    flex: 0 0 auto;
    margin-top: 0.65rem;
    padding-top: 0;
    padding-bottom: 0;
    pointer-events: auto;
    position: relative;
    z-index: 20;
  }

  body.teb-login-page #loginSection form {
    flex: 0 0 auto !important;
    overflow: visible !important;
    display: block !important;
  }

  body.teb-login-page .teb-auth-brand {
    margin-bottom: 0.35rem;
    flex-shrink: 0;
  }

  body.teb-login-page .teb-auth-brand .logo-container {
    gap: 8px;
  }

  body.teb-login-page .teb-auth-brand img {
    max-width: 42px !important;
  }

  body.teb-login-page .teb-auth-brand-title {
    font-size: 1.05rem;
    margin: 0.2rem 0 0;
  }

  body.teb-login-page .teb-auth-brand-sub,
  body.teb-login-page .logo-spacer {
    display: none !important;
  }

  body.teb-login-page .teb-auth-heading {
    margin-bottom: 0.35rem;
    flex-shrink: 0;
  }

  body.teb-login-page .teb-auth-heading h4,
  body.teb-login-page .teb-auth-heading h5 {
    font-size: 1.05rem;
    margin-bottom: 0.1rem;
  }

  body.teb-login-page .teb-auth-heading p {
    font-size: 0.9rem;
  }

  body.teb-login-page #loginSection .mb-3,
  body.teb-login-page #registrationSection .mb-3 {
    margin-bottom: 0.5rem !important;
  }

  body.teb-login-page #registrationSection > #step1,
  body.teb-login-page #registrationSection > #step2,
  body.teb-login-page #registrationSection > #step3,
  body.teb-login-page #registrationSection > #step4,
  body.teb-login-page #registrationSection > #step-sp-type,
  body.teb-login-page #registrationSection > #step-sp-natural-roles,
  body.teb-login-page #registrationSection > #step-sp-legal-roles {
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    width: 100%;
  }

  body.teb-login-page .login-container .form-control,
  body.teb-login-page .login-container .form-select,
  body.teb-login-page .login-container .btn {
    min-height: 44px !important;
    height: 44px !important;
    padding-top: 0.45rem !important;
    padding-bottom: 0.45rem !important;
    font-size: 16px !important;
    border-radius: 12px !important;
  }

  body.teb-login-page .login-terms-note {
    font-size: 0.82rem !important;
    line-height: 1.4 !important;
    margin-bottom: 0.5rem !important;
  }

  body.teb-login-page .teb-auth-divider {
    margin: 0.35rem 0 0.55rem;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  body.teb-login-page .teb-auth-register-cta {
    margin-top: 0;
    padding: 14px 14px 12px;
    flex-shrink: 0;
    background: linear-gradient(180deg, rgba(20, 184, 166, 0.14), rgba(16, 185, 129, 0.08));
    border: 2px solid rgba(20, 184, 166, 0.35);
    box-shadow: 0 8px 24px rgba(20, 184, 166, 0.12);
  }

  body.teb-login-page .teb-auth-register-cta p,
  body.teb-login-page .teb-auth-register-question {
    font-size: 1.02rem !important;
    font-weight: 800 !important;
    margin-bottom: 0.65rem !important;
    color: #0f172a !important;
  }

  body.teb-login-page .teb-auth-register-btn {
    min-height: 48px !important;
    height: 48px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    border-width: 2px !important;
    background: #fff !important;
    pointer-events: auto !important;
    touch-action: manipulation;
  }

  body.teb-login-page .teb-install-zone,
  body.teb-login-page #biometricHint {
    display: none !important;
  }

  body.teb-login-page #biometricLoginBtn {
    min-height: 36px !important;
    height: 36px !important;
    font-size: 0.82rem !important;
    margin-top: 0.35rem !important;
  }

  body.teb-login-page #registrationSection > .btn-link {
    font-size: 0.78rem;
    margin-bottom: 0.25rem !important;
    padding: 0 !important;
    flex-shrink: 0;
  }

  body.teb-login-page #step1 > h5,
  body.teb-login-page #step-sp-type > h5,
  body.teb-login-page #step-sp-natural-roles > h5,
  body.teb-login-page #step-sp-legal-roles > h5,
  body.teb-login-page #step2 > h5,
  body.teb-login-page #step3 > h5,
  body.teb-login-page #step4 > h5 {
    font-size: 0.85rem !important;
    margin-bottom: 0.35rem !important;
  }

  body.teb-login-page .user-type-card {
    padding: 10px 12px !important;
    margin-bottom: 5px !important;
    border-radius: 14px !important;
    background: #fff !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
  }

  body.teb-login-page .user-type-card h5 {
    font-size: 0.95rem !important;
    margin-bottom: 0 !important;
  }

  body.teb-login-page .user-type-card p {
    font-size: 0.78rem !important;
    line-height: 1.25 !important;
  }

  body.teb-login-page .user-type-card .col-3 i,
  body.teb-login-page .user-type-card .fa {
    font-size: 1.15rem !important;
  }

  body.teb-login-page #step-sp-natural-roles .user-type-card,
  body.teb-login-page #step-sp-legal-roles .user-type-card {
    padding: 5px 6px !important;
    margin-bottom: 4px !important;
  }

  body.teb-login-page #step-sp-natural-roles .user-type-card p,
  body.teb-login-page #step-sp-legal-roles .user-type-card p {
    font-size: 0.74rem !important;
  }

  body.teb-login-page .step-indicator {
    margin-bottom: 0.35rem !important;
    gap: 6px;
    flex-shrink: 0;
  }

  body.teb-login-page .step {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }

  body.teb-login-page .otp-input-container {
    gap: 6px;
    margin-bottom: 0.35rem !important;
    flex-shrink: 0;
  }

  body.teb-login-page .otp-input {
    width: 36px !important;
    height: 40px !important;
    font-size: 15px !important;
    border-radius: 8px !important;
  }

  body.teb-login-page .otp-timer {
    font-size: 0.72rem;
    margin-top: 0.25rem;
    margin-bottom: 0.35rem;
  }

  body.teb-login-page #step2 > p.text-muted,
  body.teb-login-page #step3 > p.text-muted {
    font-size: 0.72rem !important;
    margin-bottom: 0.35rem !important;
  }

  body.teb-login-page #step4 .row.mb-3 {
    margin-bottom: 0.35rem !important;
  }

  body.teb-login-page #step4 .row.g-2 {
    --bs-gutter-y: 0.25rem;
  }

  body.teb-login-page #registrationSection .btn-secondary,
  body.teb-login-page #registrationSection .btn-outline-secondary,
  body.teb-login-page #registrationSection .btn-link {
    min-height: 44px !important;
    height: 44px !important;
  }

  body.teb-login-page #registrationSection .mt-2,
  body.teb-login-page #registrationSection .mt-3 {
    margin-top: 0.35rem !important;
  }
}

@media (max-height: 740px) and (max-width: 768px),
(max-height: 740px) and (display-mode: standalone) {
  body.teb-login-page .teb-auth-brand img {
    max-width: 36px !important;
  }

  body.teb-login-page .teb-auth-brand-title {
    font-size: 0.95rem;
  }

  body.teb-login-page .login-container .form-control,
  body.teb-login-page .login-container .form-select,
  body.teb-login-page .login-container .btn:not(.teb-auth-register-btn) {
    min-height: 44px !important;
    height: 44px !important;
  }

  body.teb-login-page .teb-auth-register-btn {
    min-height: 44px !important;
    height: 44px !important;
    font-size: 0.95rem !important;
  }

  body.teb-login-page .user-type-card {
    padding: 5px 7px !important;
    margin-bottom: 4px !important;
  }
}

@media (max-width: 768px) {
  body.teb-login-page {
    background: #ffffff !important;
  }
}

/* ── Layout و stateهای JS (قبلاً inline در login.ejs) ── */
body.teb-login-page .header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

body.teb-login-page .header-nav .nav {
  list-style: none;
  display: flex;
  margin: 0;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
}

body.teb-login-page .logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
}

body.teb-login-page .logo-spacer {
  font-size: 1.25rem;
  color: #94a3b8;
  font-weight: 700;
}

body.teb-login-page .company-logo-placeholder {
  min-width: 80px;
  min-height: 50px;
  display: none;
  color: #94a3b8;
  font-size: 0.75rem;
  transition: opacity 0.3s ease;
}

body.teb-login-page .company-logo-placeholder.show {
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 1;
}

body.teb-login-page .company-selection,
body.teb-login-page .personnel-number-field {
  display: none;
}

body.teb-login-page #togglePassword .pw-toggle-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
}

body.teb-login-page #togglePassword svg {
  display: block;
}

body.teb-login-page .otp-input-container {
  direction: ltr !important;
  display: flex;
  justify-content: center;
  gap: 10px;
}

body.teb-login-page .otp-timer {
  font-size: 0.875rem;
  color: #64748b;
  text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 768px) {
  body.teb-login-page .header-content {
    flex-direction: column;
    text-align: center;
    gap: 12px;
    justify-content: center;
  }

  body.teb-login-page .header-nav {
    width: 100%;
    display: flex;
    justify-content: center;
  }
}
