/* ============================================================
   AUTH PAGES (Login & Register)
   ============================================================ */

.auth-body { background: var(--gray-100); min-height: 100vh; }

.auth-page {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* LEFT PANEL */
.auth-side-panel {
  background: linear-gradient(145deg, var(--dark-900) 0%, var(--dark-700) 60%, var(--green-900) 100%);
  padding: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.auth-side-panel::before {
  content: '';
  position: absolute;
  top: -100px; right: -100px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(74,175,80,0.15), transparent 70%);
  pointer-events: none;
}
.auth-side-panel::after {
  content: '';
  position: absolute;
  bottom: -100px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(251,192,45,0.10), transparent 70%);
  pointer-events: none;
}
.auth-panel-content {
  position: relative;
  z-index: 2;
  max-width: 400px;
}
.auth-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
}
.auth-panel-title {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: white;
  line-height: 1.3;
  margin-bottom: 1rem;
}
.auth-panel-desc {
  color: rgba(255,255,255,0.6);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 2.5rem;
}
.auth-features {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2.5rem;
}
.auth-feature {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  font-weight: 500;
}
.af-icon {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
}
.auth-certs {
  display: flex;
  gap: 0.5rem;
}
.auth-cert-badge {
  padding: 4px 12px;
  background: rgba(251,192,45,0.15);
  border: 1px solid rgba(251,192,45,0.3);
  color: var(--gold-300);
  border-radius: var(--r-full);
  font-size: 0.75rem;
  font-weight: 700;
}

/* RIGHT (FORM) PANEL */
.auth-form-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  background: var(--white);
}
.auth-form-wrap {
  width: 100%;
  max-width: 420px;
}
.auth-form-header {
  margin-bottom: 1.8rem;
}
.auth-form-header h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--dark-900);
  margin-bottom: 0.25rem;
}
.auth-form-header p {
  color: var(--gray-500);
  font-size: 0.95rem;
}

.demo-hint {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--green-50);
  border: 1px solid var(--green-100);
  border-radius: var(--r-md);
  padding: 0.8rem 1rem;
  margin-bottom: 1.5rem;
  font-size: 0.82rem;
}
.demo-hint span { font-size: 1.4rem; flex-shrink: 0; margin-top: 2px; }
.demo-hint strong { color: var(--green-800); display: block; margin-bottom: 2px; font-size: 0.85rem; }
.demo-hint p { color: var(--gray-600); margin: 0; }

.password-wrap {
  position: relative;
}
.password-wrap input { width: 100%; padding-right: 3rem; }
.toggle-pwd {
  position: absolute;
  right: 0.75rem; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  opacity: 0.6;
}
.toggle-pwd:hover { opacity: 1; }

.form-row-check {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.forgot-link {
  font-size: 0.85rem;
  color: var(--green-700);
  font-weight: 600;
}
.forgot-link:hover { text-decoration: underline; }

.auth-divider {
  text-align: center;
  color: var(--gray-400);
  font-size: 0.85rem;
  margin: 1.2rem 0;
  position: relative;
}
.auth-divider::before, .auth-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 42%;
  height: 1px;
  background: var(--gray-200);
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }

.auth-switch {
  text-align: center;
  font-size: 0.9rem;
  color: var(--gray-600);
  margin-bottom: 0.75rem;
}
.auth-switch a {
  color: var(--green-700);
  font-weight: 700;
}
.auth-switch a:hover { text-decoration: underline; }
.auth-back {
  text-align: center;
  font-size: 0.85rem;
}
.auth-back a { color: var(--gray-400); }
.auth-back a:hover { color: var(--gray-600); }

/* REGISTER EXTRAS */
.form-section-title {
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--green-700);
  margin: 1.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.form-section-title:first-of-type {
  margin-top: 0.5rem;
  border-top: none;
  padding-top: 0;
}

@media (max-width: 900px) {
  .auth-page { grid-template-columns: 1fr; }
  .auth-side-panel { display: none; }
  .auth-form-panel { min-height: 100vh; padding: 2rem 1.5rem; }
}
