/* ==========================================================================
   🔐 Authentication Pages — Login & Register
   Modern, beautiful, glassmorphism auth UI
   ========================================================================== */

/* ── Auth page layout ── */
.auth-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  position: relative;
  overflow: hidden;
}

/* ── Auth container grid: illustration + form ── */
.auth-container {
  display: flex;
  max-width: 1200px;
  width: 100%;
  border-radius: var(--radius-xl, 24px);
  overflow: hidden;
  box-shadow: var(--shadow-xl, 0 20px 60px rgba(0,0,0,0.15));
  background: var(--auth-card-bg, #ffffff);
  position: relative;
  z-index: 2;
  animation: authContainerIn 0.6s ease-out;
}

@keyframes authContainerIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ── Auth illustration / branding panel (left side) ── */
.auth-illustration {
  flex: 0 0 380px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 2rem;
  text-align: center;
  color: #fff;
  position: relative;
  overflow: hidden;
}

.auth-illustration::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 80%, rgba(255,255,255,0.12) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.08) 0%, transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 0%, transparent 60%);
  pointer-events: none;
}

/* African-inspired decorative shapes on illustration */
.auth-illustration::after {
  content: '';
  position: absolute;
  width: 300px;
  height: 300px;
  background: rgba(255,255,255,0.04);
  border-radius: 50%;
  bottom: -100px;
  right: -100px;
  pointer-events: none;
}

.auth-illustration .auth-logo-icon {
  width: 90px;
  height: 90px;
  background: rgba(255,255,255,0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.8rem;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(4px);
  border: 2px solid rgba(255,255,255,0.25);
  position: relative;
  z-index: 1;
  animation: authLogoPulse 3s ease-in-out infinite;
}

@keyframes authLogoPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0.3); }
  50% { box-shadow: 0 0 0 15px rgba(255,255,255,0); }
}

.auth-illustration h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.auth-illustration p {
  opacity: 0.85;
  font-size: 0.95rem;
  max-width: 260px;
  line-height: 1.6;
  position: relative;
  z-index: 1;
}

/* African decorative pattern dots */
.auth-illustration .auth-pattern-dots {
  display: flex;
  gap: 8px;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.auth-illustration .auth-pattern-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.3);
  animation: authDotBounce 1.5s ease-in-out infinite;
}

.auth-illustration .auth-pattern-dots span:nth-child(2) { animation-delay: 0.2s; }
.auth-illustration .auth-pattern-dots span:nth-child(3) { animation-delay: 0.4s; }
.auth-illustration .auth-pattern-dots span:nth-child(4) { animation-delay: 0.6s; }
.auth-illustration .auth-pattern-dots span:nth-child(5) { animation-delay: 0.8s; }

@keyframes authDotBounce {
  0%, 100% { transform: translateY(0); opacity: 0.3; }
  50% { transform: translateY(-8px); opacity: 0.8; }
}

/* ── Auth form panel (right side) ── */
.auth-form-panel {
  flex: 1;
  padding: 2.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--auth-card-bg, #ffffff);
}

/* ── Compact login panel ── */
.auth-form-panel.login-panel {
  padding: 1.75rem 2rem;
}
.auth-form-panel.login-panel .auth-form-header {
  margin-bottom: 1.25rem;
}
.auth-form-panel.login-panel .auth-form-header h3 {
  font-size: 1.35rem;
}
.auth-form-panel.login-panel .auth-form-header p {
  font-size: 0.82rem;
}
.auth-form-panel.login-panel .auth-field-group {
  margin-bottom: 0.9rem;
}
.auth-form-panel.login-panel .auth-submit-btn {
  margin-top: 0.25rem;
  padding: 0.7rem;
}
.auth-form-panel.login-panel .auth-extra {
  margin-bottom: 0.5rem;
}
.auth-form-panel.login-panel .auth-footer {
  margin-top: 1rem;
  padding-top: 0.9rem;
}

