* {

  box-sizing: border-box;

}



:root {

  --blue: #0a93ed;

  --blue-dark: #076bb7;

  --blue-soft: #eaf6ff;

  --green: #00aa63;

  --red: #ef3e41;

  --ink: #26313d;

  --muted: #7b8794;

  --line: #dce5ed;

  --panel: #f8fbfd;

  --white: #ffffff;

  --shadow: 0 24px 70px rgba(33, 63, 91, 0.14);

}



html,

body {

  margin: 0;

  min-height: 100%;

  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  background: #fff;

  color: var(--ink);

}



body {

  min-height: 100vh;

}



button,

input {

  font: inherit;

}



img {

  max-width: 100%;

  display: block;

}





/* ==================================================

   ESTRUCTURA GENERAL

================================================== */



.login-page {

  min-height: 100vh;

  display: grid;

  grid-template-columns: minmax(520px, 1.12fr) minmax(460px, 0.88fr);

  overflow: hidden;

  background: var(--white);

}





/* ==================================================

   PANEL IZQUIERDO

================================================== */



.visual-panel {

  position: relative;

  min-height: 100vh;

  overflow: hidden;

  padding: clamp(36px, 4vw, 64px);



  background:

    radial-gradient(

      circle at 75% 20%,

      rgba(255,255,255,.95) 0 11%,

      transparent 12%

    ),

    linear-gradient(

      140deg,

      #ffffff 0%,

      #f6fbff 48%,

      #ecf8ff 100%

    );

}





/* círculo azul decorativo */



.visual-panel__curve {

  position: absolute;

  z-index: 0;



  width: 78%;

  aspect-ratio: 1;



  left: -35%;

  bottom: -40%;



  border-radius: 50%;



  background:

    linear-gradient(

      145deg,

      #087de0 0%,

      #13a2f6 100%

    );



  box-shadow:

    0 0 0 90px rgba(15,155,244,.05),

    0 0 0 180px rgba(15,155,244,.025);

}





/* ==================================================

   SWISSCONTACT

================================================== */



.support-brand {

  position: relative;

  z-index: 20;



  display: inline-flex;

  flex-direction: column;

  align-items: flex-start;



  gap: 8px;



  padding: 18px 22px;



  border-radius: 18px;



  background:

    rgba(255,255,255,.92);



  box-shadow:

    0 12px 38px

    rgba(60,82,101,.12);



  backdrop-filter:

    blur(10px);

}



.support-brand__label {

  font-size: 12px;

  font-weight: 800;

  color: #50606f;

}



.support-brand__logo {

  width:

    clamp(

      145px,

      14vw,

      210px

    );



  height: 60px;



  object-fit: contain;

}





/* ==================================================

   ILUSTRACIÓN PRINCIPAL

================================================== */



.program-art {

  position: absolute;

  z-index: 2;



  left: 10%;

  right: 5%;

  top: 21%;



  height: 53%;

  min-height: 410px;



  overflow: hidden;



  border-radius:

    46% 54% 48% 52%

    /

    56% 48% 52% 44%;



  background: #e8f3f7;



  box-shadow:

    0 18px 55px

    rgba(55,92,112,.12),

    inset 0 0 0 1px

    rgba(255,255,255,.65);

}





/*

  La nueva imagen reemplaza:

  - program-art__city

  - program-art__hill

  - program-art__people

  - person

*/



.program-art__photo {

  position: absolute;

  inset: 0;



  z-index: 1;



  width: 100%;

  height: 100%;



  object-fit: cover;



  /*

     Ajusta este valor si quieres desplazar

     la imagen horizontalmente.

  */

  object-position: center center;



  transform: scale(1.03);



  transition:

    transform .5s ease;

}





.program-art:hover

.program-art__photo {

  transform:

    scale(1.06);

}





/*

  Overlay:

  ayuda a integrar la foto con el estilo

  claro del login.

*/



.program-art__overlay {

  position: absolute;

  inset: 0;



  z-index: 2;



  pointer-events: none;



  background:

    linear-gradient(

      to bottom,

      rgba(255,255,255,.11),

      rgba(255,255,255,0) 35%,

      rgba(0,99,68,.06)

    );

}





/* ==================================================

   LOGO BOLIVIA RECICLA

================================================== */



