/* ==================== AUTH SHARED ==================== */
body.auth-page,
body.language-page {
  --auth-logo-max-width: 220px;
  --auth-logo-max-height: 128px;
  --auth-logo-margin-bottom: 1.15rem;
  background: #0f172a !important;
}

.auth-slider-shell {
  position: relative;
  z-index: 1;
  background: rgba(15, 23, 42, 0.28);
}

.auth-login-single {
  justify-content: center;
  align-items: center;
}

.auth-slider-shell .right-panel {
  flex: 0 1 680px;
  width: 100%;
  min-height: 100vh;
  background: transparent;
  padding: 2rem;
}

.auth-slider-shell .form-container {
  --auth-form-container-margin: 0 auto;
  --auth-form-container-padding: 0;
  --auth-form-container-max-width: 520px;
  --auth-content-max-width: 420px;
  --auth-card-padding: 1.25rem 1rem;
  max-width: var(--auth-form-container-max-width);
  margin: var(--auth-form-container-margin);
  padding: var(--auth-form-container-padding);
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.36)), rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(4px) saturate(120%) contrast(104%);
  -webkit-backdrop-filter: blur(4px) saturate(120%) contrast(104%);
}

.auth-slider-shell .login-mobile-card,
.auth-slider-shell .otp-verification-card {
  width: 100%;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
}

.auth-slider-shell .login-auth-inner,
.auth-slider-shell .otp-verification-inner {
  width: 100%;
  padding: var(--auth-card-padding);
}

.auth-slider-shell .form-header {
  width: 100%;
  max-width: var(--auth-content-max-width);
  margin: 0 auto 1.15rem;
}

.auth-slider-shell .form-header h2 {
  color: #f8fafc;
}

.auth-slider-shell .form-header p {
  color: rgba(226, 232, 240, 0.86);
}

.auth-slider-shell .form-header strong {
  color: #f8fafc;
}

.auth-slider-shell .auth-form-logo,
body.language-page .auth-form-logo {
  display: block;
  width: auto;
  height: auto;
  max-width: min(100%, var(--auth-logo-max-width));
  max-height: var(--auth-logo-max-height);
  margin: 0 auto var(--auth-logo-margin-bottom);
  filter: none;
  object-fit: contain;
}

.auth-slider-shell .auth-footer {
  width: 100%;
  max-width: var(--auth-content-max-width);
  margin: 1.35rem auto 0;
  text-align: center;
}

.auth-slider-shell .auth-footer p {
  color: rgba(203, 213, 225, 0.62);
  font-size: 0.8rem;
  margin: 0;
}

.auth-slider-shell .form-label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 500;
  color: rgba(241, 245, 249, 0.92);
}

.auth-slider-shell .form-control {
  min-height: 52px;
  background: rgba(15, 23, 42, 0.42);
  border-color: rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  color: #f8fafc;
  font-size: 0.95rem;
}

.auth-slider-shell .form-control:focus {
  background: rgba(15, 23, 42, 0.54);
  border-color: rgba(219, 234, 254, 0.76);
  box-shadow:
    0 0 0 0.2rem rgba(147, 197, 253, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-slider-shell .form-control::placeholder {
  color: rgba(226, 232, 240, 0.62);
}

.auth-slider-shell .invalid-feedback {
  color: #fecaca !important;
}

.auth-slider-shell .sm-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem !important;
  min-height: 52px !important;
  font-size: 0.95rem !important;
  border-radius: 14px !important;
  height: auto !important;
  width: 100% !important;
  max-width: var(--auth-content-max-width);
  margin-left: auto;
  margin-right: auto;
  line-height: 1.2;
}

.auth-slider-shell .sm-btn:disabled,
.auth-slider-shell .sm-btn:disabled:hover {
  background: rgba(148, 163, 184, 0.38) !important;
  color: rgba(226, 232, 240, 0.68) !important;
  cursor: not-allowed;
  opacity: 1;
  box-shadow: none !important;
  transform: none !important;
}

/* ==================== LOGIN ==================== */
.auth-slider-shell #login-form {
  width: 100%;
  max-width: var(--auth-content-max-width);
  margin: 0 auto;
}

.auth-slider-shell #login-form > .mb-3 {
  margin-bottom: 0.9rem;
}

