@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

:root{
  --primary:#2fa4a9;
  --primary-dark:#1e8b90;
  --dark:#0f172a;
  --gray:#64748b;
  --light:#f8fafc;
  --bg:#ffffff;
  --border:#cbd5e1;
}

/* MODO OSCURO AUTOMÁTICO */
@media (prefers-color-scheme: dark){
  :root{
    --bg:#0b1220;
    --dark:#e5e7eb;
    --gray:#9ca3af;
    --border:#1f2937;
  }

  body{
    background:#020617;
  }
}

*{
  margin:0;
  padding:0;
  box-sizing:border-box;
  font-family:'Poppins',sans-serif;
}

body{
  background:#e5e7eb;
}

/* CONTENEDOR */
.login-wrapper{
  display:flex;
  min-height:100vh;
}

/* PANEL MARCA */
.brand-panel{
  flex:1;
  position:relative;
  background:url('images/fondo-login.jpg') center/cover no-repeat;
}

.brand-overlay{
  position:absolute;
  inset:0;
  background:linear-gradient(
    to bottom right,
    rgba(15,23,42,.85),
    rgba(15,23,42,.55)
  );
}

.brand-content{
  position:absolute;
  bottom:50px;
  left:50px;
  color:#fff;
  max-width:340px;
}

.brand-content img{
  width:90px;
  margin-bottom:16px;
}

/* PANEL LOGIN */
.login-panel{
  width:440px;
  background:var(--bg);
  padding:56px 48px;
  display:flex;
  flex-direction:column;
  justify-content:center;
}

/* HEADER */
.system-header{
  margin-bottom:36px;
}

.system-header h1{
  font-size:2.1rem;
  color:var(--primary);
}

.system-header span{
  font-size:.9rem;
  color:var(--gray);
}

/* FORM */
.field{
  margin-bottom:18px;
}

label{
  font-size:.75rem;
  margin-bottom:6px;
  display:block;
  color:var(--dark);
}

input{
  width:100%;
  padding:13px 14px;
  border:1px solid var(--border);
  border-radius:8px;
  font-size:.9rem;
  background:transparent;
  color:var(--dark);
}

input:focus{
  outline:none;
  border-color:var(--primary);
  box-shadow:0 0 0 3px rgba(47,164,169,.2);
}

/* PASSWORD */
.password-wrapper{
  position:relative;
}

.password-wrapper input{
  padding-right:48px;
}

.toggle-password{
  position:absolute;
  right:10px;
  top:50%;
  transform:translateY(-50%);
  background:none;
  border:none;
  cursor:pointer;
}

.toggle-password svg{
  width:22px;
  height:22px;
  fill:var(--gray);
  transition:.3s;
}

.toggle-password:hover svg{
  fill:var(--primary);
  transform:scale(1.1);
}

#eyeClosed{
  display:none;
}

/* BOTÓN */
.submit input{
  margin-top:18px;
  padding:14px;
  border:none;
  border-radius:8px;
  background:var(--primary);
  color:#fff;
  font-weight:600;
  cursor:pointer;
  transition:.3s;
}

.submit input:hover{
  background:var(--primary-dark);
  transform:translateY(-1px);
}

/* FOOTER */
footer{
  margin-top:48px;
  font-size:.75rem;
  color:var(--gray);
  text-align:center;
}

/* RESPONSIVE */
@media(max-width:960px){
  .login-wrapper{
    flex-direction:column;
  }

  .brand-panel{
    height:220px;
  }

  .brand-content{
    bottom:20px;
    left:20px;
  }

  .login-panel{
    width:100%;
    padding:40px 32px;
  }
}
