/* ---------- Reset mínimo ---------- */
* { box-sizing: border-box; }
html, body { min-height: 100vh; overflow-x: hidden; }
body {
  margin: 0;
  font-family: "Cascadia Code PL", "Cascadia Code", "Cascadia Mono", Consolas, "Courier New", monospace;
  color: #0f172a;
}

/* ---------- Fondo con patrón suave tipo salud + centrado ---------- */
.bg {
  --bg: #f7fbfc;
  background:
    radial-gradient(circle at 10% 10%, rgba(0,0,0,0.03) 2px, transparent 2px) 0 0/32px 32px,
    radial-gradient(circle at 80% 30%, rgba(0,0,0,0.03) 2px, transparent 2px) 0 0/36px 36px,
    var(--bg);
  min-height: 100vh;
  display: grid;
  place-items: center;   /* centra vertical y horizontal */
  padding: 24px;
}

/* ---------- Layout ---------- */
.container {
  max-width: 550px;      /* antes 400px */
  margin: 10px;
  padding: 32px;
}

/* ---------- Card ---------- */
.card {
  background: #fff;
  border-radius: 26px;
  box-shadow: 0 14px 36px rgba(2, 23, 42, 0.1);
  padding: 40px 34px 42px;
  backdrop-filter: blur(3px);
  text-align: center;
  will-change: transform;
}

/* ---------- Logo ---------- */
.brand {
  display: flex;
  justify-content: center;
  margin-bottom: 0px;
}
.brand img {
  max-width: 110%;      /* más grande */
  height: auto;
  width: auto;
  display: block;
  object-fit: contain;
}

/* ---------- Título ---------- */
.card h1 {
  font-size: 30px;       /* antes 26px */
  font-weight: 800;
  color: #0b2940;
  margin: 0 0 22px 0;
}

/* ---------- Inputs con icono ---------- */
.input-group {
  position: relative;
  margin: 50px 0;
}
.input-group .icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #64748b;
  pointer-events: none;
}
.input-group input {
  width: 100%;
  height: 56px;          /* antes 48px */
  padding: 0 16px 0 50px;
  border-radius: 14px;
  border: 1px solid #dbe3ea;
  background: #fff;
  font-size: 16px;       /* antes 15px */
  color: #0f172a;
  outline: none;
  transition: box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.input-group input::placeholder { color: #94a3b8; }
.input-group input:focus {
  border-color: #00b6c8;
  box-shadow: 0 0 0 4px rgba(0,182,200,0.18);
}

/* ---------- Botón ---------- */
.btn {
  width: 100%;
  height: 58px;          /* antes 50px */
  border: 0;
  border-radius: 16px;
  background: #00b6c8;
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  cursor: pointer;
  margin-top: 14px;
  transition: transform .04s ease, box-shadow .2s ease, background .2s ease, opacity .2s ease;
  box-shadow: 0 8px 16px rgba(0,182,200,0.28);
}
.btn:hover { background: #00a5b6; }
.btn:active { transform: translateY(1px); }
.btn.loading { opacity: 0.9; pointer-events: none; }

/* ---------- Links secundarios ---------- */
.links {
  margin-top: 16px;
  text-align: center;
  font-size: 15px;       /* antes 14px */
  color: #0b2940;
}
.links .muted { color: #475569; text-decoration: none; }
.links .muted:hover { text-decoration: underline; }
.links .strong { color: #0b2940; font-weight: 700; text-decoration: none; }
.links .strong:hover { text-decoration: underline; }
.links .separator { margin: 0 8px; color: #94a3b8; }

/* =========================================================
   ✅ Toasts profesionales (visibles y coherentes con MediSys)
   ========================================================= */
.ms-toast {
  position: fixed !important;
  top: 40%;
  left: 50%;
  transform: translateX(-50%);
  z-index: 999999 !important;
  display: flex;
  align-items: center;

  gap: 14px; /* 🔼 aumentado de 10px → más espacio entre ícono y texto */
  padding: 20px 32px; /* 🔼 aumentado de 16px 26px → toast más grande y cómodo */
  border-radius: 18px; /* 🔼 aumentado de 14px → esquinas más suaves */
  color: #fff;

  font-size: 18px; /* 🔼 aumentado de 16px → texto más legible */
  font-weight: 600; /* 🔼 ligeramente más grueso */
  min-width: 320px; /* 🔼 aumentado de 260px → toast más ancho */
  max-width: 92%; /* 🔼 un poco más flexible */

  text-align: center;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.3); /* 🔼 sombra más visible */
  pointer-events: none;
  transition: all 0.35s ease;
  opacity: 0;
}

/* Tipo de mensaje */
.ms-toast.bg-emerald-600 { background-color: #059669; border-left: 6px solid #34d399; } /* 🔼 borde más grueso */
.ms-toast.bg-rose-600    { background-color: #e11d48; border-left: 6px solid #fb7185; } /* 🔼 borde más grueso */
.ms-toast.bg-amber-500   { background-color: #f59e0b; border-left: 6px solid #fcd34d; color: #000; } /* 🔼 borde más grueso */
.ms-toast.bg-sky-600     { background-color: #0284c7; border-left: 6px solid #38bdf8; } /* 🔼 borde más grueso */

/* Barra de progreso */
.ms-toast .ms-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 6px; /* 🔼 aumentado de 4px → barra más visible */
  width: 100%;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 0 0 10px 10px;
  transition: width linear;
}

/* Animaciones */
.ms-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
.welcome-text {
  font-size: 22px;
  font-weight: 700;
  color: #0b2940;
  margin: 12px 0 24px 0;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}
