/* ===== Reset mínimo ===== */
* { box-sizing: border-box; }
html, body { height:100%; }
body {
  margin:0;
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color:#0f172a; /* slate-900 */
  background:#0b0d12; /* fallback se não tiver imagem */
}

/* ===== Layout ===== */
.container {
  min-height:100%;
  display:grid;
  place-items:center;
  padding: 2rem 1rem;
}

/* ===== Card ===== */
.card {
  width:100%;
  max-width: 420px;
  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(15,23,42,.08); /* slate-900/8 */
  border-radius: 1rem; /* 16px */
  padding: 1.25rem;
  backdrop-filter: blur(2px);
  box-shadow: 0 18px 48px rgba(0,0,0,.25);
}

/* Dark overlay legibilidade extra: opcional com .card.card-dark */
// .card.card-dark { background: rgba(17,24,39,0.7); color:#f8fafc; border-color: rgba(255,255,255,.08); }

/* ===== Tipografia ===== */
.title {
  margin: 0 0 .5rem 0;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 700;
  text-align:center;
}

.label {
  display:block;
  font-size:.9rem;
  margin-top:.75rem;
  margin-bottom:.25rem;
  color:#0f172a;
}

.input {
  width:100%;
  appearance:none;
  padding:.75rem .9rem;
  border:1px solid #e5e7eb; /* gray-200 */
  border-radius:.75rem;
  background:#fff;
  color:#0f172a;
  outline:none;
  transition: box-shadow .15s ease, border-color .15s ease, background .15s ease;
}

.input::placeholder { color:#94a3b8; } /* slate-400 */

.input:focus {
  border-color:#6366f1; /* indigo-500 */
  box-shadow: 0 0 0 4px rgba(99,102,241,.18);
}

/* ===== Botões ===== */
.btn {
  display:inline-flex;
  gap:.5rem;
  align-items:center;
  justify-content:center;
  padding:.7rem 1rem;
  border-radius:.75rem;
  border:1px solid transparent;
  font-weight:600;
  text-decoration:none;
  cursor:pointer;
  transition: transform .04s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn:active { transform: translateY(1px); }

.btn-primary {
  background:#111827;   /* gray-900 */
  color:#fff;
  border-color:#111827;
}
.btn-primary:hover { background:#0b1220; }

.btn-ghost {
  background:transparent;
  color:#111827;
  border-color: rgba(17,24,39,.15);
}
.btn-ghost:hover {
  background: rgba(17,24,39,.06);
  border-color: rgba(17,24,39,.25);
}

/* ===== Alertas / Dicas ===== */
.alert {
  margin:.5rem 0 0.75rem 0;
  padding:.75rem .9rem;
  border:1px solid #fecaca;    /* red-200 */
  background:#fee2e2;          /* red-100 */
  color:#7f1d1d;               /* red-900 */
  border-radius:.75rem;
  font-size:.95rem;
}

.hint {
  margin-top:.6rem;
  font-size:.9rem;
  color:#334155; /* slate-700 */
}

.checkbox {
  display:flex;
  align-items:center;
  gap:.45rem;
}

/* ===== Responsivo ===== */
@media (max-width: 480px) {
  .card { padding: 1rem; border-radius: .9rem; }
  .btn { width: 100%; }
  .form-row-actions { flex-direction: column; align-items: stretch; }
}

/* ===== Acessibilidade: foco visível em botões/links ===== */
.btn:focus,
a:focus,
.input:focus,
.toggle-pass:focus {
  outline: 3px solid rgba(99,102,241,.5); /* indigo-500/50 */
  outline-offset: 2px;
}