.auth-slider-shell .iti {
  width: 100%;
}

.auth-slider-shell .iti__selected-flag {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 14px 0 0 14px;
}

.auth-slider-shell .iti__selected-dial-code {
  color: #f8fafc;
}

.auth-slider-shell .iti__arrow {
  border-top-color: rgba(248, 250, 252, 0.82);
}

.auth-slider-shell .iti__arrow--up {
  border-bottom-color: rgba(248, 250, 252, 0.82);
}

.auth-slider-shell .form-check-input {
  background-color: rgba(15, 23, 42, 0.42);
  border-color: rgba(255, 255, 255, 0.3);
}

.auth-slider-shell .form-check-input:checked {
  background-color: #3b82f6;
  border-color: #93c5fd;
}

.auth-slider-shell .form-check-input:focus {
  border-color: rgba(219, 234, 254, 0.76);
  box-shadow: 0 0 0 0.2rem rgba(147, 197, 253, 0.18);
}

.auth-slider-shell .auth-terms-check {
  margin-bottom: 1rem;
  padding-left: 1.8rem;
  text-align: left;
}

.auth-slider-shell .auth-terms-check .form-check-input {
  width: 1.15rem;
  height: 1.15rem;
  margin-left: -1.8rem;
}

.auth-slider-shell .auth-terms-check .form-check-label {
  color: rgba(226, 232, 240, 0.88);
  font-size: 0.85rem;
  line-height: 1.4;
}

.auth-slider-shell .auth-terms-link {
  color: #dbeafe;
  text-decoration: none;
  font-weight: 700;
}

body.auth-page .terms-modal-title {
  font-weight: 700;
  color: #1e293b;
  font-size: 1.15rem;
}

body.auth-page .terms-modal-body {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.7;
}

body.auth-page .terms-modal-body h6 {
  font-weight: 700;
  margin-top: 1.5rem;
  color: #0f172a;
}

body.auth-page .terms-modal-body h6:first-of-type {
  margin-top: 2rem;
}

.auth-slider-shell .iti__country-search-row,
body.auth-page .iti__country-search-row {
  position: sticky;
  top: 0;
  z-index: 3;
  padding: 10px !important;
  background: rgba(15, 23, 42, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12) !important;
}

.auth-slider-shell .iti--allow-dropdown input.iti__country-search,
.auth-slider-shell .iti--separate-dial-code input.iti__country-search,
body.auth-page input.iti__country-search {
  width: 100%;
  height: 40px;
  margin: 0 !important;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  border-radius: 8px !important;
  background: rgba(15, 23, 42, 0.62) !important;
  color: #f8fafc !important;
  outline: none;
  font-size: 14px;
  box-shadow: none !important;
}

.auth-slider-shell .iti--allow-dropdown input.iti__country-search::placeholder,
.auth-slider-shell .iti--separate-dial-code input.iti__country-search::placeholder,
body.auth-page input.iti__country-search::placeholder {
  color: rgba(226, 232, 240, 0.62);
}

.auth-slider-shell .iti--allow-dropdown input.iti__country-search:focus,
.auth-slider-shell .iti--separate-dial-code input.iti__country-search:focus,
body.auth-page input.iti__country-search:focus {
  border-color: rgba(219, 234, 254, 0.72) !important;
  background: rgba(15, 23, 42, 0.72) !important;
  box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.16) !important;
}

.auth-slider-shell .iti .iti__country-list,
body.auth-page .iti__country-list {
  margin-top: 6px !important;
  margin-left: 0 !important;
  max-height: 286px !important;
  padding: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 14px !important;
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.96), rgba(15, 23, 42, 0.88)), rgba(255, 255, 255, 0.04) !important;
  box-shadow:
    0 18px 46px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
  white-space: normal;
  overflow-x: hidden !important;
  color: #f8fafc !important;
  scrollbar-width: thin;
  scrollbar-color: rgba(226, 232, 240, 0.48) rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px) saturate(120%);
  -webkit-backdrop-filter: blur(4px) saturate(120%);
}

body.auth-page.iti-mobile .iti--container {
  top: max(12px, env(safe-area-inset-top));
  right: 14px;
  bottom: max(12px, env(safe-area-inset-bottom));
  left: 14px;
  z-index: 1060;
}

