@charset "utf-8";
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --brand:#34495E;
  --brand-dark:#17324c;
  --brand-deep:#0e2942;
  --brand-soft:#eef3f7;
  --accent:#ff5a13;
  --text:#17324c;
  --muted:#748395;
  --line:#dce4eb;
  --danger:#d93838;
  --white:#ffffff;
  --shadow:0 24px 60px rgba(25,48,71,.12);
  --page-bg:#f5f7f9;
  --main-bg:#ffffff;
  --card-bg:rgba(255,255,255,.98);
  --input-bg:#ffffff;
  --input-text:#2d4052;
  --subtitle:#44576a;
  --footer:#7a8998;
  --link:#1675cf;
}

html{color-scheme:light;}
html[data-theme="dark"]{
  color-scheme:dark;
  --brand:#5f7890;
  --brand-dark:#1a3349;
  --brand-deep:#e7eef5;
  --brand-soft:#1b2a38;
  --text:#e8eef4;
  --muted:#9eacb9;
  --line:#314658;
  --white:#ffffff;
  --shadow:0 24px 60px rgba(0,0,0,.32);
  --page-bg:#0f1d2a;
  --main-bg:#142432;
  --card-bg:rgba(24,39,52,.97);
  --input-bg:#10202d;
  --input-text:#eef4f8;
  --subtitle:#aebbc6;
  --footer:#91a0ad;
  --link:#73b7ff;
}


*{box-sizing:border-box;margin:0;padding:0}
html,body{min-height:100%;font-family:'Inter',Arial,sans-serif;background:var(--page-bg);color:var(--text);transition:background-color .25s ease,color .25s ease}
body{min-height:100vh}
button,input{font:inherit}
a{color:inherit}

.login-shell{
  min-height:100vh;
  display:grid;
  grid-template-columns:minmax(520px,56%) minmax(360px,44%);
  background:var(--main-bg);
}


.login-main{
  position:relative;
  min-width:0;
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  padding:44px 7vw 84px;
  overflow:hidden;
  background:#ffffff;
}

.brand-logo{
  display:block;
  width:min(440px,78%);
  height:auto;
  margin:0 auto 28px;
  object-fit:contain;
}

.login-card{
  width:min(100%,520px);
  background:var(--card-bg);
  border:1px solid rgba(52,73,94,.08);
  border-radius:20px;
  box-shadow:var(--shadow);
  padding:32px 34px 28px;
}

.login-title{text-align:center;font-size:28px;line-height:1.2;font-weight:800;letter-spacing:-.5px;color:var(--brand-deep)}
.login-subtitle{text-align:center;margin:9px 0 26px;color:var(--subtitle);font-size:14px;line-height:1.55}