.program-art__badge {

  position: absolute;

  z-index: 10;



  top: 24px;

  left: 50%;



  transform:

    translateX(-50%);



  display: flex;

  align-items: center;

  justify-content: center;



  width: 175px;

  min-height: 88px;



  padding: 12px 18px;



  border-radius: 16px;



  background:

    rgba(255,255,255,.94);



  border:

    1px solid

    rgba(255,255,255,.85);



  box-shadow:

    0 10px 30px

    rgba(26,83,74,.18);



  backdrop-filter:

    blur(7px);

}





.program-art__logo {

  max-width: 138px;

  max-height: 65px;



  object-fit: contain;

}





/* ==================================================

   MENSAJE INFERIOR

================================================== */



.visual-copy {

  position: absolute;

  z-index: 30;



  left:

    clamp(

      25px,

      3vw,

      42px

    );



  bottom:

    clamp(

      20px,

      3vw,

      38px

    );



  width:

    min(

      470px,

      76%

    );



  padding:

    23px 27px;



  border-radius: 24px;



  background:

    linear-gradient(

      135deg,

      rgba(3,96,172,.94),

      rgba(11,147,228,.88)

    );



  box-shadow:

    0 20px 50px

    rgba(6,73,128,.25);



  backdrop-filter:

    blur(10px);



  border:

    1px solid

    rgba(255,255,255,.16);



  color: #fff;

}





.visual-copy__eyebrow {

  display: inline-block;



  margin-bottom: 9px;



  font-size: 13px;

  font-weight: 800;



  text-transform: uppercase;



  letter-spacing: .12em;



  opacity: .98;

}





.visual-copy h2 {

  margin:

    0 0 10px;



  font-size:

    clamp(

      24px,

      2.3vw,

      36px

    );



  line-height: 1.08;



  letter-spacing: -.04em;



  text-shadow:

    0 1px 1px

    rgba(0,0,0,.08);

}





.visual-copy p {

  margin: 0;



  max-width: 410px;



  font-size: 14px;



  line-height: 1.6;



  color:

    rgba(255,255,255,.96);

}





/* ==================================================

   PANEL DERECHO

================================================== */



.form-panel {

  min-height: 100vh;



  background: #fff;



  display: flex;



  align-items: center;

  justify-content: center;



  padding:

    clamp(

      28px,

      4vw,

      64px

    );

}





.form-panel__inner {

  width:

    min(

      100%,

      500px

    );

}





/* ==================================================

   AMIGARSE

================================================== */



.brand-header {

  display: flex;



  flex-direction: column;



  align-items: center;



  margin-bottom: 24px;

}





.brand-header__logo {

  width:

    clamp(

      170px,

      18vw,

      240px

    );



  height: auto;



  max-height: 105px;



  object-fit: contain;

}





.brand-header__tag {

  margin-top: 6px;



  padding:

    6px 11px;



  border-radius: 999px;



  background:

    var(--blue-soft);



  color:

    var(--blue-dark);



  font-size: 12px;



  font-weight: 700;

}





/* ==================================================

   TARJETA LOGIN

================================================== */



.login-card {

  padding:

    clamp(

      28px,

      4vw,

      42px

    );



  border:

    1px solid

    #edf1f5;



  border-radius: 28px;



  background: #fff;



  box-shadow:

    var(--shadow);

}





.login-card__heading {

  text-align: center;



  margin-bottom: 30px;

}





.login-card__welcome {

  margin:

    0 0 5px;



  color:

    var(--blue);



  text-transform:

    uppercase;



  letter-spacing:

    .12em;



  font-weight: 800;



  font-size: 12px;

}





.login-card__heading h1 {

  margin: 0;



  font-size:

    clamp(

      30px,

      3vw,

      42px

    );



  line-height: 1.1;



  letter-spacing:

    -.045em;

}





.login-card__heading p:last-child {

  margin:

    10px 0 0;



  color:

    var(--muted);



  font-size: 14px;

}





/* ==================================================

   FORMULARIO

================================================== */



.login-form {

  display: grid;



  gap: 20px;

}





.field {

  display: grid;



  gap: 8px;

}





.field label {

  font-size: 13px;



  font-weight: 700;



  color:

    #536170;

}





.field__control {

  position: relative;



  display: flex;



  align-items: center;



  min-height: 54px;



  border:

    1px solid

    var(--line);



  border-radius: 15px;



  background:

    #fbfdff;



  transition:

    .2s ease;

}





.field__control:focus-within {

  border-color:

    var(--blue);



  background:

    #fff;



  box-shadow:

    0 0 0 4px

    rgba(10,147,237,.10);

}





.field__icon {

  flex:

    0 0 48px;



  display: grid;



  place-items: center;



  color:

    var(--blue);

}





.field__icon svg,

.field__toggle svg,