.auth-form-panel .auth-form-header {
  margin-bottom: 1.75rem;
}

.auth-form-panel .auth-form-header h3 {
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
  color: var(--text-primary, #1a1a2e);
}

.auth-form-panel .auth-form-header p {
  color: var(--text-secondary, #6c757d);
  font-size: 0.9rem;
}

/* ── Form field groups ── */
.auth-form-panel .auth-field-group {
  margin-bottom: 1.25rem;
}

.auth-form-panel .auth-field-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
  color: var(--text-primary, #1a1a2e);
}

.auth-form-panel .auth-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.auth-form-panel .auth-input-wrapper .auth-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary, #adb5bd);
  font-size: 1rem;
  z-index: 3;
  pointer-events: none;
  transition: color 0.3s ease;
}

.auth-form-panel .auth-input-wrapper:focus-within .auth-input-icon {
  color: var(--primary, #007bff);
}

.auth-form-panel .auth-input-wrapper input,
.auth-form-panel .auth-input-wrapper select {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.6rem;
  border: 2px solid var(--auth-input-border, #e0e0e0);
  border-radius: var(--radius-md, 12px);
  font-size: 0.9rem;
  font-family: var(--font-primary, 'Poppins', sans-serif);
  transition: all 0.3s ease;
  background: var(--auth-input-bg, #f8f9fa);
  color: var(--text-primary, #1a1a2e);
  outline: none;
}

.auth-form-panel .auth-input-wrapper input:focus,
.auth-form-panel .auth-input-wrapper select:focus {
  border-color: var(--primary, #007bff);
  box-shadow: 0 0 0 4px var(--primary-light, rgba(0,123,255,0.1));
  background: var(--auth-input-focus-bg, #ffffff);
}

.auth-form-panel .auth-input-wrapper select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%236c757d' d='M4.646 6.354a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 1 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 14px;
  padding-right: 2.5rem;
}

.auth-form-panel .auth-input-wrapper select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23007bff' d='M4.646 6.354a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 1 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

/* ── Password toggle ── */
.auth-form-panel .auth-password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--text-secondary, #adb5bd);
  cursor: pointer;
  padding: 4px;
  font-size: 1.1rem;
  z-index: 3;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-form-panel .auth-password-toggle:hover {
  color: var(--text-primary, #1a1a2e);
}

/* ── Password strength meter ── */
.auth-password-strength {
  margin-top: 0.5rem;
}

.auth-password-strength .strength-bar {
  height: 4px;
  border-radius: 4px;
  background: #e0e0e0;
  overflow: hidden;
  margin-bottom: 0.25rem;
}

.auth-password-strength .strength-bar-inner {
  height: 100%;
  border-radius: 4px;
  width: 0%;
  transition: width 0.4s ease, background 0.4s ease;
}

.auth-password-strength .strength-bar-inner.weak {
  width: 25%;
  background: #dc3545;
}

.auth-password-strength .strength-bar-inner.medium {
  width: 50%;
  background: #ffc107;
}

.auth-password-strength .strength-bar-inner.strong {
  width: 75%;
  background: #28a745;
}

.auth-password-strength .strength-bar-inner.very-strong {
  width: 100%;
  background: #20c997;
}

.auth-password-strength .strength-text {
  font-size: 0.75rem;
  color: var(--text-secondary, #6c757d);
}

/* ── Two-column row for forms ── */
.auth-form-panel .auth-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 0;
}

.auth-form-panel .auth-row .auth-field-group {
  flex: 1;
}

/* ── Avatar picker (register) ── */
.auth-avatar-section {
  margin-bottom: 1.5rem;
}

.auth-avatar-section .auth-avatar-label {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.6rem;
  display: block;
  color: var(--text-primary, #1a1a2e);
}

.auth-avatar-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.auth-avatar-grid .auth-avatar-choice {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
}

.auth-avatar-grid .auth-avatar-choice input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.auth-avatar-grid .auth-avatar-choice .auth-avatar-img-wrap {
  display: block;
  line-height: 0;
}

.auth-avatar-grid .auth-avatar-choice .auth-avatar-img-wrap img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid transparent;
  transition: all 0.3s ease;
  padding: 2px;
}

.auth-avatar-grid .auth-avatar-choice input[type="radio"]:checked + .auth-avatar-img-wrap img {
  border-color: var(--primary, #007bff);
  box-shadow: 0 0 0 3px rgba(0,123,255,0.2);
  transform: scale(1.1);
}

.auth-avatar-grid .auth-avatar-choice:hover .auth-avatar-img-wrap img {
  transform: scale(1.08);
  border-color: rgba(0,123,255,0.3);
}

/* ── Auth submit button ── */
.auth-form-panel .auth-submit-btn {
  width: 100%;
  padding: 0.85rem;
  border: none;
  border-radius: var(--radius-md, 12px);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.auth-form-panel .auth-submit-btn.btn-primary {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.35);
}

.auth-form-panel .auth-submit-btn.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(102, 126, 234, 0.45);
}

.auth-form-panel .auth-submit-btn.btn-primary:active {
  transform: translateY(0);
}

.auth-form-panel .auth-submit-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none !important;
}

.auth-form-panel .auth-submit-btn .btn-loading {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: authBtnSpin 0.6s linear infinite;
}

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

.auth-form-panel .auth-submit-btn.loading .btn-text {
  visibility: hidden;
}

.auth-form-panel .auth-submit-btn.loading .btn-loading {
  display: block;
  position: absolute;
}

/* ── Auth footer / links ── */
.auth-form-panel .auth-footer {
  text-align: center;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--auth-divider, #e0e0e0);
}

.auth-form-panel .auth-footer p {
  font-size: 0.88rem;
  color: var(--text-secondary, #6c757d);
  margin-bottom: 0;
}

.auth-form-panel .auth-footer a {
  color: var(--primary, #667eea);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.auth-form-panel .auth-footer a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ── Field info / help text ── */
.auth-field-info {
  font-size: 0.78rem;
  color: var(--text-secondary, #6c757d);
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── Auth error / alert styling ── */
.auth-form-panel .auth-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.8rem 1rem;
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 1.25rem;
  font-size: 0.85rem;
  line-height: 1.5;
  animation: authAlertSlide 0.4s ease-out;
}

@keyframes authAlertSlide {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-form-panel .auth-alert-danger {
  background: rgba(220, 53, 69, 0.08);
  border: 1px solid rgba(220, 53, 69, 0.2);
  color: #dc3545;
}

.auth-form-panel .auth-alert-danger i {
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.auth-form-panel .auth-alert-danger ul {
  margin: 0;
  padding-left: 0.5rem;
  list-style: none;
}

.auth-form-panel .auth-alert-danger ul li {
  margin-bottom: 0.25rem;
}

.auth-form-panel .auth-alert-danger ul li:last-child {
  margin-bottom: 0;
}

.auth-form-panel .auth-field-error {
  color: #dc3545;
  font-size: 0.78rem;
  margin-top: 0.3rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

/* ── Field input error state ── */
.auth-form-panel .auth-input-wrapper.has-error input,
.auth-form-panel .auth-input-wrapper.has-error select {
  border-color: #dc3545;
  box-shadow: 0 0 0 4px rgba(220, 53, 69, 0.08);
}

.auth-form-panel .auth-input-wrapper.has-error .auth-input-icon {
  color: #dc3545;
}

/* ── Success message ── */
.auth-form-panel .auth-alert-success {
  background: rgba(40, 167, 69, 0.08);
  border: 1px solid rgba(40, 167, 69, 0.2);
  color: #28a745;
}

/* ── Remember me / extras ── */
.auth-form-panel .auth-extra {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.auth-form-panel .auth-extra .auth-remember {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  cursor: pointer;
  color: var(--text-secondary, #6c757d);
}

.auth-form-panel .auth-extra .auth-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary, #667eea);
  cursor: pointer;
}

.auth-form-panel .auth-extra .auth-forgot-link {
  color: var(--primary, #667eea);
  text-decoration: none;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-sm, 8px);
  transition: all 0.3s ease;
  background: rgba(102, 126, 234, 0.08);
}
.auth-form-panel .auth-extra .auth-forgot-link:hover {
  background: rgba(102, 126, 234, 0.15);
  color: #764ba2;
  text-decoration: underline;
}

.auth-form-panel .auth-extra a {
  color: var(--primary, #667eea);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
}

.auth-form-panel .auth-extra a:hover {
  color: #764ba2;
  text-decoration: underline;
}

/* ── Auth page floating decorative elements ── */
.auth-page .auth-float-shape {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  opacity: 0.05;
}

.auth-page .auth-float-shape:nth-child(1) {
  width: 400px;
  height: 400px;
  background: var(--primary, #667eea);
  top: -100px;
  left: -100px;
  animation: authFloat 25s ease-in-out infinite;
}

.auth-page .auth-float-shape:nth-child(2) {
  width: 300px;
  height: 300px;
  background: #764ba2;
  bottom: -80px;
  right: -80px;
  animation: authFloat 20s ease-in-out infinite reverse;
}

@keyframes authFloat {
  0%, 100% {
    transform: translate(0, 0) scale(1);
  }
  33% {
    transform: translate(30px, -30px) scale(1.05);
  }
  66% {
    transform: translate(-20px, 20px) scale(0.95);
  }
}

/* ── Separator text (or) ── */
.auth-form-panel .auth-separator {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: var(--text-secondary, #adb5bd);
  font-size: 0.8rem;
}

.auth-form-panel .auth-separator::before,
.auth-form-panel .auth-separator::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--auth-divider, #e0e0e0);
}

/* ── Social login section ── */
.auth-form-panel .auth-social-login {
  margin-bottom: 1rem;
}

.auth-form-panel .auth-social-login .auth-social-btns {
  display: flex;
  gap: 0.75rem;
}

.auth-form-panel .auth-social-login .auth-social-btns .auth-social-btn {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.5rem;
  font-size: 0.82rem;
  gap: 0.4rem;
  white-space: nowrap;
}

.auth-form-panel .auth-social-login .auth-social-btns .auth-social-btn svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.auth-form-panel .auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0;
  color: var(--text-secondary, #adb5bd);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

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

.auth-form-panel .auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: var(--radius-md, 12px);
  border: 2px solid var(--auth-input-border, #e0e0e0);
  background: var(--auth-input-bg, #f8f9fa);
  color: var(--text-primary, #1a1a2e);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.auth-form-panel .auth-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm, 0 2px 8px rgba(0,0,0,0.1));
  background: var(--auth-input-focus-bg, #ffffff);
}

.auth-form-panel .auth-google-btn:hover {
  border-color: #4285f4;
}

.auth-form-panel .auth-facebook-btn:hover {
  border-color: #1877f2;
}

/* Dark mode */
.dark-mode .auth-form-panel .auth-social-btn {
  border-color: #3a3a4e;
  background: #2a2a3a;
  color: #e1e1e1;
}
.dark-mode .auth-form-panel .auth-social-btn:hover {
  border-color: #4285f4;
}
.dark-mode .auth-form-panel .auth-divider {
  color: #888;
}

/* ── Social login buttons ── */
.auth-form-panel .auth-social-btns {
  display: flex;
  gap: 0.75rem;
}

.auth-form-panel .auth-social-btns .auth-social-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem;
  border-radius: var(--radius-sm, 8px);
  border: 2px solid var(--auth-input-border, #e0e0e0);
  background: var(--auth-input-bg, #f8f9fa);
  color: var(--text-primary, #1a1a2e);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
}

.auth-form-panel .auth-social-btns .auth-social-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm, 0 1px 3px rgba(0,0,0,0.08));
  border-color: var(--primary, #667eea);
}

/* ── ⭐ Responsive ── */

/* Tablet & smaller */
@media (max-width: 991.98px) {
  .auth-container {
    max-width: 700px;
    flex-direction: column;
  }

  .auth-illustration {
    flex: none;
    padding: 2rem 1.5rem;
  }

  .auth-illustration .auth-logo-icon {
    width: 70px;
    height: 70px;
    font-size: 2.2rem;
    margin-bottom: 1rem;
  }

  .auth-illustration h2 {
    font-size: 1.5rem;
  }

  .auth-illustration p {
    font-size: 0.85rem;
    max-width: 100%;
  }

  .auth-form-panel {
    padding: 2rem 1.5rem;
  }
}

/* Mobile */
@media (max-width: 575.98px) {
  .auth-page {
    padding: 1rem 0.75rem;
    align-items: flex-start;
    padding-top: 1.5rem;
  }

  .auth-container {
    border-radius: var(--radius-lg, 16px);
    box-shadow: var(--shadow-lg, 0 10px 30px rgba(0,0,0,0.12));
  }

  .auth-illustration {
    padding: 1.5rem 1rem;
  }

  .auth-illustration .auth-logo-icon {
    width: 56px;
    height: 56px;
    font-size: 1.8rem;
    margin-bottom: 0.75rem;
  }

  .auth-illustration h2 {
    font-size: 1.25rem;
  }

  .auth-illustration p {
    font-size: 0.8rem;
    display: none;
  }

  .auth-illustration .auth-pattern-dots {
    margin-top: 1rem;
  }

  .auth-form-panel {
    padding: 1.5rem 1rem;
  }

  .auth-form-panel .auth-form-header h3 {
    font-size: 1.3rem;
  }

  .auth-form-panel .auth-row {
    flex-direction: column;
    gap: 0;
  }

  .auth-avatar-grid .auth-avatar-choice .auth-avatar-img-wrap img {
    width: 46px;
    height: 46px;
  }

  .auth-illustration .auth-pattern-dots span {
    width: 6px;
    height: 6px;
  }
}

/* ── Dark mode overrides (auth-specific) ── */
.dark-mode .auth-container {
  --auth-card-bg: hsl(240, 10%, 18%);
  --auth-input-bg: #2a2a3a;
  --auth-input-focus-bg: #2a2a3a;
  --auth-input-border: #3a3a4e;
  --auth-divider: #3a3a4e;
}

.dark-mode .auth-form-panel .auth-input-wrapper input,
.dark-mode .auth-form-panel .auth-input-wrapper select {
  color: #e1e1e1;
}

.dark-mode .auth-form-panel .auth-input-wrapper input::placeholder {
  color: #777;
}

.dark-mode .auth-illustration {
  background: linear-gradient(135deg, #1a1a3e 0%, #2d1b4e 100%);
}

.dark-mode .auth-form-panel .auth-social-btns .auth-social-btn {
  border-color: #3a3a4e;
  background: #2a2a3a;
  color: #e1e1e1;
}

.dark-mode .auth-form-panel .auth-social-btns .auth-social-btn:hover {
  border-color: #667eea;
}

.dark-mode .auth-form-panel .auth-input-wrapper select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23adb5bd' d='M4.646 6.354a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 1 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.dark-mode .auth-form-panel .auth-input-wrapper select:focus {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='%23667eea' d='M4.646 6.354a.5.5 0 0 1 .708 0L8 9.293l2.646-2.647a.5.5 0 1 1 .708.708l-3 3a.5.5 0 0 1-.708 0l-3-3a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E");
}

.dark-mode .auth-password-strength .strength-bar {
  background: #3a3a4e;
}

.dark-mode .auth-form-panel .auth-extra .auth-forgot-link {
  background: rgba(102, 126, 234, 0.12);
}
.dark-mode .auth-form-panel .auth-extra .auth-forgot-link:hover {
  background: rgba(102, 126, 234, 0.2);
}