body.auth-page.iti-mobile .iti__country-list {
  width: 100% !important;
  max-height: 100% !important;
  margin-top: 0 !important;
  overflow-y: auto !important;
}

.auth-slider-shell .iti .iti__country-list::-webkit-scrollbar,
body.auth-page .iti__country-list::-webkit-scrollbar {
  width: 8px;
}

.auth-slider-shell .iti .iti__country-list::-webkit-scrollbar-track,
body.auth-page .iti__country-list::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.55);
  border-radius: 999px;
}

.auth-slider-shell .iti .iti__country-list::-webkit-scrollbar-thumb,
body.auth-page .iti__country-list::-webkit-scrollbar-thumb {
  background: rgba(226, 232, 240, 0.42);
  border: 2px solid rgba(15, 23, 42, 0.55);
  border-radius: 999px;
}

.auth-slider-shell .iti__country,
body.auth-page .iti__country {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 9px 12px !important;
  color: #f8fafc !important;
  background: transparent !important;
}

.auth-slider-shell .iti__flag-box,
body.auth-page .iti__flag-box {
  flex: 0 0 auto;
  margin-right: 0.65rem;
}

.auth-slider-shell .iti__country-name,
body.auth-page .iti__country-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  color: rgba(248, 250, 252, 0.92) !important;
}

.auth-slider-shell .iti__dial-code,
body.auth-page .iti__dial-code {
  flex: 0 0 auto;
  margin-left: 8px;
  color: rgba(203, 213, 225, 0.78) !important;
}

.auth-slider-shell .iti__country.iti__highlight,
body.auth-page .iti__country.iti__highlight {
  background: rgba(59, 130, 246, 0.24) !important;
}

.auth-slider-shell .iti__country:hover,
body.auth-page .iti__country:hover {
  background: rgba(255, 255, 255, 0.08) !important;
}

.auth-slider-shell .iti__divider,
body.auth-page .iti__divider {
  border-bottom-color: rgba(255, 255, 255, 0.14) !important;
}

.auth-slider-shell .iti__country-search-empty,
body.auth-page .iti__country-search-empty {
  display: none;
  padding: 10px 4px 2px;
  color: rgba(203, 213, 225, 0.72) !important;
  font-size: 13px;
  text-align: center;
}

/* ==================== OTP ==================== */
body.auth-page .otp-boxes {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(0.45rem, 2vw, 0.75rem);
  margin: 0 auto 1rem;
  width: 100%;
  max-width: var(--auth-content-max-width);
}

body.auth-page .otp-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  height: auto;
  background: rgba(15, 23, 42, 0.42);
  border: 2px solid rgba(255, 255, 255, 0.24);
  min-height: 54px;
  border-radius: 14px;
  text-align: center;
  font-size: clamp(1.35rem, 4vw, 1.75rem);
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #f8fafc;
  transition: all 0.2s ease;
  outline: none;
}

body.auth-page .otp-box:focus {
  background: rgba(15, 23, 42, 0.54);
  border-color: rgba(219, 234, 254, 0.76);
  box-shadow:
    0 0 0 4px rgba(147, 197, 253, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

body.auth-page .otp-error-feedback {
  width: 100%;
  max-width: var(--auth-content-max-width);
  margin: 0 auto 1rem;
  text-align: center;
}

body.auth-page .resend-link {
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  max-width: var(--auth-content-max-width);
  margin: 0 auto 0.9rem;
}

body.auth-page .resend-link a {
  color: var(--primary-color);
  font-size: 0.875rem;
  text-decoration: none;
  transition: color 0.2s;
  width: 100%;
}

body.auth-page .otp-timer-pill,
body.auth-page .otp-resend-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 42px;
  width: 100%;
  max-width: 100%;
  padding: 0.42rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.045)), rgba(15, 23, 42, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.16);
  color: rgba(226, 232, 240, 0.9);
  font-size: 0.86rem;
  line-height: 1.15;
  text-decoration: none;
  backdrop-filter: blur(4px) saturate(120%);
  -webkit-backdrop-filter: blur(4px) saturate(120%);
}

