*{box-sizing:border-box}
:root{
  /* ===== Paleta clara ===== */
  --bg1:#f6f9ff;
  --bg2:#eef4ff;

  --card: rgba(255,255,255,.85);
  --card2: rgba(255,255,255,.95);
  --border: rgba(15, 23, 42, .10);

  --text: #0b1220;
  --muted: rgba(11, 18, 32, .78);

  --accent: #2fb7ff;
  --accent2:#34d399;

  --ok:#10b981;
  --err:#ef4444;

  --radius: 18px;
  --shadow: 0 18px 50px rgba(15, 23, 42, .12);
  --font: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

body{margin:0;font-family:var(--font);color:var(--text)}
.bg{
  min-height:100vh;
  background:
    radial-gradient(1100px 700px at 20% 10%, rgba(47,183,255,.18), transparent 60%),
    radial-gradient(900px 650px at 80% 30%, rgba(52,211,153,.14), transparent 55%),
    linear-gradient(180deg, var(--bg1), var(--bg2));
}

.brand{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:18px 20px;
}
.brand__logo{
  height:46px; width:auto; object-fit:contain;
  filter: drop-shadow(0 10px 18px rgba(15,23,42,.10));
}
.brand--center{ justify-content:center; }
.brand--center .brand__center{ flex:0; }
.brand__title{font-size:18px; font-weight:900; letter-spacing:.2px}
.brand__sub{font-size:13px; color:var(--muted); margin-top:2px}

/* ✅ Wrap: mantiene centrado el login (card directo), pero si adentro hay .layout (menú/dashboard)
      entonces la .layout usa TODO el ancho disponible y se centra con max-width */
.wrap{
  display:flex;
  justify-content:center;
  align-items:center;                 /* ✅ centra vertical */
  min-height: calc(100vh - 110px);    /* ✅ deja espacio para el footer fijo */
  padding: 26px 16px 110px;           /* ✅ bottom grande para no topar footer */
}

.wrap > .layout{
  flex:1;
  width:100%;
  max-width: 1600px;  /* ✅ aquí se aprovecha el espacio extra de pantallas grandes */
}

/* ✅ Card base: YA NO LIMITA A 520px para toda la app */
.card{
  width:100%;
  border-radius:var(--radius);
  border:1px solid var(--border);
  box-shadow:var(--shadow);
  padding:22px;
}

/* ✅ Solo cuando una card es HIJA DIRECTA de .wrap (login), se mantiene angosta */
.wrap > .card:not(.login-card){
  width:min(520px, 100%);
}

/* Glass más sutil (claro) */
.glass{
  background: linear-gradient(180deg, var(--card2), var(--card));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.h1{margin:0 0 6px; font-size:22px}
.muted{color:var(--muted); margin:0 0 14px}

.form{display:flex; flex-direction:column; gap:10px; margin-top:12px}
.label{font-size:12px; color:var(--muted); margin-top:6px}

.input,.select{
  width:100%;
  padding:11px 12px;
  border-radius:14px;
  border:1px solid rgba(15, 23, 42, .14);
  outline:none;
  background: rgba(255,255,255,.85);
  color: var(--text);
}
.input::placeholder{color: rgba(15,23,42,.45)}
.select{cursor:pointer}

.input:focus,.select:focus{
  border-color: rgba(47,183,255,.45);
  box-shadow: 0 0 0 4px rgba(47,183,255,.12);
}

.btn{
  margin-top:8px;
  border:0;
  border-radius:14px;
  padding:12px 14px;
  font-weight:900;
  cursor:pointer;
  color:#ffffff;
  background: linear-gradient(90deg, var(--accent), var(--accent2));
  box-shadow: 0 12px 24px rgba(47,183,255,.20);
}
.btn:active{transform: translateY(1px)}

.msg{
  margin-top:6px;
  font-size:13px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid transparent;
  display:none;
}
.msg.ok{display:block; color: #064e3b; background: rgba(16,185,129,.12); border-color: rgba(16,185,129,.22)}
.msg.err{display:block; color: #7f1d1d; background: rgba(239,68,68,.12); border-color: rgba(239,68,68,.22)}

.help{display:flex; gap:10px; align-items:center; margin-top:10px}
.pill{
  font-size:11px;
  padding:4px 10px;
  border-radius:999px;
  border:1px solid rgba(15, 23, 42, .12);
  background: rgba(255,255,255,.75);
}

/* Bloque título + logo a la derecha dentro de la tarjeta */
.login-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  margin-bottom:8px;
}

.login-head__logo{
  height:74px;
  width:auto;
  object-fit:contain;
  border-radius:14px;
  background: rgba(255,255,255,.9);
  padding:8px;
  border:1px solid rgba(15,23,42,.12);
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
}

/* Labels un poco más marcadas */
.label{
  color: rgba(11, 18, 32, .78);
  font-weight: 600;
}

/* Placeholder más visible */
.input::placeholder{
  color: rgba(11,18,32,.45);
}

/* Login en 2 columnas (form izquierda / logo derecha) */
.login-card{ width:min(1200px, 100%); }



.login-split{
  display:grid;
  grid-template-columns: 1.05fr .95fr; /* ✅ antes 1.15 / .85 */
  gap:32px;
  align-items:stretch;
}


.login-main{ padding-right: 6px; }

.login-aside{
  border-left: 1px solid var(--border);
  padding-left: 30px; /* ✅ antes 22px */
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  text-align:center;
}

.login-logo{
  width:100%;
  max-width: 340px;  /* ✅ antes 260px */
  height:auto;
  object-fit:contain;
  border-radius:16px;
  background: rgba(255,255,255,.95);
  padding:12px;      /* ✅ un poquito más */
  border:1px solid rgba(15,23,42,.12);
  box-shadow: 0 10px 24px rgba(15,23,42,.10);
}

.aside-text{ margin-top:10px; }
.aside-title{ font-weight:900; letter-spacing:.3px; }
.aside-name{ font-weight:800; }
.aside-sub{ color:var(--muted); font-size:12px; margin-top:2px; }

/* Responsive: en móvil se apila */
@media (max-width: 860px){
  .login-split{ grid-template-columns: 1fr; }
  .login-aside{
    border-left: 0;
    padding-left: 0;
    border-top: 1px solid var(--border);
    padding-top: 18px;
    margin-top: 8px;
  }
  .login-card{ width:min(560px, 100%); }
}

/* Branding dentro de la tarjeta */
.brand-mini{
  display:flex;
  flex-direction:column;
  gap:2px;
  margin-bottom:10px;
  padding-bottom:10px;
  border-bottom: 1px dashed rgba(15,23,42,.14);
}
.brand-mini__title{
  font-size:18px;
  font-weight:950;
  letter-spacing:.2px;
  color: var(--text);
}
.brand-mini__sub{
  font-size:12px;
  color: var(--muted);
}

/* Footer institucional */
.footer{
  position: fixed;
  left: 0; right: 0; bottom: 0;
  padding: 10px 14px;
}
.footer__inner{
  width:min(1200px, calc(100% - 28px));
  margin: 0 auto;
  border:1px solid rgba(15,23,42,.10);
  background: rgba(255,255,255,.70);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  color: rgba(11,18,32,.72);
  display:flex;
  gap:10px;
  justify-content:center;
  flex-wrap:wrap;
}
.footer__inner b{color: rgba(11,18,32,.92)}
.dot{opacity:.45}

/* Para que el footer no tape el contenido */
.wrap{ padding-bottom: 90px; }
