/* ---------- Reset básico ---------- */
* { box-sizing: border-box; }
html, body { height: 100%; }

:root{
  --primary: #1177BD;
  --accent: #F9F871;
  --dark: #203668;
}

body {
  margin: 0;
  font-family: 'Montserrat', ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans";
  color: #0f172a;
  background:
    radial-gradient(1200px 600px at 20% 10%, rgba(17,119,189,.18) 0%, transparent 60%),
    radial-gradient(900px 500px at 90% 30%, rgba(249,248,113,.20) 0%, transparent 55%),
    linear-gradient(180deg, #ffffff 0%, #f3f6fb 100%);
}

/* ---------- Layout ---------- */
.auth {
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  width: 100%;
  max-width: 420px;
  background: rgba(255, 255, 255, 0.90);
  border: 1px solid rgba(32,54,104, 0.18);
  border-radius: 18px;
  box-shadow:
    0 26px 70px rgba(32,54,104, 0.18),
    0 2px 10px rgba(2, 6, 23, 0.06);
  backdrop-filter: blur(10px);
  overflow: hidden;
}

.card__header {
  padding: 28px 28px 14px;
  text-align: center;
}

.logo {
  height: 56px;
  width: auto;
  display: block;
  margin: 0 auto 16px;
}

.subtitle {
  margin: 0;
  margin-top: 50px;
  font-size: 28px;
  line-height: 1.2;
  color: rgba(32,54,104,.92);
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ---------- Form ---------- */
.form { padding: 18px 28px 26px; }

.field { margin-top: 14px; }
.label {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 8px;
}

.hint {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  color: rgba(32,54,104,.70);
  font-weight: 600;
}

.control { position: relative; }

.input {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border-radius: 14px;
  border: 1px solid #0f172a;
  background: rgba(255, 255, 255, 0.96);
  outline: none;
  font-size: 14px;
  color: #0f172a;
  transition: border-color .18s, box-shadow .18s, transform .06s;
}

.input::placeholder { color: rgba(32,54,104,.45); }

.input:focus {
  border-color: rgba(17,119,189, 0.65);
  box-shadow: 0 0 0 4px rgba(17,119,189, 0.15);
}

.control--with-btn .input { padding-right: 48px; }

.icon-btn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 1px solid #0f172a;
  border-radius: 12px;
  background: rgba(17,119,189,.06);
  cursor: pointer;
  font-size: 16px;
  display: grid;
  place-items: center;
  color: var(--dark);
  transition: background .15s, transform .06s;
}
.icon-btn:hover { background: rgba(17,119,189,.10); }
.icon-btn:active { transform: translateY(-50%) scale(0.98); }

/* ---------- Alert ---------- */
.alert {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 13px;
  background: rgba(239, 68, 68, 0.10);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #b91c1c;
  display: none;
  font-weight: 700;
}

/* =====================================================
                    BOTONES
===================================================== */
.btn-dark-primary,
.btn-dark-primary-white{
  margin-top: 16px;
  width: 100%;
  height: 48px;

  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  padding: 10px 16px;
  border-radius: 14px;

  background: var(--dark);
  border: 1px solid rgba(32,54,104,.35);

  font-weight: 900;
  cursor: pointer;
  transition: background .2s ease, transform .06s ease, border-color .2s ease, filter .18s ease;
  white-space: nowrap;
}

.btn-dark-primary{ color: var(--accent); }
.btn-dark-primary-white{ color: #fff; }

.btn-dark-primary:hover,
.btn-dark-primary-white:hover{
  background: var(--primary);
  border-color: rgba(17,119,189,.55);
  filter: brightness(1.02);
}
.btn-dark-primary:disabled,
.btn-dark-primary-white:disabled{
  opacity: 0.65;
  cursor: not-allowed;
}

/* ---------- Footer ---------- */
.card__footer {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(32,54,104, 0.10);
  text-align: center;
}
.muted { font-size: 12px; color: rgba(32,54,104,.65); font-weight: 700; }

/* ---------- Responsive ---------- */
@media (max-width: 420px) {
  .card__header { padding: 24px 18px 0px; }
  .form { padding: 16px 18px 22px; }
  .logo { margin-bottom: 14px; }
  .subtitle { font-size: 20px; }
}
