/* ============================================================
   AUTH.CSS — Estilos das páginas de autenticação e perfil
   Importe após styles.css no layout, ou concatene.
   ============================================================ */

/* ── Flash Messages ─────────────────────────────────────────── */
.flash-container {
  position: fixed;
  top: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(480px, calc(100vw - 2rem));
}

.flash {
  padding: 0.85rem 1.25rem;
  border-radius: 6px;
  font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid;
  animation: flashIn 0.25s ease;
}

@keyframes flashIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.flash--success { background: rgba(34, 197, 94, 0.12);  border-color: rgba(34, 197, 94, 0.35);  color: #86efac; }
.flash--error   { background: rgba(239, 68, 68, 0.12);  border-color: rgba(239, 68, 68, 0.35);  color: #fca5a5; }
.flash--info    { background: rgba(99, 102, 241, 0.12); border-color: rgba(99, 102, 241, 0.35); color: #a5b4fc; }
.flash--warning { background: rgba(234, 179, 8, 0.12);  border-color: rgba(234, 179, 8, 0.35);  color: #fde68a; }

/* ── Auth Wrap ──────────────────────────────────────────────── */
.auth-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6rem 1rem 3rem;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 2.5rem 2rem;
}

.auth-card--wide { max-width: 520px; }

.auth-logo {
  text-align: center;
  margin-bottom: 1.5rem;
}
.auth-logo a {
  font-family: 'DM Mono', monospace;
  font-size: 1.1rem;
  color: var(--text);
  text-decoration: none;
}
.auth-logo a span { color: var(--accent); }

.auth-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  color: var(--text);
  text-align: center;
  margin-bottom: 0.4rem;
}

.auth-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 1.75rem;
}

/* ── Google Button ──────────────────────────────────────────── */
.btn-google {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  transition: border-color 0.2s, background 0.2s;
  cursor: pointer;
}
.btn-google:hover {
  border-color: var(--text-muted);
  background: rgba(255,255,255,0.03);
}

/* ── Divider ────────────────────────────────────────────────── */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.5rem 0;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── Form ───────────────────────────────────────────────────── */
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }

.field-group { display: flex; flex-direction: column; gap: 0.4rem; }

.field-group label {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-family: 'DM Sans', sans-serif;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.field-link {
  font-size: 0.8rem;
  color: var(--accent);
  text-decoration: none;
}
.field-link:hover { text-decoration: underline; }

.field-group input {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.7rem 0.9rem;
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  font-size: 0.9rem;
  transition: border-color 0.2s;
  outline: none;
  width: 100%;
  box-sizing: border-box;
}
.field-group input:focus { border-color: var(--accent); }
.field-group input::placeholder { color: rgba(240,243,248,0.2); }

.btn-auth-submit {
  width: 100%;
  padding: 0.8rem;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.25rem;
  text-align: center;
}
.btn-auth-submit:hover { opacity: 0.88; }

.auth-terms {
  font-size: 0.78rem;
  color: var(--text-muted);
  line-height: 1.5;
}
.auth-terms a { color: var(--accent); text-decoration: none; }
.auth-terms a:hover { text-decoration: underline; }

.auth-switch {
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 1.25rem;
}
.auth-switch a { color: var(--accent); text-decoration: none; }
.auth-switch a:hover { text-decoration: underline; }

/* ── Profile ────────────────────────────────────────────────── */
.profile-info {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.profile-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}

.profile-label { color: var(--text-muted); }
.profile-value { color: var(--text); }

.profile-plan {
  padding: 0.2rem 0.65rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-family: 'DM Mono', monospace;
}
.profile-plan--free    { background: rgba(255,255,255,0.06); color: var(--text-muted); }
.profile-plan--premium { background: rgba(var(--accent-rgb), 0.15); color: var(--accent); }

.profile-upgrade {
  background: rgba(var(--accent-rgb), 0.06);
  border: 1px solid rgba(var(--accent-rgb), 0.2);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  text-align: center;
  margin-bottom: 1.5rem;
}
.profile-upgrade p { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 0.75rem; }
