/* ===== Base ===== */
:root{
/* Color styles */
--neutral--100: #E5E5E7;
--neutral--200: #D7D8DB;
--neutral--300: #CACCCF;
--neutral--400: #BDBFC2;
--neutral--500: #B0B2B6;
--neutral--600: #95989E;
--neutral--700: #6E7178;
--neutral--800: #494C50;
--neutral--900: #252628;
--primary--100: #B3C1DD;
--primary--200: #8DA3CC;
--primary--300: #6884BA;
--primary--400: #4967A2;
--primary--500: #273756;
--primary--600: #1D2941;
--primary--700: #141B2B;
--primary--800: #141B2B;
--success--100: #DAEFE0;
--success--200: #B4DEC0;
--success--300: #8FCEA1;
--success--400: #69BD81;
--success--500: #49A764;
--success--600: #39824E;
--success--700: #2B623B;
--success--800: #1C4127;
--warning--100: #F3EDCE;
--warning--200: #EDE4B5;
--warning--300: #E7DB9C;
--warning--400: #E2D383;
--warning--500: #DCCA6B;
--warning--600: #D0B839;
--warning--700: #A18D26;
--warning--800: #6B5E19;
--error--100: #FEE5E1;
--error--200: #FECAC2;
--error--300: #FDB0A4;
--error--400: #FC9586;
--error--500: #FC7A67;
--error--600: #FB6049;
--error--700: #EE2305;
--error--800: #9F1803;
--Gradient-Macy: linear-gradient(117deg, var(--primary--500) 17.67%, var(--primary--400) 82.33%);

/* Text-size styles */
/* base size: paragraph---regular (16px) */
--display-01---regular: 3rem;
--display-01---bold: 3rem;
--display-01---extrabold: 3rem;
--display-02---regular: 2.5rem;
--display-02---bold: 2.5rem;
--display-02---extrabold: 2.5rem;
--h1---regular: 2.06rem;
--h1---bold: 2.06rem;
--h1---extrabold: 2.06rem;
--h2---regular: 1.75rem;
--h2---bold: 1.75rem;
--h2---extrabold: 1.75rem;
--h3---regular: 1.44rem;
--h3---bold: 1.44rem;
--h3---extrabold: 1.44rem;
--h4---regular: 1.19rem;
--h4---bold: 1.19rem;
--h4---extrabold: 1.19rem;
--paragraph---regular: 1rem;
--paragraph---bold: 1rem;
--paragraph---extrabold: 1rem;
--caption---regular: 0.81rem;
--caption---bold: 0.81rem;
--caption---extrabold: 0.81rem;
--footer---regular: 0.69rem;
--footer---bold: 0.69rem;
--footer---extrabold: 0.69rem;
--datos---regular: 0.5rem;
--datos---bold: 0.5rem;
--datos---extra-bold: 0.5rem;

/* Effect styles */
--sombra:  0px 13px 27px rgba(25, 37, 50, 0.15), 0px 8px 16px rgba(25, 37, 50, 0.2), 0px -6px 16px rgba(25, 37, 50, 0.03), 0px 0px 0px rgba(25, 37, 50, 0.1);
}
/* =========================
   LOGIN (scoped por .login-page)
   ========================= */

*{ box-sizing: border-box; }

html, body{ height: 100%; 
font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;}

body{
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Contenedor SOLO login */
.login-page{
  min-height: 100vh;
  color: #fff;
  background: var(--Gradient-Macy, linear-gradient(117deg, var(--primary--500, #273756) 17.67%, var(--primary--400, #425D93) 82.33%));
}

/* Layout general */
.login-page #main{
  min-height: 100vh;
  padding: 48px 20px 40px;
  display: flex;
  justify-content: center;
}

.login-page #content.page-content{
  width: 100%;
  max-width: 760px;
  text-align: center;
}

/* Evitar depender de Bootstrap si no está */
.login-page .row{
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-page .d-flex{ display: flex; }
.login-page .flex-column{ flex-direction: column; }
.login-page .justify-content-end{ justify-content: flex-end; }

/* ===== Logo ===== */
.login-page #content .row:first-of-type{
  margin-top: 10px !important;
  margin-bottom: 40px !important;
}

.login-page #content .row img{
  display: block;
  margin: 0 auto;
  width: 140px;
  height: auto;
}

/* ===== Botón volver ===== */
.login-page .elementor-button.auth{
  position: absolute;
  left: 70px;
  top: 155px;
  width: 66px;
  height: 44px;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.20);
  border: 0;
}

