/**
 * index.css — Estilos exclusivos de la página de login
 */

/* ── LAYOUT DE PÁGINA ───────────────────────────────────────────────────── */
body {
  display: flex;
  flex-direction: column;
  padding: 0;
}

main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 20px;
}

/* ── TARJETA DE LOGIN ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 40px;
  width: 100%;
  max-width: 420px;
  animation: fadeUp 0.4s ease;
  box-shadow: 0 4px 24px rgba(0,40,120,.12);
}

.card-title {
  font-family: 'DM Serif Display', serif;
  font-size: 22px;
  margin-bottom: 6px;
}

.card-desc {
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.7;
  margin-bottom: 28px;
}

/* ── CAMPO DE CONTRASEÑA ────────────────────────────────────────────────── */
input[type="password"] {
  width: 100%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: var(--ink);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="password"]::placeholder {
  color: var(--ink-soft);
  opacity: 0.7;
}

input[type="password"]:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-light);
}

/* ── MENSAJE DE ERROR ───────────────────────────────────────────────────── */
.error {
  background: rgba(0,90,186,.08);
  border: 1px solid rgba(0,90,186,.30);
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 13px;
  color: #64a0c8;
  margin-bottom: 20px;
}

/* ── BOTÓN DE SUBMIT ────────────────────────────────────────────────────── */
.btn {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
  letter-spacing: 0.2px;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.btn:hover {
  background: #0066cc;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(0,90,186,.45);
}

.btn:active {
  transform: none;
}

/* ── CAMPO ──────────────────────────────────────────────────────────────── */
.field {
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.3px;
  margin-bottom: 7px;
  color: var(--ink);
  text-transform: uppercase;
}

/* ── RESPONSIVE (< 480px) ───────────────────────────────────────────────── */
@media (max-width: 480px) {
  header {
    padding: 36px 20px 32px;
  }

  .card {
    padding: 28px 20px;
  }
}
