/* ═══════════════════════════════════════════════════════════════
   login.css
   ═══════════════════════════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #faf9f7;
  font-family: 'Segoe UI', system-ui, Arial, sans-serif;
  font-size: 15px;
  color: #42382e;
}

/* ── Contenedor central ─────────────────────────────────────── */
.login-wrap {
  width: 100%;
  max-width: 400px;
  padding: 2rem 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* ── Marca ──────────────────────────────────────────────────── */
.login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}
.login-brand img {
  height: 54px;
  width: auto;
  display: block;
}
.login-tagline {
  font-size: 0.82rem;
  color: #8f8578;
  letter-spacing: 0.02em;
  text-align: center;
}

/* ── Tarjeta del formulario ─────────────────────────────────── */
.login-card {
  width: 100%;
  background: #ffffff;
  border: 1px solid #e5ddd4;
  border-radius: 16px;
  padding: 2.25rem 2.25rem 2rem;
  box-shadow: 0 1px 0 rgba(66,56,46,.03), 0 8px 32px -8px rgba(66,56,46,.12);
}

.login-card h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #42382e;
  margin-bottom: 1.75rem;
  letter-spacing: -0.02em;
}
.login-card h1::after {
  content: '';
  display: block;
  width: 32px;
  height: 2px;
  background: #c9b99a;
  border-radius: 2px;
  margin-top: 0.75rem;
}

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

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

.field label {
  font-size: 0.78rem;
  font-weight: 700;
  color: #6b6055;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.field input {
  padding: 0.7rem 0.9rem;
  border: 1px solid #d4ccc4;
  border-radius: 8px;
  font-size: 0.95rem;
  font-family: inherit;
  color: #42382e;
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: #b8b0a8; }
.field input:focus {
  outline: none;
  border-color: #42382e;
  box-shadow: 0 0 0 3px rgba(66,56,46,0.10);
}

/* ── Botón ──────────────────────────────────────────────────── */
button[type="submit"] {
  margin-top: 0.5rem;
  padding: 0.75rem;
  background: #42382e;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s;
  letter-spacing: 0.01em;
}
button[type="submit"]:hover { background: #332d26; }
button[type="submit"]:active { transform: translateY(1px); }

/* ── Error ──────────────────────────────────────────────────── */
.login-error {
  font-size: 0.85rem;
  color: #c0392b;
  background: #fdf0ee;
  border: 1px solid #f5c6c0;
  border-radius: 6px;
  padding: 0.55rem 0.75rem;
}

/* ── Footer ─────────────────────────────────────────────────── */
.login-footer {
  font-size: 0.78rem;
  color: #b8b0a8;
  text-align: center;
}
.login-footer a { color: #8f8578; text-decoration: none; }
.login-footer a:hover { text-decoration: underline; }