body.auth-page .otp-resend-pill {
  display: none;
  color: #e0f2fe;
  font-weight: 700;
  transition:
    border-color 0.2s ease,
    background-color 0.2s ease,
    transform 0.2s ease;
}

body.auth-page .otp-resend-pill:hover {
  color: #f8fafc;
  border-color: rgba(219, 234, 254, 0.38);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)), rgba(15, 23, 42, 0.26);
  transform: translateY(-1px);
}

body.auth-page .otp-timer-icon,
body.auth-page .otp-resend-icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 30px;
  border-radius: 15%;
  color: #dbeafe;
  background: rgba(255, 255, 255, 0.095);
}

body.auth-page .otp-timer-copy {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  min-width: 0;
}

body.auth-page .otp-timer-label {
  color: rgba(226, 232, 240, 0.72);
  font-weight: 600;
}

body.auth-page .otp-timer-value {
  color: #f8fafc;
  font-weight: 700;
  white-space: nowrap;
}

body.auth-page .otp-timer-value strong {
  font-family: 'JetBrains Mono', monospace;
}

body.auth-page .alert-debug {
  background: rgba(209, 250, 228, 0.9);
  border: 1px solid rgba(209, 250, 228, 0.9);
  border-radius: 14px;
  padding: 1rem;
  width: 100%;
  max-width: var(--auth-content-max-width);
  margin: 0 auto 1.5rem;
  text-align: center;
}

body.auth-page .alert-debug .label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #92400e;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

body.auth-page .alert-debug .code {
  font-size: 15px;
  font-weight: 700;
  font-family: 'JetBrains Mono', monospace;
  color: #0e172a;
  margin-top: 0.25rem;
  display: block;
}

.auth-slider-shell .back-link {
  margin-top: 1rem;
}

body.auth-page .back-link-anchor {
  color: #dbeafe;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 700;
}

body.auth-page .alert.alert-success,
body.auth-page .alert.alert-danger,
body.auth-page .alert.alert-warning,
body.auth-page .alert.alert-info,
body.language-page .alert.alert-success,
body.language-page .alert.alert-danger,
body.language-page .alert.alert-warning,
body.language-page .alert.alert-info {
  position: fixed !important;
  top: 1rem;
  right: auto !important;
  left: 50% !important;
  width: calc(100% - 2.5rem);
  min-width: 0;
  max-width: 520px;
  margin: 0;
  padding: 1rem 3rem 1rem 1rem;
  line-height: 1.5;
  text-align: left;
  transform: translateX(-50%);
  animation: authAlertIn 0.24s ease;
}

