/* ═══════════════════════════════════════════════════════════════════════════
   ADWA VPS — MODERN SPLIT-CARD AUTHENTICATION STYLES (public/css/auth.css)
   ═══════════════════════════════════════════════════════════════════════════ */

/* Standalone Page Layout */
.auth-page-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  background-color: #e6e4de;
  color: #0f172a;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  position: relative;
  box-sizing: border-box;
}

.auth-page-wrapper {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  box-sizing: border-box;
}

.auth-back-nav {
  position: absolute;
  top: 1.5rem;
  left: 1.75rem;
  z-index: 20;
}

.auth-back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 9999px;
  color: #1e293b;
  font-size: 0.84rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.auth-back-btn:hover {
  background: #ffffff;
  color: #000000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

/* Outer Card Container */
.auth-split-card {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  width: 100%;
  max-width: 960px;
  min-height: 610px;
  background: #ffffff;
  border-radius: 28px;
  border: 1px solid #1a1c23;
  overflow: hidden;
  box-shadow: 0 32px 70px -12px rgba(0, 0, 0, 0.35), 0 8px 24px -4px rgba(0, 0, 0, 0.15);
  position: relative;
  box-sizing: border-box;
}

/* Modal Overlay Override for authModal */
.modal-overlay.auth-modal-overlay {
  padding: 1.25rem;
  background-color: rgba(10, 12, 18, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.modal-overlay.auth-modal-overlay .auth-split-card {
  max-height: 92vh;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.5);
}

/* Modal Close Button */
.auth-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #64748b;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 30;
  font-size: 0.95rem;
}

.auth-modal-close:hover {
  background: #e2e8f0;
  color: #0f172a;
  transform: rotate(90deg);
}

/* ═══════════════════════════════════════════════
   LEFT COLUMN: BRAND & HERO SHOWCASE (DARK)
   ═══════════════════════════════════════════════ */
.auth-hero-col {
  background: radial-gradient(circle at 88% 12%, rgba(245, 158, 11, 0.24) 0%, rgba(234, 88, 12, 0.08) 32%, transparent 68%), #0c0e14;
  color: #ffffff;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  position: relative;
  box-sizing: border-box;
  user-select: none;
}

.auth-hero-glow {
  position: absolute;
  top: -60px;
  right: -60px;
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.35) 0%, transparent 70%);
  filter: blur(35px);
  pointer-events: none;
}

.auth-hero-center {
  margin: auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

/* Elevated Glass Badge */
.auth-hero-badge {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: linear-gradient(145deg, #1e222e 0%, #0e1017 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  position: relative;
  transition: transform 0.3s ease;
}

.auth-hero-badge:hover {
  transform: scale(1.05);
}

.auth-hero-badge-glow {
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  background: radial-gradient(circle, rgba(245, 158, 11, 0.25) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

/* ADWA Brand Emblem in Hero Badge */
.auth-brand-emblem-img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: contain;
  background: #000000;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  display: block;
  transition: transform 0.25s ease;
}

.auth-hero-badge:hover .auth-brand-emblem-img {
  transform: scale(1.08);
}

/* Slide Typography */
.auth-slide-track {
  width: 100%;
  max-width: 320px;
  min-height: 140px;
  position: relative;
}

.auth-slide {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.auth-slide.active {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.auth-slide-title {
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.25;
  color: #ffffff;
  margin: 0 0 0.85rem 0;
  letter-spacing: -0.02em;
}

.auth-slide-desc {
  font-size: 0.86rem;
  line-height: 1.55;
  color: #94a3b8;
  margin: 0;
}

/* Pagination Dots */
.auth-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 1.5rem;
}

.auth-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.auth-dot:hover {
  background: rgba(255, 255, 255, 0.5);
}

.auth-dot.active {
  width: 22px;
  border-radius: 4px;
  background: #ffffff;
}

/* ═══════════════════════════════════════════════
   RIGHT COLUMN: AUTHENTICATION FORM (WHITE)
   ═══════════════════════════════════════════════ */
.auth-form-col {
  background: #ffffff;
  color: #0f172a;
  padding: 2.25rem 2.75rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  position: relative;
  overflow-y: auto;
}

/* Top bar: Logo + Switch Link */
.auth-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}

/* Topbar: ADWA Brand Logo */
.auth-top-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  line-height: 1;
}

.auth-top-emblem-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: contain;
  background: #000000;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
  display: inline-block;
  vertical-align: middle;
}

.auth-top-brand-name {
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: #0f172a;
}

.auth-top-brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.3);
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1;
}

