﻿*{
  box-sizing:border-box;
}

html,body{
  margin:0;
  min-height:100%;
  font-family:Arial,Helvetica,sans-serif;
  color:#102f53;
}

body{
  background:#f4f8fb;
}

.auth-page{
  min-height:100vh;
  display:grid;
  grid-template-columns:1.05fr .95fr;
}

/* LADO BAGUET */

.auth-brand{
  position:relative;
  min-height:100vh;
  padding:45px 8%;
  overflow:hidden;
  background:
    radial-gradient(circle at 80% 20%,rgba(255,214,0,.30),transparent 24%),
    radial-gradient(circle at 15% 85%,rgba(24,164,120,.20),transparent 30%),
    linear-gradient(135deg,#eefaf5,#edf7ff);
}

.auth-brand:after{
  content:"";
  position:absolute;
  width:520px;
  height:520px;
  border:1px solid rgba(18,91,145,.10);
  border-radius:50%;
  right:-180px;
  top:-150px;
}

.auth-back{
  position:relative;
  z-index:2;
  color:#075a98;
  text-decoration:none;
  font-weight:800;
}

.auth-brand-content{
  position:relative;
  z-index:2;
  max-width:620px;
  margin:90px auto 0;
}

.auth-logo{
  width:170px;
  height:170px;
  object-fit:contain;
  display:block;
  margin-bottom:25px;
  filter:drop-shadow(0 18px 24px rgba(16,47,83,.14));
}

.auth-badge{
  display:inline-block;
  padding:8px 13px;
  border-radius:999px;
  background:#e2f5ec;
  color:#08754f;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
}

.auth-brand h1{
  margin:20px 0;
  font-size:clamp(42px,5vw,70px);
  line-height:1.02;
}

.auth-brand h1 strong{
  color:#11875d;
}

.auth-brand-content > p{
  max-width:580px;
  font-size:18px;
  line-height:1.65;
  color:#567085;
}

.auth-services{
  display:flex;
  flex-wrap:wrap;
  gap:9px;
  margin-top:30px;
}

.auth-services span{
  padding:10px 14px;
  background:white;
  border:1px solid #dce7eb;
  border-radius:999px;
  font-size:13px;
  font-weight:800;
}

/* PANEL LOGIN */

.auth-panel{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:40px;
  background:white;
}

.auth-card{
  width:100%;
  max-width:470px;
}

.auth-language{
  display:flex;
  justify-content:flex-end;
  gap:7px;
  margin-bottom:35px;
}

.auth-language button{
  border:1px solid #d8e4e9;
  border-radius:10px;
  background:white;
  padding:9px 12px;
  cursor:pointer;
  font-weight:800;
}

.auth-language button.active{
  color:#08754f;
  background:#edf8f3;
  border-color:#b7ddcb;
}

.auth-eyebrow{
  color:#08754f;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
}

.auth-card h2{
  margin:10px 0;
  font-size:38px;
}

.auth-intro{
  margin:0 0 30px;
  color:#667b8d;
}

/* FORM */

.auth-field{
  display:grid;
  gap:8px;
  margin-bottom:18px;
  font-weight:800;
}

.auth-field input{
  width:100%;
  padding:15px;
  border:1px solid #ccdce3;
  border-radius:12px;
  outline:none;
  font:inherit;
}

.auth-field input:focus{
  border-color:#11875d;
  box-shadow:0 0 0 3px rgba(17,135,93,.10);
}

.password-field{
  position:relative;
}

.password-field input{
  padding-right:55px;
}

.password-toggle{
  position:absolute;
  right:8px;
  top:50%;
  transform:translateY(-50%);
  border:0;
  background:transparent;
  cursor:pointer;
  font-size:18px;
}

.auth-options{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px;
  margin:5px 0 22px;
  font-size:13px;
}

.auth-options label{
  display:flex;
  align-items:center;
  gap:7px;
}

.auth-text-button{
  border:0;
  background:transparent;
  color:#075a98;
  cursor:pointer;
  font-weight:800;
}

.auth-primary,
.auth-secondary{
  width:100%;
  min-height:50px;
  border-radius:12px;
  font-weight:900;
  font-size:15px;
}

.auth-primary{
  border:0;
  background:#125b91;
  color:white;
  cursor:pointer;
}

.auth-primary:hover{
  background:#0e4c7b;
}

.auth-primary:disabled{
  opacity:.65;
  cursor:wait;
}

.auth-divider{
  display:flex;
  align-items:center;
  gap:12px;
  margin:27px 0 17px;
  color:#718391;
  font-size:12px;
}

.auth-divider:before,
.auth-divider:after{
  content:"";
  flex:1;
  height:1px;
  background:#dce7eb;
}

.auth-secondary{
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid #cadbe2;
  color:#102f53;
  text-decoration:none;
  background:white;
}

.auth-security{
  margin-top:25px;
  text-align:center;
  color:#718391;
  font-size:12px;
}

.auth-message{
  margin-top:17px;
  padding:14px;
  border-radius:11px;
  line-height:1.5;
}

.auth-message.success{
  background:#eaf8f1;
  color:#176344;
}

.auth-message.error{
  background:#fff0ed;
  color:#8b352d;
}

.auth-message.info{
  background:#edf5fa;
  color:#31566e;
}

/* MOVIL */

@media(max-width:900px){

  .auth-page{
    grid-template-columns:1fr;
  }

  .auth-brand{
    min-height:auto;
    padding:30px 25px 45px;
  }

  .auth-brand-content{
    margin-top:45px;
  }

  .auth-logo{
    width:110px;
    height:110px;
  }

  .auth-brand h1{
    font-size:42px;
  }

  .auth-panel{
    min-height:auto;
    padding:45px 25px;
  }

}