@keyframes authAlertIn {
  from {
    opacity: 0;
    transform: translate(-50%, -0.6rem);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ==================== LANGUAGE PAGE ==================== */
body.language-page {
  margin: 0 !important;
  padding: 0 !important;
  height: 100vh !important;
  height: 100dvh !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
}

body.language-page main {
  flex: 1 1 auto;
  min-height: 0;
}

body.language-page main > .container-fluid {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

body.language-page .lang-page-container {
  display: flex;
  flex: 1 1 auto;
  justify-content: center;
  align-items: center;
  height: 100%;
  min-height: 0;
  width: 100%;
  background: rgba(15, 23, 42, 0.34);
  padding: 2rem;
  overflow-y: auto;
  position: relative;
  z-index: 1;
}

body.language-page .lang-card {
  --lang-card-max-width: 520px;
  --lang-content-max-width: 420px;
  --lang-card-padding: 1.25rem 1rem;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.36)), rgba(255, 255, 255, 0.025);
  backdrop-filter: blur(4px) saturate(120%) contrast(104%);
  -webkit-backdrop-filter: blur(4px) saturate(120%) contrast(104%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  padding: 0;
  width: 100%;
  max-width: var(--lang-card-max-width);
  text-align: center;
  color: #ffffff;
  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    inset 0 -1px 0 rgba(255, 255, 255, 0.04);
  animation: fadeInUp 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

body.language-page .lang-card-inner {
  width: 100%;
  padding: var(--lang-card-padding);
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.language-page .lang-header {
  width: 100%;
  max-width: var(--lang-content-max-width);
  margin: 0 auto 1.15rem;
}

body.language-page .lang-select-title {
  color: #f8fafc;
  font-size: clamp(1rem, 2vw, 1.18rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  margin: -0.1rem auto 1rem;
  text-shadow:
    0 2px 10px rgba(96, 165, 250, 0.28),
    0 1px 2px rgba(0, 0, 0, 0.32);
}

body.language-page .lang-select-title::after {
  content: '';
  display: block;
  width: 48px;
  height: 2px;
  margin: 0.5rem auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #60a5fa, #22d3ee);
  box-shadow: 0 0 16px rgba(34, 211, 238, 0.3);
}

body.language-page .lang-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  letter-spacing: 0;
  color: #f8fafc;
}

body.language-page .lang-header p {
  color: rgba(226, 232, 240, 0.86);
  font-size: 0.95rem;
  margin-bottom: 0;
}

body.language-page .lang-grid {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: var(--lang-content-max-width);
  gap: 0.9rem;
  margin: 0 auto;
}

body.language-page .lang-item-btn {
  display: flex;
  align-items: center;
  min-height: 52px;
  padding: 0.65rem 1rem;
  background: rgba(15, 23, 42, 0.34);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  text-decoration: none;
  color: #f8fafc;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

body.language-page .lang-item-btn:hover {
  background: rgba(15, 23, 42, 0.48);
  border-color: rgba(219, 234, 254, 0.42);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  color: #f8fafc;
}

body.language-page .lang-item-btn.is-selected {
  background: rgba(37, 99, 235, 0.24);
  border-color: rgba(147, 197, 253, 0.7);
  box-shadow:
    0 10px 28px rgba(37, 99, 235, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.language-page .lang-item-btn.is-selected:hover {
  background: rgba(37, 99, 235, 0.3);
  border-color: rgba(191, 219, 254, 0.82);
}

body.language-page .lang-flag-wrapper {
  width: 32px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1.25rem;
}

body.language-page .lang-flag-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

body.language-page .lang-flag-emoji {
  font-size: 1.5rem;
}

body.language-page .lang-name {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
}

body.language-page .lang-selected-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  min-height: 26px;
  margin-left: auto;
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(191, 219, 254, 0.48);
  border-radius: 8px;
  background: rgba(219, 234, 254, 0.16);
  color: #dbeafe;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

body.language-page .lang-footer {
  width: 100%;
  max-width: var(--lang-content-max-width);
  margin: 1.35rem auto 0;
}

body.language-page .lang-footer p {
  color: rgba(203, 213, 225, 0.62);
  font-size: 0.8rem;
  margin: 0;
}

/* ==================== AUTH RESPONSIVE ==================== */
@media (max-width: 576px) {
  html {
    min-height: 100%;
  }

  body.auth-page,
  body.language-page {
    --auth-logo-max-width: 190px;
    --auth-logo-max-height: 104px;
    --auth-logo-margin-bottom: 0.95rem;
    min-height: 100dvh;
  }

  body.language-page {
    height: 100dvh !important;
  }

  .auth-slider-shell {
    width: 100%;
    min-height: 100dvh;
    background: rgba(15, 23, 42, 0.34);
  }

  .auth-login-single {
    align-items: stretch;
    justify-content: stretch;
    min-height: 100dvh;
    overflow-y: auto;
  }

  .auth-slider-shell .right-panel {
    flex: 1 1 auto;
    align-items: stretch;
    justify-content: stretch;
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    padding: 0;
  }

  .auth-slider-shell .form-container {
    --auth-form-container-margin: 0;
    --auth-form-container-padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem
      max(1.5rem, env(safe-area-inset-bottom));
    --auth-content-max-width: 328px;
    --auth-card-padding: 1.45rem 1.05rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: none;
    min-height: 100dvh;
    border: 0;
    border-radius: 0;
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.58), rgba(15, 23, 42, 0.48)), rgba(255, 255, 255, 0.02);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(2px) saturate(112%);
    -webkit-backdrop-filter: blur(2px) saturate(112%);
    overflow-y: auto;
  }

  .auth-slider-shell .login-mobile-card,
  .auth-slider-shell .otp-verification-card {
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 0;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.46), rgba(15, 23, 42, 0.3)), rgba(255, 255, 255, 0.035);
    box-shadow:
      0 22px 58px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px) saturate(120%) contrast(104%);
    -webkit-backdrop-filter: blur(4px) saturate(120%) contrast(104%);
  }

  .auth-slider-shell .form-header {
    max-width: min(100%, var(--auth-content-max-width));
    margin-bottom: 1.1rem;
  }

  .auth-slider-shell .form-header h2,
  body.language-page .lang-header h3 {
    font-size: clamp(1.45rem, 7vw, 1.8rem);
    margin-bottom: 0.5rem;
  }

  body.language-page .lang-select-title {
    font-size: 1rem;
    margin-bottom: 0.9rem;
  }

  body.language-page .lang-select-title::after {
    width: 44px;
    height: 2px;
    margin-top: 0.45rem;
  }

  .auth-slider-shell .form-header p,
  body.language-page .lang-header p {
    max-width: none;
    margin-right: auto;
    margin-left: auto;
    font-size: 0.92rem;
    line-height: 1.45;
  }

  .auth-slider-shell form {
    width: 100%;
    max-width: min(100%, var(--auth-content-max-width));
    margin-right: auto;
    margin-left: auto;
  }

  .auth-slider-shell .iti,
  .auth-slider-shell .form-control {
    width: 100%;
  }

  .auth-slider-shell .form-control {
    min-height: 52px;
    border-radius: 8px;
    font-size: 1rem;
  }

  .auth-slider-shell .iti__selected-flag {
    border-radius: 8px 0 0 8px;
  }

  .auth-slider-shell .form-check {
    margin-bottom: 1rem !important;
    padding-left: 1.8rem;
  }

  .auth-slider-shell .form-check-input {
    width: 1.15rem;
    height: 1.15rem;
    margin-left: -1.8rem;
  }

  .auth-slider-shell .form-check-label {
    font-size: 0.88rem !important;
    line-height: 1.45 !important;
  }

  body.auth-page .otp-boxes {
    max-width: min(100%, var(--auth-content-max-width));
    gap: clamp(0.32rem, 1.8vw, 0.38rem);
    margin-bottom: 0.5rem;
  }

  body.auth-page .otp-box {
    aspect-ratio: auto;
    height: clamp(46px, 12.5vw, 48px);
    min-height: 0;
    border-radius: 8px;
    font-size: clamp(1.15rem, 6.2vw, 1.45rem);
  }

  body.auth-page .otp-error-feedback {
    max-width: var(--auth-content-max-width);
    margin: 0.45rem auto 1.1rem;
    text-align: left;
  }

  body.auth-page .alert-debug {
    max-width: min(100%, var(--auth-content-max-width));
    border-radius: 8px;
  }

  body.auth-page .otp-timer-pill,
  body.auth-page .otp-resend-pill {
    min-height: 40px;
    padding: 0.38rem 0.8rem;
    gap: 0.5rem;
    border-color: rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    font-size: 0.8rem;
  }

  body.auth-page .otp-timer-icon,
  body.auth-page .otp-resend-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
  }

  body.auth-page .otp-timer-copy {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.12rem;
  }

  body.auth-page .resend-link {
    max-width: min(100%, var(--auth-content-max-width));
    margin-bottom: 1.1rem !important;
  }

  .auth-slider-shell .sm-btn {
    max-width: min(100%, var(--auth-content-max-width));
    min-height: 52px !important;
    padding: 0.85rem 1rem !important;
    border-radius: 8px !important;
    font-size: 0.95rem !important;
  }

  .auth-slider-shell .back-link {
    margin-top: 1.15rem !important;
  }

  .auth-slider-shell .back-link p {
    margin-bottom: 0;
    font-size: 0.78rem !important;
    line-height: 1.4;
  }

  .auth-slider-shell .auth-footer {
    max-width: var(--auth-content-max-width);
    margin-right: auto;
    margin-left: auto;
  }

  .auth-slider-shell .auth-footer p,
  body.language-page .lang-footer p {
    font-size: 0.76rem;
    line-height: 1.4;
  }

  body.auth-page #termsModal .modal-dialog {
    max-width: none;
    height: calc(100dvh - 1rem);
    margin: 0.5rem;
  }

  body.auth-page #termsModal .modal-content {
    max-height: 100%;
    border-radius: 16px;
  }

  body.auth-page #termsModal .modal-body {
    padding: 1rem !important;
    font-size: 0.9rem !important;
  }

  body.auth-page #termsModal .modal-title {
    font-size: 0.98rem !important;
    line-height: 1.35;
  }

  body.language-page .lang-page-container {
    align-items: stretch;
    width: 100%;
    min-height: 0;
    padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.5rem, env(safe-area-inset-bottom));
    background: rgba(15, 23, 42, 0.34);
    overflow-y: auto;
  }

  body.language-page .lang-card {
    --lang-content-max-width: 328px;
    --lang-card-padding: 1.45rem 1.05rem 1.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: 100%;
    max-width: 390px;
    min-height: auto;
    margin: auto;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.46), rgba(15, 23, 42, 0.3)), rgba(255, 255, 255, 0.035);
    box-shadow:
      0 22px 58px rgba(0, 0, 0, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.12),
      inset 0 -1px 0 rgba(255, 255, 255, 0.04);
    backdrop-filter: blur(4px) saturate(120%) contrast(104%);
    -webkit-backdrop-filter: blur(4px) saturate(120%) contrast(104%);
  }

  body.language-page .lang-header {
    max-width: min(100%, var(--lang-content-max-width));
    margin-bottom: 1.1rem;
  }

  body.language-page .lang-grid {
    max-width: min(100%, var(--lang-content-max-width));
    gap: 0.85rem;
  }

  body.language-page .lang-item-btn {
    min-height: 54px;
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 8px;
  }

  body.language-page .lang-flag-wrapper {
    margin-right: 1rem;
  }

  body.language-page .lang-name {
    font-size: 1rem;
  }

  body.language-page .lang-selected-badge {
    min-width: 52px;
    min-height: 24px;
    padding: 0.18rem 0.45rem;
    font-size: 0.7rem;
  }

  body.language-page .lang-footer {
    max-width: var(--lang-content-max-width);
  }
}

