
:root{--blue:#355c7d;--blue-dark:#284861;--bg:#f3f1ed;--border:#e2dcd4;--text:#26384b;--muted:#7f8b97}
*{box-sizing:border-box}body{margin:0;min-height:100vh;font-family:"Segoe UI",Arial,sans-serif;color:var(--text);background:radial-gradient(circle at 15% 20%,rgba(53,92,125,.10),transparent 32%),radial-gradient(circle at 85% 80%,rgba(198,137,77,.10),transparent 30%),var(--bg)}
.auth-shell{min-height:100vh;display:grid;place-items:center;padding:28px 16px}
.auth-card{width:min(430px,100%);padding:28px;border:1px solid var(--border);border-radius:20px;background:rgba(255,255,255,.98);box-shadow:0 22px 55px rgba(38,56,75,.12)}
.auth-card-wide{width:min(500px,100%)}.auth-brand{display:flex;align-items:center;gap:12px}.auth-logo{width:48px;height:48px;display:grid;place-items:center;border-radius:13px;background:var(--blue);color:#fff;font-weight:900;font-size:17px}.auth-brand h1{margin:0;font-size:22px}.auth-brand p{margin:3px 0 0;color:var(--muted);font-size:12px}.auth-intro{margin-top:25px;padding-top:20px;border-top:1px solid var(--border)}.auth-intro strong{display:block;font-size:18px}.auth-intro span{display:block;margin-top:4px;color:var(--muted);font-size:12px}.auth-alert,.setup-note{margin-top:16px;padding:11px 13px;border-radius:10px;font-size:12px;line-height:1.4}.auth-alert{color:#85362f;border:1px solid #e8c6c2;background:#fff2f0}.setup-note{color:#516274;border:1px solid #dce5eb;background:#f3f8fb}.auth-form{margin-top:18px;display:grid;gap:14px}.auth-form label>span{display:block;margin-bottom:6px;font-size:12px;font-weight:700}.auth-form label>small{display:block;margin-top:5px;color:var(--muted);font-size:10px}.auth-form input{width:100%;height:44px;padding:0 12px;border:1px solid #d8d2ca;border-radius:10px;outline:none;background:#fff;color:var(--text);font-size:14px}.auth-form input:focus{border-color:#7d9ab0;box-shadow:0 0 0 3px rgba(53,92,125,.09)}.password-wrap{position:relative}.password-wrap input{padding-right:70px}.password-toggle{position:absolute;right:5px;top:5px;bottom:5px;border:0;border-radius:7px;padding:0 10px;background:#eef3f6;color:var(--blue);cursor:pointer;font-weight:700}.auth-submit{height:46px;margin-top:4px;border:0;border-radius:11px;background:var(--blue);color:#fff;cursor:pointer;font-weight:800}.auth-submit:hover{background:var(--blue-dark)}.auth-security{margin-top:18px;display:flex;gap:8px;padding-top:16px;border-top:1px solid var(--border)}.auth-security p{margin:0;color:var(--muted);font-size:10px;line-height:1.4}


/* V29 - CUENTA SIMPLE: usuario + contraseña */
.role-info-card {
  display: flex;
  align-items: center;
  gap: 9px;

  padding: 10px 11px;

  border: 1px solid #dce6ec;
  border-radius: 10px;

  background: #f3f8fb;
}

.role-info-icon {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;

  display: grid;
  place-items: center;

  border-radius: 8px;

  background: #355c7d;
  color: #fff;

  font-size: 11px;
  font-weight: 900;
}

.role-info-card strong {
  display: block;
  color: #35536d;
  font-size: 10px;
}

.role-info-card small {
  display: block;
  margin-top: 2px;

  color: #73818e;
  font-size: 8px;
  line-height: 1.3;
}


/* V31 - nombre visible de la cuenta */
.auth-intro span {
  max-width: 340px;
  line-height: 1.45;
}


/* =========================================================
   V46 - LOGIN · IDENTIDAD INSTITUCIONAL DRTC
   ========================================================= */
:root {
  --drtc-blue: #095caa;
  --drtc-blue-dark: #074a89;
  --drtc-blue-soft: #eef5fb;
  --drtc-blue-border: #b9d1e7;
  --drtc-yellow: #f3b404;
  --drtc-yellow-dark: #d99f00;
  --drtc-yellow-soft: #fff8df;
  --drtc-yellow-border: #ead58f;
  --drtc-charcoal: #282829;
  --drtc-navy: #33446a;
  --drtc-bg: #f3f5f7;
  --drtc-border: #dce2e8;
}

body {
  background:
    radial-gradient(circle at 12% 18%,rgba(9,92,170,.10),transparent 30%),
    radial-gradient(circle at 88% 82%,rgba(243,180,4,.12),transparent 28%),
    var(--drtc-bg) !important;
  color: var(--drtc-charcoal) !important;
}

.auth-card {
  position: relative;
  overflow: hidden;
  width: min(460px,100%) !important;
  padding: 30px !important;
  border: 1px solid var(--drtc-border) !important;
  border-top: 6px solid var(--drtc-yellow) !important;
  background: rgba(255,255,255,.985) !important;
  box-shadow: 0 24px 60px rgba(40,40,41,.14) !important;
}

.auth-card::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg,var(--drtc-blue) 0 72%,var(--drtc-yellow) 72% 100%);
}