.field{margin-top:18px}
.field-label{display:block;margin-bottom:8px;font-size:11px;font-weight:800;letter-spacing:.45px;color:var(--brand-deep)}
.required{color:var(--accent)}
.input-wrap{position:relative}
.input-wrap input{
  width:100%;height:48px;padding:0 15px;
  border:1px solid var(--line);border-radius:8px;background:var(--input-bg);
  color:var(--input-text);font-size:13px;letter-spacing:.1px;outline:none;
  transition:border-color .18s ease,box-shadow .18s ease,background .18s ease;
}
.input-wrap input::placeholder{color:#9aa7b4}
.input-wrap input:focus{border-color:#6f879d;box-shadow:0 0 0 4px rgba(86,121,151,.16);background:var(--input-bg)}
.password-wrap input{padding-right:52px}
.btn_eye{position:absolute;right:15px;top:50%;transform:translateY(-50%);font-size:21px;color:var(--brand);cursor:pointer;z-index:2;line-height:1;transition:color .18s ease,transform .18s ease}
.btn_eye:hover{color:var(--accent);transform:translateY(-50%) scale(1.05)}

.line_btn{margin-top:24px}
.btn01{
  width:100%;height:50px;border:0;border-radius:8px;cursor:pointer;
  color:#fff;background:linear-gradient(135deg,var(--brand) 0%,var(--brand-deep) 100%);
  display:flex;align-items:center;justify-content:center;gap:9px;
  font-size:14px;font-weight:700;letter-spacing:.2px;
  box-shadow:0 8px 18px rgba(23,50,76,.18);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.btn01:hover{transform:translateY(-1px);box-shadow:0 11px 22px rgba(23,50,76,.24);filter:brightness(1.04)}
.btn01:active{transform:translateY(0)}

.login-links{margin-top:19px;text-align:center;font-size:12px;line-height:1.8;color:var(--muted)}
.login-links a{color:var(--link);text-decoration:none;font-weight:600}
.login-links a:hover{text-decoration:underline}
.login-links .secondary{display:block;margin-top:4px;color:var(--muted)}
.login-links .secondary a{color:var(--muted)}

.page-footer{position:absolute;left:7vw;right:7vw;bottom:28px;text-align:center;color:var(--footer);font-size:11px}

.hero{
  min-width:0;
  min-height:100vh;
  position:relative;
  overflow:hidden;
  background-image:
    linear-gradient(180deg,rgba(8,28,43,.12),rgba(8,28,43,.34)),
    var(--hero-image);
  background-size:cover;
  background-position:center center;
  background-repeat:no-repeat;
}
.hero::after{
  content:"";
  position:absolute;
  inset:0;
  pointer-events:none;
  background:linear-gradient(90deg,rgba(10,31,47,.08),rgba(10,31,47,.02) 45%,rgba(10,31,47,.16));
}

.error{display:none;margin-top:14px;padding:10px 12px;border-radius:7px;background:#fff0ed;border:1px solid #ffb7a4;color:#a9311d;text-align:center;font-size:12px;line-height:1.45}
.theme-toggle{
  position:absolute;top:24px;right:28px;z-index:20;
  width:52px;height:30px;padding:3px;border:1px solid rgba(52,73,94,.18);border-radius:999px;
  background:#edf2f6;color:#34495E;cursor:pointer;display:flex;align-items:center;justify-content:space-between;
  box-shadow:0 8px 20px rgba(25,48,71,.10);transition:background .25s ease,border-color .25s ease,transform .18s ease;
}
.theme-toggle:hover{transform:translateY(-1px)}
.theme-toggle__sun,.theme-toggle__moon{width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:14px;line-height:1;transition:opacity .2s ease,background .2s ease,color .2s ease}
.theme-toggle__sun{background:#fff;color:#f59f00;box-shadow:0 2px 7px rgba(0,0,0,.10)}
.theme-toggle__moon{opacity:.55;color:#34495E}
html[data-theme="dark"] .theme-toggle{background:#0c1924;border-color:#355064;color:#eef4f8}
html[data-theme="dark"] .theme-toggle__sun{background:transparent;box-shadow:none;opacity:.55}
html[data-theme="dark"] .theme-toggle__moon{background:#34495E;color:#fff;opacity:1;box-shadow:0 2px 7px rgba(0,0,0,.28)}

html[data-theme="dark"] .login-main{background:#142432;}
html[data-theme="dark"] .login-card{border-color:rgba(255,255,255,.08)}
html[data-theme="dark"] .brand-logo{filter:drop-shadow(0 10px 22px rgba(0,0,0,.28))}
html[data-theme="dark"] .input-wrap input::placeholder{color:#758796}
html[data-theme="dark"] .btn_eye{color:#a9bac8}
html[data-theme="dark"] .btn_eye:hover{color:var(--accent)}
html[data-theme="dark"] .btn01{background:linear-gradient(135deg,#405b72 0%,#17324c 100%);box-shadow:0 8px 18px rgba(0,0,0,.28)}
html[data-theme="dark"] .error{background:#3a1f1a;border-color:#704135;color:#ffb6a4}
html[data-theme="dark"] .hero{
  background-image:
    linear-gradient(180deg,rgba(4,15,24,.32),rgba(4,15,24,.56)),
    var(--hero-image);
}


@media (max-width:1100px){
  .login-shell{grid-template-columns:58% 42%}
  .login-main{padding-left:5vw;padding-right:5vw}
  .login-card{padding:28px 28px 24px}
  .brand-logo{width:min(390px,82%);margin-bottom:24px}
  .hero{background-position:center center}
}

@media (max-width:767px){
  body{background:var(--page-bg)}
  .login-shell{display:flex;flex-direction:column;min-height:100vh;background:var(--page-bg)}
  .hero{order:1;min-height:220px;height:220px;border-radius:0 0 28px 28px;background-position:center 54%}
  .login-main{order:2;justify-content:flex-start;padding:24px 16px 78px;background:transparent;overflow:visible}
  .theme-toggle{top:16px;right:16px}
  .brand-logo{width:min(300px,78vw);margin:0 auto 18px}
  .login-card{width:min(100%,480px);border-radius:16px;padding:24px 18px 22px;box-shadow:0 16px 34px rgba(25,48,71,.12)}
  .login-title{font-size:24px}
  .login-subtitle{font-size:12px;margin-bottom:22px}
  .field{margin-top:15px}
  .input-wrap input{height:46px;font-size:13px}
  .btn01{height:48px}
  .page-footer{position:static;margin-top:26px;font-size:10px}
}

@media (max-width:390px){
  .hero{height:195px;min-height:195px;background-position:center 56%}
  .login-main{padding-left:12px;padding-right:12px}
  .login-card{padding-left:15px;padding-right:15px}
  .brand-logo{width:82vw}
}

@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition:none!important}
}


/* =========================================================
   AVISO TEMPORAL · NUEVO ACCESO HELPDESK · HASTA 07-SEP-2026 18:00
   ========================================================= */

body.notice-open{
  overflow:hidden;
}

.redesign-notice{
  position:fixed;
  inset:0;
  z-index:10000;
  display:grid;
  place-items:center;
  padding:24px;
  opacity:1;
  transition:opacity .18s ease;
}

.redesign-notice--closing{
  opacity:0;
  pointer-events:none;
}

.redesign-notice__backdrop{
  position:absolute;
  inset:0;
  background:rgba(10,23,34,.72);
  backdrop-filter:blur(4px);
  -webkit-backdrop-filter:blur(4px);
}

.redesign-notice__card{
  position:relative;
  z-index:1;
  width:min(100%,560px);
  max-height:calc(100vh - 48px);
  overflow:auto;
  padding:34px 38px 28px;
  border:1px solid rgba(52,73,94,.10);
  border-radius:22px;
  background:var(--card-bg);
  color:var(--text);
  box-shadow:0 28px 80px rgba(5,24,39,.35);
  text-align:center;
}

.redesign-notice__icon{
  width:78px;
  height:78px;
  margin:0 auto 15px;
  display:grid;
  place-items:center;
  border-radius:24px;
  background:linear-gradient(145deg,#eef6ff,#dbeaff);
  color:#176bc1;
}

.redesign-notice__icon svg{
  width:48px;
  height:48px;
  fill:none;
  stroke:currentColor;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.redesign-notice__eyebrow{
  margin-bottom:6px;
  color:var(--accent);
  font-size:10px;
  font-weight:800;
  letter-spacing:1.7px;
}

.redesign-notice__title{
  margin:0;
  color:var(--brand-deep);
  font-size:31px;
  line-height:1.18;
  font-weight:800;
  letter-spacing:-.7px;
}

.redesign-notice__rule{
  width:44px;
  height:3px;
  margin:17px auto 19px;
  border-radius:999px;
  background:#3f8fd8;
}

.redesign-notice__intro{
  max-width:455px;
  margin:0 auto;
  color:var(--subtitle);
  font-size:14px;
  line-height:1.65;
}

.redesign-notice__highlights{
  margin-top:20px;
  padding:16px 18px;
  border:1px solid var(--line);
  border-radius:14px;
  background:var(--brand-soft);
  text-align:left;
}

.redesign-notice__item{
  display:flex;
  align-items:flex-start;
  gap:10px;
  color:var(--text);
  font-size:13px;
  line-height:1.5;
}

.redesign-notice__item + .redesign-notice__item{
  margin-top:10px;
}

.redesign-notice__check{
  width:22px;
  height:22px;
  flex:0 0 22px;
  display:grid;
  place-items:center;
  margin-top:1px;
  border-radius:50%;
  background:#1d7bc8;
  color:#fff;
  font-size:13px;
  font-weight:800;
}

.redesign-notice__support{
  margin-top:18px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  text-align:left;
}

.redesign-notice__support-icon{
  width:36px;
  height:36px;
  flex:0 0 36px;
  display:grid;
  place-items:center;
  border:2px solid #4b98da;
  border-radius:50%;
  color:#1d7bc8;
  font-weight:800;
}

.redesign-notice__support strong,
.redesign-notice__support span{
  display:block;
}

.redesign-notice__support strong{
  margin-bottom:3px;
  color:var(--brand-deep);
  font-size:13px;
}

.redesign-notice__support span{
  color:var(--muted);
  font-size:12px;
  line-height:1.5;
}

.redesign-notice__continue{
  width:100%;
  height:52px;
  margin-top:23px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:14px;
  border:0;
  border-radius:9px;
  background:linear-gradient(135deg,#164f80,#0d3d65);
  color:#fff;
  font-size:14px;
  font-weight:800;
  cursor:pointer;
  box-shadow:0 10px 24px rgba(17,67,105,.23);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}

.redesign-notice__continue:hover{
  transform:translateY(-1px);
  filter:brightness(1.06);
  box-shadow:0 13px 27px rgba(17,67,105,.28);
}

.redesign-notice__continue:active{
  transform:translateY(0);
}

.redesign-notice__arrow{
  font-size:20px;
  line-height:1;
}

.redesign-notice__until{
  margin-top:17px;
  color:var(--muted);
  font-size:10px;
  line-height:1.5;
}

/* Modo oscuro */
html[data-theme="dark"] .redesign-notice__backdrop{
  background:rgba(3,12,19,.78);
}

html[data-theme="dark"] .redesign-notice__card{
  border-color:rgba(255,255,255,.08);
  background:#182a38;
  box-shadow:0 30px 90px rgba(0,0,0,.52);
}

html[data-theme="dark"] .redesign-notice__icon{
  background:#213b50;
  color:#8dc8ff;
}

html[data-theme="dark"] .redesign-notice__title,
html[data-theme="dark"] .redesign-notice__support strong{
  color:#f4f8fb;
}

html[data-theme="dark"] .redesign-notice__highlights{
  background:#142533;
  border-color:#314658;
}

html[data-theme="dark"] .redesign-notice__continue{
  background:linear-gradient(135deg,#3e607a,#203f57);
}

@media (max-width:767px){
  .redesign-notice{
    padding:14px;
    align-items:center;
  }

  .redesign-notice__card{
    width:min(100%,500px);
    max-height:calc(100svh - 28px);
    padding:28px 20px 22px;
    border-radius:18px;
  }

  .redesign-notice__icon{
    width:64px;
    height:64px;
    border-radius:20px;
  }

  .redesign-notice__icon svg{
    width:40px;
    height:40px;
  }

  .redesign-notice__title{
    font-size:26px;
  }

  .redesign-notice__intro{
    font-size:13px;
  }

  .redesign-notice__highlights{
    padding:14px;
  }

  .redesign-notice__item{
    font-size:12px;
  }

  .redesign-notice__continue{
    height:49px;
  }
}

@media (max-width:390px){
  .redesign-notice__card{
    padding-left:16px;
    padding-right:16px;
  }

  .redesign-notice__title{
    font-size:23px;
  }

  .redesign-notice__support{
    gap:9px;
  }
}


/* =========================================================
   ACCESO V2 · SIN LOADER DE PANTALLA
   Spinner en botón + cursor de espera del sistema
   ========================================================= */

/* Defensa adicional: si algún JS externo intenta mostrar un loader antiguo,
   nunca será visible. */
#loader,
.loader{
  display:none !important;
  visibility:hidden !important;
  opacity:0 !important;
  pointer-events:none !important;
}

/* El reloj de arena va en el CURSOR, no dentro del botón.
   "wait" usa el indicador nativo del sistema operativo/navegador. */
body.login-busy,
body.login-busy *{
  cursor:wait !important;
}

.btn01{
  position:relative;
  overflow:hidden;
}

.btn01__normal,
.btn01__spinner{
  flex:0 0 auto;
  align-items:center;
  justify-content:center;
}

.btn01__normal{
  display:inline-flex;
}

.btn01__spinner{
  display:none;
  width:18px;
  height:18px;
  border:2px solid rgba(255,255,255,.35);
  border-top-color:#fff;
  border-radius:50%;
  animation:helpdesk-login-spinner .72s linear infinite;
}

.btn01.is-loading .btn01__normal{
  display:none;
}

.btn01.is-loading .btn01__spinner{
  display:inline-flex;
}

.btn01.is-loading,
.btn01:disabled{
  pointer-events:none;
  transform:none !important;
  filter:none !important;
  opacity:.96;
  box-shadow:0 8px 18px rgba(23,50,76,.14);
}

@keyframes helpdesk-login-spinner{
  to{transform:rotate(360deg);}
}

@media (prefers-reduced-motion:reduce){
  .btn01__spinner{
    animation:none !important;
  }
}

/* =========================================================
   LOGIN PRINCIPAL · AJUSTE DE ALTURA EN PC · 2026-09-05
   Evita scroll vertical cuando todo el contenido cabe.
   ========================================================= */
@media (min-width:768px){
  html,
  body{
    width:100%;
    height:100%;
    min-height:100%;
    overflow:hidden;
  }

  .login-shell{
    height:100vh;
    height:100svh;
    min-height:0;
    overflow:hidden;
  }

  .login-main{
    height:100%;
    min-height:0;
    padding-top:24px;
    padding-bottom:54px;
  }

  .brand-logo{
    margin-bottom:18px;
  }

  .login-card{
    padding-top:26px;
    padding-bottom:24px;
  }

  .login-subtitle{
    margin-bottom:20px;
  }

  .field{
    margin-top:15px;
  }

  .line_btn{
    margin-top:20px;
  }

  .login-links{
    margin-top:15px;
  }

  .hero{
    height:100%;
    min-height:0;
  }

  .page-footer{
    bottom:18px;
  }
}

/* =========================================================
   MODAL · NUEVO ACCESO HELPDESK
   Vigente hasta 07-SEP-2026 18:00 · America/Mexico_City
   ========================================================= */
.login-update-notice__card{
  width:min(100%,620px);
  padding:30px 34px 24px;
}

.login-update-notice__icon{
  width:72px;
  height:72px;
  margin:0 auto 14px;
  display:grid;
  place-items:center;
  border-radius:22px;
  background:linear-gradient(145deg,#eef6ff,#dcecff);
  color:#176bc1;
}

.login-update-notice__icon svg{
  width:42px;
  height:42px;
  fill:none;
  stroke:currentColor;
  stroke-width:3;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.login-update-notice__section{
  margin-top:20px;
  text-align:left;
}

.login-update-notice__section h3{
  margin:0 0 12px;
  color:var(--brand-deep);
  font-size:13px;
  line-height:1.45;
  font-weight:800;
}

.login-update-notice__access-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:9px;
}

.login-update-notice__access-item{
  display:flex;
  align-items:center;
  gap:12px;
  padding:11px 13px;
  border:1px solid var(--line);
  border-radius:12px;
  background:var(--brand-soft);
}

.login-update-notice__access-badge{
  width:42px;
  height:42px;
  flex:0 0 42px;
  display:grid;
  place-items:center;
  border-radius:11px;
  background:#1d7bc8;
  color:#fff;
  font-size:13px;
  font-weight:800;
  letter-spacing:.2px;
}

.login-update-notice__access-item strong,
.login-update-notice__access-item span{
  display:block;
}

.login-update-notice__access-item strong{
  color:var(--brand-deep);
  font-size:13px;
  line-height:1.35;
}

.login-update-notice__access-item div > span{
  margin-top:2px;
  color:var(--muted);
  font-size:11px;
  line-height:1.45;
}

.login-update-notice__note,
.login-update-notice__session{
  margin-top:14px;
  display:flex;
  align-items:flex-start;
  gap:12px;
  padding:13px 14px;
  border-radius:12px;
  text-align:left;
}

.login-update-notice__note{
  border:1px solid #f1d89b;
  background:#fff8e8;
}

.login-update-notice__session{
  border:1px solid #b9d8ef;
  background:#eef7fd;
}

.login-update-notice__note-icon,
.login-update-notice__session-icon{
  flex:0 0 auto;
  display:grid;
  place-items:center;
  font-weight:800;
}

.login-update-notice__note-icon{
  width:30px;
  height:30px;
  border-radius:50%;
  background:#f2b233;
  color:#fff;
  font-size:15px;
}

.login-update-notice__session-icon{
  width:42px;
  height:42px;
  border-radius:12px;
  background:#176bc1;
  color:#fff;
  font-size:13px;
}

.login-update-notice__note strong,
.login-update-notice__note span,
.login-update-notice__session strong,
.login-update-notice__session span{
  display:block;
}

.login-update-notice__note strong,
.login-update-notice__session strong{
  margin-bottom:3px;
  color:var(--brand-deep);
  font-size:12px;
}

.login-update-notice__note span,
.login-update-notice__session span{
  color:var(--muted);
  font-size:11px;
  line-height:1.5;
}

html[data-theme="dark"] .login-update-notice__icon{
  background:#213b50;
  color:#8dc8ff;
}

html[data-theme="dark"] .login-update-notice__access-item{
  background:#142533;
  border-color:#314658;
}

html[data-theme="dark"] .login-update-notice__access-item strong,
html[data-theme="dark"] .login-update-notice__section h3,
html[data-theme="dark"] .login-update-notice__note strong,
html[data-theme="dark"] .login-update-notice__session strong{
  color:#f4f8fb;
}

html[data-theme="dark"] .login-update-notice__note{
  background:#332c1d;
  border-color:#66552b;
}

html[data-theme="dark"] .login-update-notice__session{
  background:#152d3e;
  border-color:#315873;
}

@media (max-width:767px){
  .login-update-notice__card{
    width:min(100%,540px);
    padding:24px 18px 20px;
  }

  .login-update-notice__icon{
    width:60px;
    height:60px;
    border-radius:18px;
  }

  .login-update-notice__icon svg{
    width:36px;
    height:36px;
  }

  .login-update-notice__access-item{
    padding:10px;
  }

  .login-update-notice__access-badge{
    width:38px;
    height:38px;
    flex-basis:38px;
  }

  .login-update-notice__note,
  .login-update-notice__session{
    padding:11px 12px;
  }

  .redesign-notice__until{
    margin-top:13px;
  }
}

@media (max-width:390px){
  .login-update-notice__card{
    padding-left:14px;
    padding-right:14px;
  }

  .login-update-notice__access-item{
    gap:9px;
  }

  .login-update-notice__session{
    gap:9px;
  }
}