@media (max-width: 576px) and (max-height: 700px) {
  body.auth-page,
  body.language-page {
    --auth-logo-max-width: 168px;
    --auth-logo-max-height: 88px;
    --auth-logo-margin-bottom: 0.7rem;
  }

  .auth-slider-shell .form-container {
    --auth-form-container-padding: max(0.9rem, env(safe-area-inset-top)) 1.25rem max(1rem, env(safe-area-inset-bottom));
    --auth-content-max-width: 320px;
    --auth-card-padding: 1.2rem 1.05rem 1.05rem;
    justify-content: flex-start;
  }

  .auth-slider-shell .form-header {
    max-width: min(100%, var(--auth-content-max-width));
    margin-bottom: 0.85rem;
  }

  body.language-page .lang-header {
    max-width: min(100%, var(--lang-content-max-width));
    margin-bottom: 0.85rem;
  }

  body.language-page .lang-select-title {
    font-size: 0.95rem;
    margin-bottom: 0.7rem;
  }

  body.language-page .lang-select-title::after {
    margin-top: 0.45rem;
  }

  .auth-slider-shell .form-header h2,
  body.language-page .lang-header h3 {
    font-size: 1.35rem;
  }

  body.language-page .lang-header p {
    font-size: 0.86rem;
  }

  body.auth-page .otp-boxes {
    gap: 0.3rem;
    max-width: min(100%, var(--auth-content-max-width));
    margin-bottom: 0.45rem;
  }

  body.auth-page .resend-link {
    margin-bottom: 0.9rem !important;
  }

  body.auth-page .resend-link,
  body.auth-page .alert-debug,
  .auth-slider-shell .sm-btn {
    max-width: min(100%, var(--auth-content-max-width));
  }

  .auth-slider-shell .back-link {
    margin-top: 1rem !important;
  }

  body.language-page .lang-page-container {
    padding-top: max(0.9rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  body.language-page .lang-card {
    --lang-content-max-width: 320px;
    --lang-card-padding: 1.2rem 1.05rem 1.05rem;
    justify-content: flex-start;
    margin: 0 auto;
  }

  body.language-page .lang-grid {
    gap: 0.65rem;
    max-width: min(100%, var(--lang-content-max-width));
  }

  body.language-page .lang-item-btn {
    min-height: 48px;
    padding: 0.7rem 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.language-page .lang-card {
    animation: none;
    transition: none;
  }
}
