body.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 24px;
}

.auth-glow {
  position: fixed;
  top: -200px;
  left: -200px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 27, 105, 0.6) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: rgba(22, 27, 39, 0.9);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(124, 58, 237, 0.2);
  border-radius: 20px;
  padding: 40px;
  animation: fadeInUp 0.4s ease;
}

.auth-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.auth-logo-img {
  height: 42px;
  width: auto;
  display: block;
}

.auth-title {
  text-align: center;
  font-size: 24px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.auth-subtitle {
  text-align: center;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 28px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
}

.strength-bar-wrap {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.strength-segment {
  height: 4px;
  flex: 1;
  border-radius: 100px;
  background: rgba(255, 255, 255, 0.08);
  transition: background 0.3s ease;
}

.strength-segment.filled-weak { background: var(--danger); }
.strength-segment.filled-fair { background: var(--warning); }
.strength-segment.filled-good { background: #EAB308; }
.strength-segment.filled-strong { background: var(--success); }

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-muted);
  font-size: 12px;
  margin: 20px 0;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.auth-footer-link {
  text-align: center;
  margin-top: 20px;
  font-size: 14px;
  color: var(--text-secondary);
}

.auth-footer-link a {
  color: var(--purple-light);
  font-weight: 600;
}

/* Phone row with fixed country prefix stays on ONE line on all viewports,
   never wraps the +966 above the input the way a plain flex-wrap:wrap parent could. */
.phone-row {
  display: flex;
  gap: 8px;
  flex-wrap: nowrap;
}

.phone-row .phone-prefix {
  flex: 0 0 auto;
  width: 76px;
  text-align: center;
  padding-left: 8px;
  padding-right: 8px;
}

.phone-row .phone-input {
  flex: 1 1 auto;
  min-width: 0;
}

/* Mobile-specific tightening for auth card */
@media (max-width: 480px) {
  body.auth-body {
    padding: 16px 12px;
  }
  .auth-card {
    padding: 24px 20px;
    border-radius: 16px;
  }
  .auth-title {
    font-size: 22px;
  }
  .auth-subtitle {
    font-size: 13px;
    margin-bottom: 20px;
  }
  .auth-logo-img {
    height: 34px;
  }
  /* Bigger, more obviously tappable primary/secondary buttons on phone */
  .auth-card .btn-primary-custom,
  .auth-card .btn-secondary-custom {
    padding: 12px 20px;
    font-size: 15px;
  }
}
