@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Cairo:wght@400;600;700;800&display=swap");

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary: #4a90d9;
  --primary-dark: #1e3a5f;
  --accent: #e8821a;
  --accent-glow: rgba(232, 130, 26, 0.34);
  --glass-bg: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --text-primary: #0f172a;
  --text-secondary: #64748b;
  --text-muted: #94a3b8;
  --input-border: #e2e8f0;
  --input-focus: #4a90d9;
  --danger: #ef4444;
  --success: #10b981;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 12px 30px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 24px 60px rgba(2, 8, 23, 0.16);
  --radius: 20px;
  --radius-sm: 14px;
  --feature-shift: 6px;
}

html {
  background: #080e1a;
}

body {
  min-height: 100vh;
  display: flex;
  background: #080e1a;
  color: var(--text-primary);
  font-family: "Inter", "Cairo", sans-serif;
  overflow-x: hidden;
}

html[dir="rtl"] body {
  font-family: "Cairo", "Inter", sans-serif;
}

.header-top-row {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: clamp(1.5rem, 3vh, 2.5rem) clamp(1.5rem, 4vw, 3.5rem);
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 10;
}

.page-topbar {
  position: fixed;
  top: 1.25rem;
  left: 1.5rem;
  right: 1.5rem;
  z-index: 30;
  display: flex;
  justify-content: flex-end;
  pointer-events: none;
}

.page-topbar > * {
  pointer-events: auto;
}

html[dir="rtl"] .page-topbar {
  justify-content: flex-start;
}

.left-panel,
.right-panel {
  position: relative;
}

.left-panel {
  flex: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2.5rem;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(74, 144, 217, 0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(232, 130, 26, 0.12) 0%, transparent 50%),
    linear-gradient(160deg, #0f1f3d 0%, #0a1628 40%, #070f20 100%);
  overflow: hidden;
  position: relative;
}

/* Animated glow orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  z-index: 0;
}

.glow-orb-1 {
  width: 400px;
  height: 400px;
  top: -10%;
  left: -5%;
  background: rgba(74, 144, 217, 0.15);
  animation: orbFloat1 14s ease-in-out infinite;
}

.glow-orb-2 {
  width: 350px;
  height: 350px;
  bottom: -8%;
  right: -5%;
  background: rgba(232, 130, 26, 0.12);
  animation: orbFloat2 18s ease-in-out infinite;
}

.glow-orb-3 {
  width: 200px;
  height: 200px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(139, 92, 246, 0.08);
  animation: orbFloat3 10s ease-in-out infinite;
}

.particles-canvas,
.grid-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.particles-canvas {
  z-index: 0;
}

.grid-overlay {
  z-index: 0;
  background-image:
    linear-gradient(rgba(74, 144, 217, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(74, 144, 217, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  animation: gridShift 20s linear infinite;
}

.showcase-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 540px;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

.brand-container {
  text-align: center;
  animation: fadeSlideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.brand-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto 1.25rem;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8821a 0%, #f59e0b 100%);
  box-shadow:
    0 10px 40px rgba(232, 130, 26, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.08);
  position: relative;
  animation: logoPulse 4s ease-in-out infinite;
}

.brand-logo::after {
  content: "";
  position: absolute;
  inset: -3px;
  border-radius: 23px;
  border: 2px solid transparent;
  background:
    linear-gradient(135deg, rgba(232, 130, 26, 0.5), transparent, rgba(74, 144, 217, 0.3))
    border-box;
  -webkit-mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) padding-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
}

.brand-title {
  font-size: clamp(2.2rem, 3.5vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 0.75rem;
  background: linear-gradient(to right, #ffffff, rgba(255, 255, 255, 0.75));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand-subtitle {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 28rem;
  margin: 0 auto;
}

/* Stats Row */
.stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 1.1rem 1.5rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeSlideUp 0.6s 0.12s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.stat-card {
  flex: 1;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.stat-number {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #60a5fa, #e8821a);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.stat-divider {
  width: 1px;
  height: 36px;
  background: linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.15), transparent);
  flex-shrink: 0;
}

/* Feature Cards Grid */
.feature-cards-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
  animation: fadeSlideUp 0.6s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.feature-card {
  padding: 1.25rem;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.2);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-card:nth-child(1) { animation-delay: 0.24s; }
.feature-card:nth-child(2) { animation-delay: 0.32s; }
.feature-card:nth-child(3) { animation-delay: 0.4s; }
.feature-card:nth-child(4) { animation-delay: 0.48s; }

.feature-card-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
  flex-shrink: 0;
}

.feature-card-icon.blue {
  background: rgba(74, 144, 217, 0.15);
  color: #60a5fa;
  box-shadow: 0 0 20px rgba(74, 144, 217, 0.1);
}

.feature-card-icon.orange {
  background: rgba(232, 130, 26, 0.15);
  color: #f59e0b;
  box-shadow: 0 0 20px rgba(232, 130, 26, 0.1);
}

