/* R&R Gestión v4.13.0 · acceso privado obligatorio */
body.auth-locked{overflow:hidden;background:#eef3f5}
body.auth-locked .shell{display:none!important}

.auth-gate{
  min-height:100vh;
  display:grid;
  place-items:center;
  padding:28px 18px;
  background:
    radial-gradient(circle at 12% 18%,rgba(13,169,154,.14),transparent 28%),
    radial-gradient(circle at 88% 82%,rgba(11,49,87,.16),transparent 32%),
    linear-gradient(145deg,#f8fbfc 0%,#edf4f3 54%,#e8f0f4 100%);
}
.auth-gate[hidden]{display:none!important}
.auth-gate-card{
  width:min(460px,100%);
  overflow:hidden;
  border:1px solid rgba(11,49,87,.12);
  border-radius:24px;
  background:rgba(255,255,255,.97);
  box-shadow:0 26px 70px rgba(11,49,87,.18);
}
.auth-gate-brand{
  display:flex;
  align-items:center;
  gap:14px;
  padding:24px 26px 20px;
  color:#fff;
  background:linear-gradient(125deg,#0b3157 0%,#104d73 72%,#176b70 100%);
}
.auth-gate-brand img{width:62px;height:62px;border-radius:16px;box-shadow:0 9px 22px rgba(0,0,0,.2)}
.auth-gate-brand strong{display:block;font-size:22px;line-height:1.1;letter-spacing:-.02em}
.auth-gate-brand span{display:block;margin-top:5px;font-size:12px;opacity:.82;letter-spacing:.08em;text-transform:uppercase}
.auth-gate-body{padding:26px}
.auth-gate-body h1{margin:0;color:#0b3157;font-size:25px;letter-spacing:-.025em}
.auth-gate-intro{margin:8px 0 22px;color:#66727b;font-size:14px;line-height:1.55}
.auth-gate-form{display:grid;gap:14px}
.auth-gate-field{display:grid;gap:6px}
.auth-gate-field label{color:#40515f;font-size:12px;font-weight:800}
.auth-gate-field input{
  width:100%;
  min-height:46px;
  border:1px solid #c7d4d9;
  border-radius:10px;
  padding:10px 12px;
  background:#fff;
  color:#1f2933;
}
.auth-gate-field input:focus{outline:3px solid rgba(13,169,154,.18);border-color:#0d988c}
.auth-gate-submit{min-height:47px;margin-top:2px;background:#347048}
.auth-gate-submit:disabled,.auth-gate-link:disabled{cursor:wait;opacity:.65}
.auth-gate-help{display:flex;justify-content:center;gap:8px;flex-wrap:wrap;margin-top:17px;padding-top:17px;border-top:1px solid #e4eaed}
.auth-gate-link{border:0;background:transparent;color:#0b5d86;font-size:12px;font-weight:800;cursor:pointer;padding:5px 4px}
.auth-gate-link:hover{text-decoration:underline}
.auth-gate-message{display:none;margin:16px 0 0;border-left:4px solid #2c6e9b;border-radius:8px;padding:10px 12px;background:#eef6fb;color:#344653;font-size:12px;line-height:1.5}
.auth-gate-message.show{display:block}
.auth-gate-message.bad{border-left-color:#a33a3a;background:#fff0f0;color:#822d2d}
.auth-gate-message.ok{border-left-color:#347048;background:#edf7f0;color:#255c35}
.auth-gate-security{display:flex;align-items:center;justify-content:center;gap:7px;margin:18px 0 0;color:#71808a;font-size:11px;text-align:center}
.auth-gate-security::before{content:"\1F512";font-size:12px}

@media(max-width:520px){
  .auth-gate{padding:0;place-items:stretch;background:#fff}
  .auth-gate-card{width:100%;min-height:100vh;border:0;border-radius:0;box-shadow:none}
  .auth-gate-brand{padding:24px 20px}
  .auth-gate-body{padding:28px 20px}
}