.auth-brand-drtc {
  display: block !important;
  text-align: center;
}

.auth-drtc-logo {
  display: block;
  width: min(330px,92%);
  height: auto;
  margin: 0 auto 17px;
  object-fit: contain;
}

.auth-app-name {
  padding-top: 14px;
  border-top: 1px solid var(--drtc-border);
}
.auth-app-name h1 {
  margin: 0;
  color: var(--drtc-charcoal) !important;
  font-size: 25px !important;
  font-weight: 800;
}
.auth-app-name p {
  margin: 5px 0 0 !important;
  color: var(--drtc-navy) !important;
  font-size: 11px !important;
}

.auth-intro {
  margin-top: 20px !important;
  padding: 14px 15px !important;
  border: 1px solid var(--drtc-blue-border) !important;
  border-radius: 11px;
  background: var(--drtc-blue-soft);
}
.auth-intro strong {
  color: var(--drtc-blue-dark) !important;
  font-size: 16px !important;
}
.auth-intro span {
  color: #64717c !important;
  font-size: 11px !important;
}

.auth-form label > span {
  color: var(--drtc-charcoal) !important;
  font-size: 12px !important;
}
.auth-form input {
  height: 46px !important;
  border-color: var(--drtc-border) !important;
  font-size: 14px !important;
}
.auth-form input:focus {
  border-color: var(--drtc-blue) !important;
  box-shadow: 0 0 0 3px rgba(9,92,170,.11) !important;
}

.password-toggle {
  background: var(--drtc-yellow-soft) !important;
  color: #6e5100 !important;
  border: 1px solid var(--drtc-yellow-border) !important;
}

.auth-submit {
  height: 48px !important;
  background: var(--drtc-blue) !important;
  color: #fff !important;
  font-size: 12px !important;
  box-shadow: 0 4px 12px rgba(9,92,170,.16);
}
.auth-submit:hover {
  background: var(--drtc-blue-dark) !important;
}

.setup-note {
  border-color: var(--drtc-yellow-border) !important;
  background: var(--drtc-yellow-soft) !important;
  color: #6b5000 !important;
}
.auth-security {
  border-top-color: var(--drtc-border) !important;
}
.auth-security span { color: var(--drtc-blue) !important; }
.auth-security p { color: #78838d !important; }

.manual-link {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--drtc-blue-border);
  border-radius: 11px;
  background: #fff;
  text-decoration: none;
  color: var(--drtc-charcoal);
  transition: background .2s, border-color .2s, box-shadow .2s;
}

.manual-link:hover {
  background: var(--drtc-blue-soft);
  border-color: var(--drtc-blue);
  box-shadow: 0 0 0 3px rgba(9,92,170,.08);
}

.manual-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--drtc-yellow-soft);
  border: 1px solid var(--drtc-yellow-border);
  font-size: 18px;
  flex: 0 0 38px;
}

.manual-copy strong {
  display: block;
  font-weight: 800;
  font-size: 13px;
  color: var(--drtc-blue-dark);
  line-height: 1.2;
}

.manual-copy small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  color: #78838d;
  line-height: 1.3;
}

@media (max-width: 520px) {
  .auth-card { padding: 22px !important; }
  .auth-drtc-logo { width: 94%; }
}


/* =========================================================
   V47 - FONDO INSTITUCIONAL DRTC EN EL LOGIN
   Usa la imagen proporcionada por el usuario como fondo completo.
   ========================================================= */
body {
  min-height: 100vh;

  background-image:
    linear-gradient(
      rgba(255,255,255,.04),
      rgba(255,255,255,.04)
    ),
    url("drtc-login-background.png") !important;

  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
}

.auth-shell {
  min-height: 100vh;
  padding: 28px 16px;
}

/* La tarjeta conserva contraste sobre el fondo gráfico. */
.auth-card {
  background: rgba(255,255,255,.965) !important;
  border-color: rgba(210,218,226,.95) !important;

  box-shadow:
    0 26px 65px rgba(26,48,72,.18),
    0 5px 18px rgba(26,48,72,.08) !important;

  backdrop-filter: blur(3px);
}

@media (max-width: 900px) {
  body {
    background-position: center center !important;
    background-attachment: scroll !important;
  }
}
