/* ====== Login – estilo minimalista ====== */
:root{
  --bg: #f6f8fb;
  --card-bg: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --accent: #2563eb;      /* azul login */
  --accent-hover: #1e40af;
  --border: #e5e7eb;
  --shadow: 0 10px 24px rgba(0,0,0,.07), 0 2px 6px rgba(0,0,0,.04);
  --radius: 14px;
}

*{ box-sizing: border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font: 500 16px/1.4 system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  display:flex; align-items:center; justify-content:center;
  padding: 24px;
}

.container{
  width: 100%;
  max-width: 420px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
}

h2{
  margin: 0 0 18px;
  font-size: 26px;
  letter-spacing: .2px;
}

form{ display:flex; flex-direction:column; gap: 12px; }

input{
  width:100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px 14px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
  background: #fff;
}
input::placeholder{ color: var(--muted); }
input:focus{
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

button{
  border: none;
  border-radius: 10px;
  padding: 12px 14px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform .04s ease, background .15s ease, box-shadow .15s ease;
  box-shadow: 0 6px 16px rgba(37, 99, 235, .25);
}
button:hover{ background: var(--accent-hover); }
button:active{ transform: translateY(1px); }

p{
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 14px;
}
a{
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}
a:hover{ text-decoration: underline; }

/* mensaje de error opcional */
.error{
  background: #fee2e2;
  border: 1px solid #fecaca;
  color: #991b1b;
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
}
