/* ─── LUNNA PRECIFICA — Auth Pages ─────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --purple-600: #7c3aed;
  --purple-500: #8b5cf6;
  --purple-400: #a78bfa;
  --purple-100: #ede9fe;
  --purple-50: #f5f3ff;
  --rose-500: #f43f5e;
  --rose-100: #ffe4e6;
  --white: #ffffff;
  --gray-800: #1e1631;
  --gray-600: #4b4068;
  --gray-400: #9d94b5;
  --gray-200: #e8e2f5;
  --gray-100: #f4f1fb;
  --success: #10b981;
  --danger: #ef4444;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: 'DM Sans', system-ui, sans-serif;
  min-height: 100vh;
  display: flex;
  background: var(--gray-100);
  -webkit-font-smoothing: antialiased;
}

/* ── Duas colunas ─────────────────────────────────────────── */
.auth-layout {
  display: flex;
  width: 100%;
  min-height: 100vh;
}

/* Coluna esquerda – decorativa */
.auth-art {
  flex: 0 0 45%;
  background: linear-gradient(145deg, #2d1b69 0%, #9333ea 50%, #e11d48 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
}

.auth-art::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='600' height='600' xmlns='http://www.w3.org/2000/svg'%3E%3Ccircle cx='300' cy='300' r='200' fill='none' stroke='rgba(255,255,255,.06)' stroke-width='80'/%3E%3Ccircle cx='300' cy='300' r='120' fill='none' stroke='rgba(255,255,255,.04)' stroke-width='40'/%3E%3C/svg%3E") center/cover;
}

.auth-art .blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  animation: blobFloat 6s ease-in-out infinite;
}

.blob-1 {
  width: 300px; height: 300px;
  background: rgba(192,132,252,.3);
  top: -80px; left: -80px;
}

.blob-2 {
  width: 250px; height: 250px;
  background: rgba(244,63,94,.25);
  bottom: -60px; right: -60px;
  animation-delay: -3s;
}

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

.auth-art-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: white;
}

.auth-art-content .art-icon {
  font-size: 72px;
  margin-bottom: 24px;
  display: block;
  animation: iconBounce 3s ease-in-out infinite;
}

@keyframes iconBounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-10px); }
}

.auth-art-content h1 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 16px;
}

.auth-art-content p {
  font-size: 16px;
  opacity: 0.8;
  line-height: 1.7;
  max-width: 320px;
}

.auth-art-features {
  position: relative;
  z-index: 1;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 300px;
}

.auth-feature {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  padding: 12px 16px;
  color: white;
  font-size: 14px;
  backdrop-filter: blur(10px);
}

.auth-feature .feature-icon { font-size: 20px; }

/* Coluna direita – formulário */
.auth-form-side {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--white);
}

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

.auth-header {
  margin-bottom: 32px;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
}

.auth-logo .logo-icon {
  width: 42px;
  height: 42px;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
}

.auth-logo .logo-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--gray-800);
}

.auth-header h2 {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.auth-header p {
  color: var(--gray-400);
  font-size: 15px;
}

/* Form */
.auth-field {
  margin-bottom: 16px;
}

.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 6px;
}

.auth-input-wrap {
  position: relative;
}

.auth-input-wrap .field-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 17px;
  color: var(--gray-400);
}

.auth-input {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--gray-800);
  outline: none;
  transition: all 0.2s;
  background: var(--white);
}

.auth-input:focus {
  border-color: var(--purple-400);
  box-shadow: 0 0 0 3px var(--purple-100);
}

.auth-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px #fee2e2;
}

.field-error {
  font-size: 12px;
  color: var(--danger);
  margin-top: 5px;
}

/* Toggle senha */
.toggle-pass {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 17px;
  color: var(--gray-400);
  border: none;
  background: none;
  padding: 0;
  transition: color 0.2s;
}

.toggle-pass:hover { color: var(--purple-500); }

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

.auth-options a {
  color: var(--purple-600);
  text-decoration: none;
  font-weight: 500;
}

.auth-options a:hover { text-decoration: underline; }

.remember {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--gray-600);
  cursor: pointer;
}

.remember input[type=checkbox] { accent-color: var(--purple-500); }

/* Submit btn */
.auth-btn {
  width: 100%;
  padding: 13px;
  background: linear-gradient(135deg, #7c3aed, #c084fc);
  color: white;
  border: none;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.25s;
  box-shadow: 0 4px 20px rgba(124,58,237,.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.auth-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(124,58,237,.45);
}

.auth-btn:active {
  transform: translateY(0);
  box-shadow: 0 4px 16px rgba(124,58,237,.3);
}

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

.auth-btn .spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

.auth-divider {
  text-align: center;
  margin: 20px 0;
  position: relative;
  color: var(--gray-400);
  font-size: 12px;
}

.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: 14px;
  color: var(--gray-500);
  margin-top: 24px;
}

.auth-switch a {
  color: var(--purple-600);
  font-weight: 600;
  text-decoration: none;
}

.auth-switch a:hover { text-decoration: underline; }

/* Alert */
.auth-alert {
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 13px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.auth-alert.error {
  background: var(--rose-100);
  color: #991b1b;
  border: 1px solid #fecdd3;
}

.auth-alert.success {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-art { display: none; }
  .auth-form-side { padding: 32px 20px; }
}
