/* =========================================================
   DAVIDS — login.css
   Pantallas: login, recuperar/resetear contraseña
   ========================================================= */

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

body {
  font-family: 'Segoe UI', sans-serif;
  background: #f5f6f8;
  color: #111827;
  min-height: 100vh;
}

/* ── Layout ──────────────────────────────────────────────── */
.auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 2rem 1rem;
}

.auth-bg {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, #380818 0%, #6b0f2a 50%, #a81840 100%);
  z-index: 0;
}

/* ── Card ────────────────────────────────────────────────── */
.auth-card {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border-radius: 20px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ── Brand ───────────────────────────────────────────────── */
.brand {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.brand-logo {
  height: 64px;
  width: auto;
  object-fit: contain;
}

.brand-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #380818;
  letter-spacing: .3px;
}

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

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-size: .85rem;
  font-weight: 600;
  color: rgba(0,0,0,.7);
}

.control {
  position: relative;
  display: flex;
  align-items: center;
}

.control i {
  position: absolute;
  left: 12px;
  color: #999;
  font-size: .9rem;
  pointer-events: none;
}

.control input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.14);
  background: #fafafa;
  font-size: .95rem;
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.control input:focus {
  border-color: rgba(168,24,64,.45);
  box-shadow: 0 0 0 4px rgba(168,24,64,.12);
  background: #fff;
}

/* ── Button ──────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 16px;
  border-radius: 12px;
  border: none;
  background: #a81840;
  color: #fff;
  font-size: .95rem;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: filter .15s, transform .1s;
  width: 100%;
}

.btn:hover  { filter: brightness(.9); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* ── Alert ───────────────────────────────────────────────── */
.alert {
  padding: 10px 12px;
  border-radius: 10px;
  font-size: .85rem;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.alert-error {
  background: #fee2e2;
  border: 1px solid #fca5a5;
  color: #b91c1c;
}

/* ── Footer link ─────────────────────────────────────────── */
.foot {
  text-align: center;
  font-size: .85rem;
  color: #666;
}

.foot a {
  color: #a81840;
  font-weight: 600;
  text-decoration: none;
}

.foot a:hover { text-decoration: underline; }

.muted {
  font-size: .88rem;
  color: #666;
}