.auth-top-switch {
  font-size: 0.82rem;
  color: #475569;
}

.auth-switch-link {
  color: #0f172a;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.15s ease;
}

.auth-switch-link:hover {
  color: #ea580c;
}

/* Center Form Area */
.auth-form-body {
  max-width: 360px;
  width: 100%;
  margin: 0 auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.auth-title {
  font-size: 1.55rem;
  font-weight: 700;
  color: #0f172a;
  text-align: center;
  margin: 0 0 0.35rem 0;
  letter-spacing: -0.02em;
}

.auth-subtitle {
  font-size: 0.85rem;
  color: #64748b;
  text-align: center;
  margin: 0 0 1.4rem 0;
  line-height: 1.4;
}

/* Social Login Buttons */
.auth-social-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.auth-social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.72rem 1rem;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.auth-social-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.auth-social-btn svg,
.auth-social-btn i {
  flex-shrink: 0;
}

/* Divider */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: #94a3b8;
  font-size: 0.76rem;
  margin: 0.25rem 0 1.25rem;
  text-transform: capitalize;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #e2e8f0;
}

/* Input Fields */
.auth-field {
  margin-bottom: 1rem;
  text-align: left;
}

.auth-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.35rem;
}

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

.auth-input {
  width: 100%;
  padding: 0.75rem 0.95rem;
  padding-right: 2.5rem;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #0f172a;
  background: #ffffff;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.auth-input.no-toggle {
  padding-right: 0.95rem;
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-input:focus {
  border-color: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

.auth-toggle-pwd {
  position: absolute;
  right: 12px;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.92rem;
  transition: color 0.15s ease;
}

.auth-toggle-pwd:hover {
  color: #475569;
}

/* Agreement Checkbox (Registration Mode) */
.auth-checkbox-wrap {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0.75rem 0 1rem;
  font-size: 0.78rem;
  color: #64748b;
  line-height: 1.4;
  text-align: left;
}

.auth-checkbox-wrap input[type="checkbox"] {
  margin-top: 2px;
  accent-color: #ea580c;
}

.auth-checkbox-wrap a {
  color: #0f172a;
  text-decoration: underline;
}

/* Primary Action Button (Amber-Orange Gradient matching screenshot) */
.auth-submit-btn {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 600;
  border: none;
  border-radius: 12px;
  padding: 0.82rem 1.25rem;
  width: 100%;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(234, 88, 12, 0.35);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.85rem;
  box-sizing: border-box;
}

.auth-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(234, 88, 12, 0.45);
}

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

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

/* Secondary Action Link */
.auth-secondary-action {
  text-align: center;
  margin-top: 1rem;
}

.auth-forgot-btn {
  background: none;
  border: none;
  color: #0f172a;
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.auth-forgot-btn:hover {
  color: #ea580c;
}

/* Bottom Card Footer */
.auth-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.74rem;
  color: #94a3b8;
  border-top: 1px solid #f1f5f9;
  padding-top: 1.15rem;
  margin-top: 1.5rem;
}

.auth-footer-links {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.auth-footer-link {
  color: #64748b;
  text-decoration: none;
  transition: color 0.15s ease;
}

.auth-footer-link:hover {
  color: #0f172a;
  text-decoration: underline;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE DESIGN (TABLETS & MOBILE)
   ═══════════════════════════════════════════════ */
@media (max-width: 860px) {
  .auth-split-card {
    grid-template-columns: 1fr;
    max-width: 440px;
    min-height: auto;
    border-radius: 20px;
  }

  .auth-hero-col {
    display: none; /* Hide hero on small devices for pure focused auth */
  }

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

  .auth-back-nav {
    top: 1rem;
    left: 1rem;
  }
}