.submit-btn svg {

  width: 20px;



  height: 20px;



  fill:

    currentColor;

}





.field input {

  min-width: 0;



  flex: 1;



  height: 52px;



  padding:

    0 14px 0 0;



  border: 0;



  outline: 0;



  background:

    transparent;



  color:

    var(--ink);



  font-size: 14px;

}





.field input::placeholder {

  color:

    #a6b0ba;

}





.field__toggle {

  width: 50px;



  height: 52px;



  border: 0;



  background:

    transparent;



  color:

    #697786;



  cursor:

    pointer;



  border-radius:

    12px;

}





.field__toggle:hover {

  color:

    var(--blue);



  background:

    var(--blue-soft);

}





.login-form__meta {

  display: flex;



  align-items: center;



  justify-content:

    space-between;



  gap: 14px;



  margin-top:

    -4px;

}





.remember {

  display:

    inline-flex;



  align-items:

    center;



  gap: 8px;



  font-size: 13px;



  color:

    #697786;



  cursor:

    pointer;

}





.remember input {

  accent-color:

    var(--blue);

}





.forgot {

  color:

    var(--blue-dark);



  text-decoration:

    none;



  font-size:

    13px;



  font-weight:

    700;

}





.forgot:hover {

  text-decoration:

    underline;

}





.submit-btn {

  min-height: 56px;



  border: 0;



  border-radius: 16px;



  display: inline-flex;



  align-items:

    center;



  justify-content:

    center;



  gap: 10px;



  background:

    linear-gradient(

      135deg,

      #0b95ee,

      #0877d0

    );



  color: #fff;



  font-weight: 800;



  text-transform:

    uppercase;



  letter-spacing:

    .02em;



  cursor:

    pointer;



  box-shadow:

    0 14px 28px

    rgba(8,125,215,.28);



  transition:

    transform .18s ease,

    box-shadow .18s ease;

}





.submit-btn:hover {

  transform:

    translateY(-2px);



  box-shadow:

    0 18px 34px

    rgba(8,125,215,.34);

}





.submit-btn:active {

  transform:

    translateY(0);

}





/* ==================================================

   MÓVIL - APOYO

================================================== */



.mobile-support {

  display: none;

}





/* ==================================================

   FOOTER

================================================== */



.form-footer {

  display: flex;



  justify-content:

    center;



  gap: 8px;



  margin-top:

    24px;



  color:

    #98a3ad;



  font-size:

    12px;

}





/* ==================================================

   TABLET

================================================== */



@media (max-width: 1050px) {



  .login-page {

    grid-template-columns:

      minmax(390px,.9fr)

      minmax(430px,1.1fr);

  }





  .visual-panel {

    padding:

      32px;

  }





  .program-art {

    left: 5%;



    right: 5%;



    top: 23%;

  }





  .program-art__photo {

    object-position:

      center center;

  }





  .visual-copy {

    left: 24px;



    right: 24px;



    width: auto;



    bottom: 22px;

  }





  .visual-copy p {

    display: none;

  }



}





/* ==================================================

   TABLETS VERTICALES / CELULARES

================================================== */



@media (max-width: 820px) {



  .login-page {

    display: block;



    min-height:

      100svh;



    background:

      radial-gradient(

        circle at top left,

        rgba(10,147,237,.13),

        transparent 35%

      ),

      #f7fbfe;

  }





  .visual-panel {

    min-height:

      270px;



    height:

      270px;



    padding:

      20px;



    background:

      linear-gradient(

        135deg,

        #fafdff 0%,

        #eef8ff 100%

      );



    border-radius:

      0 0 34px 34px;

  }





  .visual-panel__curve {

    width:

      420px;



    left:

      -210px;



    bottom:

      -300px;

  }





  .support-brand {

    position:

      absolute;



    top:

      16px;



    left:

      16px;



    z-index:

      30;



    padding:

      10px 12px;



    border-radius:

      14px;

  }





  .support-brand__label {

    font-size:

      10px;

  }





  .support-brand__logo {

    width:

      115px;



    height:

      38px;

  }





  /*

    En móvil mostramos una versión compacta

    de la imagen de reciclaje.

  */



  .program-art {

    width:

      225px;



    height:

      160px;



    min-height: 0;



    left: auto;



    right:

      12px;



    top:

      18px;



    border-radius:

      24px;

  }





  .program-art__photo {

    object-fit:

      cover;



    object-position:

      center center;



    transform:

      scale(1.05);

  }





  .program-art__badge {

    width:

      100px;



    min-height:

      50px;



    top:

      8px;



    padding:

      6px 8px;



    border-radius:

      10px;

  }





  .program-art__logo {

    max-width:

      78px;



    max-height:

      38px;

  }





  .visual-copy {

    left:

      16px;



    bottom:

      14px;



    width:

      calc(100% - 32px);



    padding:

      13px 17px;



    border-radius:

      18px;

  }





  .visual-copy__eyebrow {

    font-size:

      10px;



    margin-bottom:

      4px;

  }





  .visual-copy h2 {

    font-size:

      20px;



    margin:

      0;

  }





  .visual-copy p {

    display:

      none;

  }





  .form-panel {

    min-height:

      auto;



    padding:

      22px 18px 30px;



    background:

      transparent;

  }





  .brand-header {

    margin-bottom:

      14px;

  }





  .brand-header__logo {

    width:

      min(52vw,220px);



    max-height:

      90px;

  }





  .login-card {

    border-radius:

      24px;



    padding:

      24px 20px;



    box-shadow:

      0 18px 50px

      rgba(33,63,91,.12);

  }





  .login-card__heading {

    margin-bottom:

      24px;

  }





  .login-card__heading h1 {

    font-size:

      30px;

  }





  .form-footer {

    margin-top:

      18px;

  }



}