.feature-card-icon.green {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.1);
}

.feature-card-icon.purple {
  background: rgba(139, 92, 246, 0.15);
  color: #a78bfa;
  box-shadow: 0 0 20px rgba(139, 92, 246, 0.1);
}

.feature-card-title {
  color: #fff;
  font-size: 0.92rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.feature-card-desc {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.78rem;
  line-height: 1.6;
}

/* Trust Badges */
.trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.65rem;
  animation: fadeSlideUp 0.6s 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(255, 255, 255, 0.65);
  font-size: 0.76rem;
  font-weight: 600;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.trust-badge svg {
  color: #60a5fa;
}

.trust-badge:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}

.right-panel {
  width: 600px;
  max-width: 100%;
  min-height: 100vh;
  padding: clamp(2.5rem, 5vh, 5.5rem) clamp(1.5rem, 4vw, 3.5rem) clamp(1.5rem, 4vh, 2.5rem);
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: start;
  box-shadow: 20px 0 60px rgba(0, 0, 0, 0.14);
  overflow-y: auto;
}

html[dir="rtl"] .right-panel {
  box-shadow: -20px 0 60px rgba(0, 0, 0, 0.14);
}

.right-panel::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  inset-inline-end: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--accent), var(--primary), transparent);
}

.language-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid rgba(74, 144, 217, 0.18);
  background: rgba(74, 144, 217, 0.08);
  color: var(--primary-dark);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  gap: 2px;
}

.top-language-button {
  min-width: 124px;
  padding: 0.82rem 1.1rem;
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(74, 144, 217, 0.2);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  animation: fadeSlideUp 0.55s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.language-button:hover {
  transform: translateY(-1px);
  background: rgba(74, 144, 217, 0.14);
  box-shadow: 0 8px 20px rgba(74, 144, 217, 0.12);
}

.login-header {
  margin-bottom: 2rem;
  animation: fadeSlideUp 0.6s 0.08s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: rgba(232, 130, 26, 0.1);
  color: #9a5a07;
  font-size: 0.78rem;
  font-weight: 700;
}

.login-header h2 {
  font-size: clamp(1.9rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  margin-bottom: 0.75rem;
}

.login-header p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.8;
}

.login-form {
  animation: fadeSlideUp 0.6s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.form-group {
  margin-bottom: 1.35rem;
}

.form-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-bottom: 0.6rem;
  color: var(--text-primary);
  font-size: 0.84rem;
  font-weight: 700;
}

.form-label svg {
  color: var(--text-muted);
}

.input-wrapper {
  position: relative;
}

.input-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  transition: color 0.25s ease;
  z-index: 1;
}

html[dir="rtl"] .input-icon {
  left: auto;
  right: 16px;
}

