/* =========================
   DESIGN SYSTEM
========================= */
:root{
  --mr-primary:#036950;
  --mr-accent:#28f886;
  --mr-dark:#0c071d;
}

/* =========================
   RESET
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Inter',sans-serif;
}

/* =========================
   BODY - ULTRA PRO
   (Fondo tipo SaaS premium)
========================= */
body{
  min-height:100vh;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:20px;

  background:
    radial-gradient(circle at 20% 15%, rgba(3,105,80,0.32), transparent 40%),
    radial-gradient(circle at 80% 20%, rgba(40,248,134,0.16), transparent 42%),
    radial-gradient(circle at 50% 90%, rgba(2,75,56,0.18), transparent 45%),
    linear-gradient(180deg, #0c071d 0%, #070510 100%);
}

/* =========================
   CONTAINER PRINCIPAL
========================= */
.auth-container{
  width:100%;
  max-width:950px;
  display:flex;
  border-radius:12px;
  overflow:hidden;

  box-shadow:
    0 30px 70px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,255,255,0.04);

  backdrop-filter:blur(12px);
  animation:fadeIn 0.5s ease;
}

/* ANIMACIÓN SUAVE */
@keyframes fadeIn{
  from{opacity:0; transform:translateY(12px);}
  to{opacity:1; transform:translateY(0);}
}

/* =========================
   PANEL IZQUIERDO
========================= */
.left{
  flex:1;
  position:relative;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:50px;
  text-align:center;
  color:white;
  overflow:hidden;
}

/* BACKGROUND IMAGE */
.left::before{
  content:"";
  position:absolute;
  inset:0;
  background-size:cover;
  background-position:center;
  background-repeat:no-repeat;
  transform:scale(1.08);
  filter:brightness(0.82) saturate(1.1);
  z-index:0;
}

/* IMÁGENES */
.left.login-bg::before{
  background-image:url('../img/mir16.jpg');
}

.left.register-bg::before{
  background-image:url('../img/mir16.jpg');
}

/* OVERLAY PRO */
.left::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:0;

  background:
    radial-gradient(circle at top, rgba(3, 105, 80, 0.8), transparent 45%), /* Ajuste al 25% */
    linear-gradient(to top,
      rgb(0, 12, 9) 0%,                          /* Mantén el fondo oscuro */
      rgba(1, 51, 38, 0.9) 60%,                  /* Aumenta opacidad del verde oscuro en el 30% */
      rgba(3, 105, 80, 0.85) 80%);               /* Verde más saturado en el 80% */
}

/* CONTENIDO */
.left > *{
  position:relative;
  z-index:1;
  max-width:320px;
}

/* LOGO */
.left img{
  width:85px;
  margin-bottom:15px;
  filter:drop-shadow(0 10px 18px rgba(0,0,0,0.4));
}

/* TITULO */
.left h1{
  font-size:18px;
  margin-bottom:10px;
  letter-spacing:1px;
}

/* TEXTO */
.left p{
  font-size:12px;
  opacity:0.99;
  line-height:1.6;
}

/* =========================
   PANEL DERECHO
========================= */
.right{
  flex:1;
  background:rgba(255,255,255,0.04);
  backdrop-filter:blur(20px);
  padding:50px;
}

/* TITULO */
.title{
  color:white;
  font-size:16px;
  margin-bottom:20px;
  font-weight:500;
  text-align:center;
}
.mr-footer{
  font-size: 0.58rem;
  font-weight: 100;
  line-height: 1;
  letter-spacing: 0.2px;
  color: rgba(179, 247, 247, 0.37);

  text-align: center;
  margin-top: auto;
  padding-top: 20px;
}
.mrfoo-icon {
  font-size: 0.58rem;
  width: 12px;
  display: inline-flex;
  justify-content: center;
 
}

/* =========================
   INPUTS
========================= */
.input{
  position:relative;
  margin-bottom:15px;
}


.input input{
  width:100%;
  padding:12px 42px;

  border-radius:10px;
  border:1px solid rgba(255,255,255,0.12);

  background:rgba(255,255,255,0.04);
  backdrop-filter: blur(8px);

  color:white;
  outline:none;

  transition: all .25s ease;
}
.input input:hover{
  border-color: rgba(var(--mr-accent-rgb), 0.25);
}
.input input::placeholder{
  color:rgba(255,255,255,0.45);
}

.input input:focus{
  border-color: rgba(var(--mr-accent-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--mr-accent-rgb), 0.22);
}
.input3 input:focus{

  border-radius: 5px;
  border: 1px solid transparent;

  border-image: linear-gradient(
    90deg,
    var(--mr-primary),
    var(--mr-accent)
  ) 1;

  box-shadow: 0 0 0 3px rgba(var(--mr-accent-rgb), 0.12);
}
/* LABELS */
.label{
  font-size:12px;
  color:rgba(255,255,255,0.7);
  margin-bottom:6px;
  display:block;
}

/* ICONOS */
.input-box{
  position:relative;
  display:flex;
  align-items:center;
}

.left-icon{
  position:absolute;
  left:12px;
  top:50%;
  transform:translateY(-50%);
  pointer-events:none;
  color:#aaa;
}

.right-icon{
  position:absolute;
  right:12px;
  top:50%;
  transform:translateY(-50%);
  cursor:pointer;
  z-index:2;
  color:#aaa;
}

.input:focus-within i{
  color:var(--mr-accent);
}

/* =========================
   BOTÓN
========================= */
.btn{
  width:100%;
  padding:12px;
  border:none;
  border-radius:10px;
  background:linear-gradient(90deg,var(--mr-primary),var(--mr-accent));
  color:#0c071d;
  font-weight:600;
  cursor:pointer;
  transition:0.2s;
}

.btn:hover{
  transform:translateY(-2px);
}

/* =========================
   MENSAJES
========================= */
/* =========================
   ALERT SYSTEM PRO
========================= */
.error-msg,
.alert{
  display:none;
  padding:10px;
  border-radius:8px;
  margin-bottom:15px;
  font-size:13px;
}

/* SHOW STATE */
.error-msg.show,
.alert.show{
  display:block;
}

/* ERROR */
.error-msg,
.alert-danger{
  background:rgba(255,0,0,0.1);
  border:1px solid #ff4d4d;
  color:#ff6b6b;
}

/* SUCCESS */
.alert-success{
  background:rgba(40,248,134,0.1);
  border:1px solid var(--mr-accent);
  color:var(--mr-accent);
}

/* =========================
   LINKS
========================= */
.links{
  margin-top:15px;
  display:flex;
  justify-content:space-between;
  font-size:12px;
}

.links a{
  color:rgba(255,255,255,0.6);
  text-decoration:none;
  display:flex;
  align-items:center;
  gap:6px;
  transition:0.2s;
}

.links a:hover{
  color:var(--mr-accent);
}

/* =========================
   FOOTER
========================= */
.footer{
  margin-top:35px;
  font-size:12px;
  color:rgba(146, 252, 243, 0.5);
  text-align:center;
}

/* =========================
   RESPONSIVE
========================= */
@media(max-width:768px){
  .auth-container{
    flex-direction:column;
  }

  .left{
    min-height:220px;
    padding:30px;
  }

  .right{
    padding:30px;
  }

  .left img{
    width:65px;
  }

  .left h1{
    font-size:14px;
  }

  .left p{
    font-size:11px;
  }

  .input input{
    font-size:13px;
  }

  .left-icon,
  .right-icon{
    font-size:13px;
  }
}