/* ==================================================

   CELULARES PEQUEÑOS

================================================== */



@media (max-width: 520px) {



  .visual-panel {

    height:

      245px;



    min-height:

      245px;

  }





  .support-brand {

    top:

      12px;



    left:

      12px;

  }





  .support-brand__logo {

    width:

      88px;



    height:

      30px;

  }





  .program-art {

    width:

      175px;



    height:

      130px;



    right:

      8px;



    top:

      18px;

  }





  .program-art__badge {

    width:

      84px;



    min-height:

      43px;



    top:

      6px;

  }





  .program-art__logo {

    max-width:

      66px;



    max-height:

      30px;

  }





  .visual-copy {

    padding:

      11px 15px;

  }





  .visual-copy h2 {

    font-size:

      18px;

  }





  .form-panel {

    padding:

      16px 12px 26px;

  }





  .login-card {

    padding:

      22px 16px;



    border-radius:

      22px;

  }





  .login-form__meta {

    align-items:

      flex-start;



    flex-direction:

      column;



    gap:

      10px;

  }





  .submit-btn {

    min-height:

      54px;

  }





  .form-footer {

    flex-wrap:

      wrap;

  }



}





/* ==================================================

   PANTALLAS BAJAS

================================================== */



@media (max-height: 720px) and (min-width: 821px) {



  .form-panel {

    padding-top:

      24px;



    padding-bottom:

      24px;

  }





  .brand-header {

    margin-bottom:

      14px;

  }





  .brand-header__logo {

    max-height:

      74px;

  }





  .login-card {

    padding-top:

      26px;



    padding-bottom:

      26px;

  }





  .login-card__heading {

    margin-bottom:

      22px;

  }





  .login-form {

    gap:

      15px;

  }





  .program-art {

    top:

      18%;



    height:

      53%;

  }





  .visual-copy {

    bottom:

      16px;



    padding:

      17px 21px;

  }





  .visual-copy h2 {

    font-size:

      27px;

  }





  .visual-copy p {

    font-size:

      13px;

  }



}


/* Compatibilidad con la clase usada en el formulario PHP */
.login-box.login-form { width: 100%; }

/* Mensajes propios del login, sin depender del CSS general */
.login-alert {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid #ffd6da;
  border-radius: 12px;
  background: #fff2f3;
  color: #b43d48;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.45;
}

/* Mantener el botón/enlaces contenidos en el login independiente */
.login-page a { box-sizing: border-box; }

/* =========================================================
   BANNER MÓVIL / TABLET — sobrescribe reglas anteriores
   ========================================================= */
.mobile-banner { display: none; }

@media (max-width: 820px) {
  .visual-panel {
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-radius: 0;
    background: #fff;
  }

  .visual-panel__curve,
  .support-brand,
  .program-art,
  .visual-copy {
    display: none !important;
  }

  .mobile-banner {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
    object-fit: contain;
    margin: 0;
    padding: 0;
  }

  /* Ya están todos los logotipos en el banner móvil */
  .brand-header,
  .mobile-support { display: none !important; }

  .form-panel {
    min-height: auto;
    padding: 22px 18px 30px;
    background: #f7fbfe;
  }
}

@media (max-width: 520px) {
  .form-panel { padding: 16px 12px 26px; }
}
