/* ================================================
   CUREVA — AUTH STYLES
   Login / Signup — Organic Intelligence Design
   ================================================ */

.auth-page {
  min-height: 100vh;
  display: flex;
  background: var(--bg-body);
}

/* Brand Panel (Left) — Dark charcoal with mesh */
.auth-brand {
  flex: 1;
  background: var(--bg-dark);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 60px;
  color: #ffffff;
  position: relative;
  overflow: hidden;
}

/* Indigo mesh glow */
.auth-brand::before {
  content: '';
  position: absolute;
  top: 20%;
  left: 50%;
  transform: translateX(-50%);
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(67, 56, 202, 0.2) 0%, transparent 70%);
  animation: meshDrift 30s linear infinite;
  pointer-events: none;
}

.auth-brand::after {
  content: '';
  position: absolute;
  bottom: 10%;
  right: 20%;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(124, 58, 237, 0.12) 0%, transparent 70%);
  animation: meshDrift 25s linear infinite reverse;
  pointer-events: none;
}

.auth-brand-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 400px;
}

.auth-brand-content .logo {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.auth-brand-content .logo .logo-icon {
  width: 36px;
  height: 36px;
  filter: drop-shadow(0 0 6px rgba(99, 102, 241, 0.5)) brightness(1.3);
}

.auth-brand-content h2 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  color: #ffffff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.auth-brand-content p {
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.5);
}

.auth-features {
  margin-top: 48px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 400;
}

.auth-feature .icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}

/* Form Panel (Right) — Cream background */
.auth-form-panel {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: var(--bg-body);
}

.auth-form-card {
  width: 100%;
  max-width: 420px;
}

.auth-form-card h1 {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.auth-form-card > p {
  color: var(--text-muted);
  font-size: 15px;
  margin-bottom: 36px;
  font-family: var(--font-sans);
}

.form-group {
  margin-bottom: 22px;
}

.form-group label {
  display: block;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.form-group input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-sans);
  outline: none;
  background: var(--bg-surface);
  transition: all var(--duration) var(--ease);
  color: var(--text-primary);
}

.form-group input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(67, 56, 202, 0.1);
}

.form-group input::placeholder {
  color: var(--text-light);
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  font-size: 13px;
}

.form-options label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-sans);
}

.form-options a {
  color: var(--primary);
  font-weight: 500;
}

.form-options a:hover {
  color: var(--primary-dark);
}

.auth-form-card .btn-primary {
  width: 100%;
  padding: 14px;
  font-size: 12px;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0;
  font-family: var(--font-mono);
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: var(--text-light);
}

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

.auth-switch {
  text-align: center;
  margin-top: 24px;
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-sans);
}

.auth-switch a {
  color: var(--primary);
  font-weight: 600;
}

/* Responsive */
@media (max-width: 900px) {
  .auth-page {
    flex-direction: column;
  }

  .auth-brand {
    padding: 40px 24px;
    min-height: auto;
  }

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

  .auth-features {
    display: none;
  }

  .auth-form-panel {
    padding: 32px 24px;
  }
}
