:root { --rojo: #c41e32; --celeste: #e8f4fb; }
* { box-sizing: border-box; }
html, body {
  margin: 0;
  min-height: 100%;
  background: var(--celeste);
  color: #111;
  font-family: "Times New Roman", Times, serif;
}
body { display: flex; flex-direction: column; min-height: 100vh; }
.caja {
  width: min(420px, 92%);
  margin: auto;
  background: #fff;
  padding: 1.4rem 1.3rem 1.2rem;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(30, 90, 168, 0.12);
  text-align: center;
}
.caja img { height: 86px; }
h1 { margin: 0.4rem 0 0.3rem; color: var(--rojo); font-size: 1.4rem; }
.sub, .hint { color: #345; font-size: 0.92rem; line-height: 1.45; }
form { display: flex; flex-direction: column; gap: 0.55rem; text-align: left; }
label { font-size: 0.9rem; display: flex; flex-direction: column; gap: 0.2rem; }
label[hidden] { display: none; }
input, button, .btn-sec {
  font: inherit;
  padding: 0.45rem 0.5rem;
  border-radius: 8px;
  border: 1px solid #9bb8c9;
}
button, .btn-sec {
  background: var(--rojo);
  color: #fff;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
button.peligro { background: #7a1020; margin-top: 0.4rem; }
.error { background: #fde8ea; color: #7a1020; padding: 0.5rem; border-radius: 8px; }
.ok { background: #e7f7ee; color: #14532d; padding: 0.5rem; border-radius: 8px; }
.link { background: none; color: #1e5aa8; border: 0; cursor: pointer; font: inherit; }
footer {
  background: var(--rojo);
  color: #fff;
  text-align: center;
  padding: 0.7rem;
  margin-top: auto;
}
.aviso { text-align: left; }
.aviso h1 { text-align: center; }
.aviso img { display: block; margin: 0 auto; }