.login-page .elementor-button.auth .elementor-button-text{ font-size: 0; }

.login-page .elementor-button.auth::before{
  content: "";
  width: 10px;
  height: 10px;
  border-left: 2px solid rgba(0,0,0,.85);
  transform: rotate(45deg);
  margin-left: 4px;
}

.login-page .elementor-button.auth:hover{ transform: translateY(-1px); }

/* ===== Título ===== */
.login-page .page-header-login{
  margin-top: 40px;
  margin-bottom: 42px;
}

.login-page .page-title{
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: clamp(28px, 3.2vw, 44px);
  line-height: 1.1;
  color: rgba(255,255,255,.95);
}

/* ===== Form ===== */
.login-page .login-form{
  display: flex;
  justify-content: center;
}

.login-page .login-form form{
  width: 100%;
  max-width: 420px;
  text-align: left;
  background: transparent;
}

/* labels */
.login-page .login-form label{
  display: block;
  font-size: 12px;
  color: rgba(255,255,255,.70);
  margin: 0 0 8px 6px;
  letter-spacing: .02em;
}

/* neutraliza grid bootstrap si existe */
.login-page .form-group{ margin-bottom: 22px; }
.login-page .form-group.row,
.login-page .form-group.row.align-items-center{
  display: block;
  margin: 0 0 22px;
}
.login-page .col-md-2,
.login-page .col-md-8,
.login-page .col-md-2.form-control-comment{
  width: 100%;
  padding: 0;
}