.form-control {
  width: 100%;
  min-height: 54px;
  padding: 0.9rem 16px 0.9rem 48px;
  border: 2px solid var(--input-border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.96rem;
  outline: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

html[dir="rtl"] .form-control {
  padding: 0.9rem 48px 0.9rem 16px;
  text-align: right;
}

.form-control::placeholder {
  color: #b0bec5;
}

.form-control:hover {
  border-color: #cbd5e1;
  background: #ffffff;
}

.form-control:focus {
  border-color: var(--input-focus);
  background: #ffffff;
  box-shadow:
    0 0 0 4px rgba(74, 144, 217, 0.1),
    var(--shadow-sm);
}

.input-wrapper:focus-within .input-icon {
  color: var(--primary);
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
  border: none;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s ease;
}

html[dir="rtl"] .password-toggle {
  right: auto;
  left: 14px;
}

.password-toggle svg {
  display: block;
}

.password-toggle:hover {
  color: var(--text-secondary);
}

.password-wrapper .form-control {
  padding-left: 48px;
  padding-right: 52px;
}

html[dir="rtl"] .password-wrapper .form-control {
  padding-left: 52px;
  padding-right: 48px;
  text-align: right;
}

.remember-row {
  margin: -0.25rem 0 1.25rem;
}

.remember-option {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text-secondary);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  user-select: none;
}

.remember-checkbox {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.remember-box {
  width: 21px;
  height: 21px;
  border: 2px solid var(--input-border);
  border-radius: 7px;
  background: #ffffff;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.remember-box svg {
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.remember-option:hover .remember-box {
  border-color: var(--primary);
}

.remember-checkbox:checked ~ .remember-box {
  border-color: var(--primary);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  box-shadow: 0 5px 14px rgba(74, 144, 217, 0.22);
}

.remember-checkbox:checked ~ .remember-box svg {
  opacity: 1;
  transform: scale(1);
}

.remember-checkbox:focus-visible ~ .remember-box {
  box-shadow: 0 0 0 4px rgba(74, 144, 217, 0.12);
}

.btn-login {
  width: 100%;
  min-height: 56px;
  margin-top: 0.45rem;
  padding: 0.95rem 1.1rem;
  border: none;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  background: linear-gradient(135deg, #1e3a5f 0%, #2a5f9e 50%, #1e3a5f 100%);
  background-size: 200% 200%;
  color: #ffffff;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(30, 58, 95, 0.24);
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background-position 0.25s ease;
}

.btn-login::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 0%, rgba(255, 255, 255, 0.12) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s ease;
}

.btn-login:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(30, 58, 95, 0.3);
  background-position: 100% 0;
}

.btn-login:hover::before {
  transform: translateX(100%);
}

.btn-login:active {
  transform: translateY(0) scale(0.985);
}

.btn-arrow {
  transition: transform 0.25s ease;
}

.btn-login:hover .btn-arrow {
  transform: translateX(3px);
}

html[dir="rtl"] .btn-arrow {
  transform: scaleX(-1);
}

html[dir="rtl"] .btn-login:hover .btn-arrow {
  transform: scaleX(-1) translateX(-3px);
}

.divider {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 1.25rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.divider::before,
.divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, #e2e8f0, transparent);
}

.btn-secondary-action {
  width: 100%;
  min-height: 52px;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 2px solid #e2e8f0;
  background: #ffffff;
  color: var(--primary-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 700;
  transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.btn-secondary-action:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  color: var(--primary);
  background: #f8fbff;
  box-shadow: var(--shadow-sm);
}

.error-box,
.success-box {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.95rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
}

.error-box {
  margin-bottom: 1.35rem;
  color: var(--danger);
  border: 1px solid #fecaca;
  background: linear-gradient(135deg, #fef2f2, #fff1f2);
  animation: shakeError 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.error-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: rgba(239, 68, 68, 0.1);
}

.success-box {
  margin-top: 1rem;
  color: #065f46;
  border: 1px solid #a7f3d0;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  animation: fadeSlideUp 0.45s ease both;
}

.login-footer {
  margin-top: 2rem;
  padding-top: 1.4rem;
  border-top: 1px solid #eef2f7;
  animation: fadeSlideUp 0.6s 0.24s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.footer-version {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.45rem;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 600;
}

.footer-hint {
  display: block;
  margin-top: 0.6rem;
  color: var(--text-muted);
  font-size: 0.8rem;
  line-height: 1.7;
}

.footer-seed {
  display: inline-block;
  margin-top: 0.8rem;
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
  opacity: 0.82;
}

.footer-seed:hover {
  color: var(--primary);
  opacity: 1;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, 30px) scale(1.1); }
  66% { transform: translate(-20px, 50px) scale(0.95); }
}

@keyframes orbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-35px, -45px) scale(1.12); }
  66% { transform: translate(25px, -20px) scale(0.9); }
}

@keyframes orbFloat3 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); opacity: 0.6; }
  50% { transform: translate(-50%, -50%) scale(1.3); opacity: 1; }
}

@keyframes gridShift {
  0% { background-position: 0 0; }
  100% { background-position: 60px 60px; }
}

@keyframes logoPulse {
  0%,
  100% {
    box-shadow:
      0 10px 34px rgba(232, 130, 26, 0.28),
      0 0 0 1px rgba(255, 255, 255, 0.1);
  }
  50% {
    box-shadow:
      0 10px 42px rgba(232, 130, 26, 0.42),
      0 0 0 1px rgba(255, 255, 255, 0.14);
  }
}

@keyframes fadeSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes shakeError {
  10%,
  90% {
    transform: translateX(-1px);
  }
  20%,
  80% {
    transform: translateX(2px);
  }
  30%,
  50%,
  70% {
    transform: translateX(-3px);
  }
  40%,
  60% {
    transform: translateX(3px);
  }
}

@media (max-width: 1100px) {
  body {
    flex-direction: column !important;
    background: linear-gradient(180deg, #0d172b 0%, #f8fbff 45%, #ffffff 100%);
  }

  .right-panel,
  .left-panel {
    width: 100%;
    min-height: auto;
  }

  .right-panel {
    order: 1;
    padding: 5rem 1.5rem 2rem;
    box-shadow: none;
  }

  .right-panel::before {
    display: none;
  }

  .left-panel {
    order: 2;
    padding: 2.5rem 1.5rem 3rem;
  }

  .showcase-inner {
    max-width: none;
  }

  .feature-cards-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .page-topbar {
    top: 0.9rem;
    left: 1rem;
    right: 1rem;
  }

  .left-panel,
  .right-panel {
    padding-inline: 1rem;
  }

  .top-language-button {
    width: auto;
    min-width: 116px;
  }

  .right-panel {
    padding-top: 4.8rem;
  }

  .brand-title {
    font-size: 2.1rem;
  }

  .login-header h2 {
    font-size: 1.7rem;
  }

  .feature-cards-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }

  .stat-divider {
    width: 60%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.15), transparent);
  }

  .trust-badges {
    justify-content: center;
  }
}
