/* styles.css - diseño simple y responsivo para la página de login */

/* Reset mínimo */
* { box-sizing: border-box; margin: 0; padding: 0; }
html,body { height: 100%; font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial; background: linear-gradient(180deg,#f6f8fb,#ffffff); color: #111; }

/* Layout centrado */
.container {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

/* Card */
.card {
  width: 100%;
  max-width: 380px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 30px rgba(17,24,39,0.08);
  padding: 1.75rem;
  border: 1px solid rgba(16,24,40,0.04);
}

/* Title */
.title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  text-align: center;
  color: #0f172a;
}

/* Fields */
.field { margin-bottom: 0.9rem; }
.field label {
  display: block;
  font-size: 0.85rem;
  margin-bottom: 0.35rem;
  color: #334155;
}
.field input {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  border: 1px solid #e6e9ef;
  background: #fbfdff;
  font-size: 0.95rem;
  outline: none;
  transition: box-shadow .12s ease, border-color .12s ease;
}
.field input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124,58,237,0.06);
}

/* Row with checkbox and link */
.row.small {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  gap: 0.5rem;
  font-size: 0.9rem;
}
.checkbox { display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer; color: #475569; }
.checkbox input { width: 16px; height: 16px; }

/* Buttons */
.btn {
  display: inline-block;
  width: 100%;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  border: none;
  font-size: 1rem;
  cursor: pointer;
}
.btn.primary {
  background: linear-gradient(180deg,#0a63ff,#0a63ff);
  color: white;
  box-shadow: 0 6px 18px rgba(91,33,182,0.18);
}
.btn.primary:active { transform: translateY(1px); }

/* Links and muted text */
.link { color: #6d28d9; text-decoration: none; font-size: 0.9rem; }
.link:hover { text-decoration: underline; }
.muted { margin-top: 0.9rem; text-align: center; font-size: 0.9rem; color: #64748b; }

/* Mobile-friendly adjustments */
@media (max-width: 420px) {
  .card { padding: 1.25rem; border-radius: 10px; }
  .title { font-size: 1.125rem; }
  .field input { padding: 0.55rem 0.6rem; }
}


.alert {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
  border-radius: 8px;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
  margin-bottom: 1rem;
  text-align: center;
  animation: fadeIn 0.4s ease-in-out;
}