/* ===== INPUTS (Figma) ===== */
.login-page .form-control{
  width: 100%;
  height: 56px;
  padding: 0 18px;
  background: transparent !important;

  border-radius: 20px;
  border: 1px solid var(--neutral--100, #E5E5E7);

  font-family: "Barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;

  color: #fff;
  outline: none;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
}

.login-page .form-control::placeholder{
  color: var(--neutral--600, #95989E);
  opacity: 1;
}

/* ===== Password: candado + ojo, borde redondeado perfecto ===== */
.login-page .input-group{
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden; /* asegura que la esquina derecha se recorte */
}

/* el input dentro del grupo no “rompe” el radio */
.login-page .input-group .form-control{
  padding-left: 54px;   /* hueco candado */
  padding-right: 62px;  /* hueco ojo */
  border-right: 0;      /* evita doble borde con el botón */
  border-radius: 20px;
}

/* candado */
.login-page .input-group::before{
  content: "";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  opacity: .65;
  background-repeat: no-repeat;
  background-size: 20px 20px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'/%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'/%3E%3C/svg%3E");
}

/* botón ojo: ocupa todo el alto del input para que el borde sea continuo */
.login-page .input-group-append{
  position: absolute;
  right: 0;
  top: 0;
  height: 56px;
  width: 56px;
}

.login-page #toggle-password,
.login-page .input-group-append .btn{
  height: 56px;
  width: 56px;
  border-radius: 0 20px 20px 0;
  border: 1px solid var(--neutral--100, #E5E5E7);
  border-left: 0;
  background: transparent !important;
  color: rgba(255,255,255,.55);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.login-page #toggle-password:hover,
.login-page .input-group-append .btn:hover{
  color: rgba(255,255,255,.90);
  background: rgba(255,255,255,.06);
}

/* ===== Submit ===== */
.login-page .form-footer{ margin-top: 26px; }

.login-page #submit-login,
.login-page .form-control-submit{
  width: 100%;
  height: 56px;
  border-radius: 18px;
  border: 0;
  background: var(--primary--600, #1D2941);
  color: #fff;
  font-weight: 700;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 16px 40px rgba(0,0,0,.25);
}

.login-page #submit-login:hover,
.login-page .form-control-submit:hover{
  background: var(--primary--700, #141B2B);
  transform: translateY(-1px);
}
.recaptcha-wrap{
  display: flex;
  justify-content: center;
}
.header-actions,
.back-btn-wrap{
  display: flex;
  justify-content: flex-start; /* izquierda */
  align-items: center;
}

/* ===== Botón Volver atrás (alineado con el contenido) ===== */
/* Colócalo dentro de la MISMA columna que tu contenido (p.ej. col-md-8 offset-md-2).
   Este CSS evita centrados heredados (text-align:center o justify-content:center). */
.back-btn-wrap{
  margin-bottom: 32px;
}
.back-btn{
  --h: 44px;
  --pad: 10px;
  --radius: 999px;
  --bg: #ffffff;
  --border: rgba(39,55,86,.18);

  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;

  height: var(--h);
  padding: 0 var(--pad);
  border-radius: var(--radius);

  border: 1px solid var(--border);
  background: var(--bg);
  cursor: pointer;

  /* Colapsado (solo icono) */
  width: calc(26px + (var(--pad) * 2));
  overflow: hidden;

  /* Alineación a la izquierda */
  margin: 0;
  margin-right: auto;

  transition: width .22s ease, box-shadow .22s ease, border-color .22s ease, transform .12s ease;
  box-shadow: 0 0 0 rgba(0,0,0,0);
}

/* Si algún padre lo estaba centrando, esto lo neutraliza cuando el botón está dentro */
.col-12 .back-btn,
.col-md-8 .back-btn{
  align-self: flex-start;
}

.back-btn__icon{
  display: inline-flex;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
}

.back-btn__text{
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .18s ease, transform .18s ease;
  color: #273756;
  font-family: "barlow", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  font: "barlow", 500 14px/1.1 system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

/* Hover/focus: se despliega hacia la derecha y aparece el texto */
.back-btn:hover,
.back-btn:focus-visible{
  width: 170px; /* ajusta si necesitas más/menos */
  border-color: rgba(39,55,86,.28);
  box-shadow: 0 8px 18px rgba(0,0,0,.08);
  outline: none;
}

.back-btn:hover .back-btn__text,
.back-btn:focus-visible .back-btn__text{
  opacity: 1;
  transform: translateX(0);
}

.back-btn:active{
  transform: translateY(1px);
}

/* Accesibilidad: si el usuario reduce movimiento, sin animaciones */
@media (prefers-reduced-motion: reduce){
  .back-btn,
  .back-btn__text{
    transition: none;
  }
}


/* ===== Responsive ===== */
@media (max-width: 900px){
  .elementor-button.auth{
    position: static;
    margin: 0 auto 18px;
  }
  #main{ padding-top: 28px; }
}

@media (max-width: 520px){
  #content.page-content{ max-width: 440px; }
  .login-form form{ max-width: 100%; }
}
/* Evitar que el autofill cambie el look (Chrome/Edge/Safari) */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus{
  -webkit-text-fill-color: #fff !important;  /* <- texto blanco */
  caret-color: #fff !important;
  -webkit-box-shadow: 0 0 0px 1000px transparent inset !important; /* quita el fondo amarillo */
  box-shadow: 0 0 0px 1000px transparent inset !important;
  transition: background-color 999999s ease-in-out 0s !important;  /* truco anti “flash” */
  background-color: transparent !important;
}

/* Por si tu input tiene fondo transparente */
input, textarea, select{
  background-color: transparent;
}
.login-page #submit-login,
.login-page .form-control-submit{
  height: 56px;
  line-height: 56px;   /* centra el texto en vertical */
  padding: 0;          /* evita que desplace */
  text-align: center;
}