@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");
@import url("https://fonts.cdnfonts.com/css/agrandir-narrow");
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Inter", sans-serif;
}
:root {
  --white: #ffffff;
  --black: #000000;
  --blue-dark: #1e2151;
  --blue: #22426b;
  --light-blue: #00b2ca;
}

body,
html {
  height: 100%;
}

.container {
  display: flex;
  min-height: 100vh;
}

.left {
  flex: 1;
  position: relative;
  padding: 60px;

  background:
    linear-gradient(rgba(10, 25, 60, 0.75), rgba(10, 25, 60, 0.75)),
    url("login-pic-202605.jpg");

  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;

  color: white;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.top {
  display: flex;
  justify-content: flex-start;
}

.hero-logo {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  padding: 60px;
}

.hero-logo img {
  width: min(52%, 420px);
  max-width: 100%;
  height: auto;
  filter: drop-shadow(0 18px 34px rgba(0, 0, 0, 0.28));
  opacity: 0.94;
}

.logo h1 {
  letter-spacing: 2px;
  color: var(--light-blue);
}

.bottom {
  max-width: 500px;
  position: relative;
  z-index: 1;
}

.tagline {
  font-size: 40px;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
}

.subtext {
  font-size: 18px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.6;
  opacity: 0.9;
}
.images {
  display: flex;
  overflow: hidden; /* necesario para que border-radius recorte la imagen */
}

.images img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  /* border-top-left-radius: 12px;
      border-top-right-radius: 12px;
      -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1) 5%);
      mask-image: linear-gradient(to bottom, rgba(0,0,0,0), rgba(0,0,0,1) 5%); */
}
.right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #fff;
}

.login-form {
  width: 80%;
  max-width: 450px;
}

.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 22px;
}

.login-logo img {
  width: 120px;
  max-width: 100%;
  height: auto;
}

.login-form h2 {
  color: var(--blue-dark);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 1.5px;
}
.login-form p {
  font-size: 16px;
  margin-top: 5px;
  color: gray;
  line-height: 1.6;
  opacity: 0.9;
  margin-bottom: 18px;
}
.login-form label {
  color: var(--blue-dark);
  letter-spacing: 1px;
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
  margin-top: 15px;
}

.login-form input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 4px;
  margin-bottom: 10px;
  font-size: 1rem;
}
.login-form input:focus {
  border-color: var(--blue);
  outline: none;
  box-shadow: 0 0 5px rgba(34, 66, 107, 0.5);
}

.password-wrapper {
  position: relative;
  width: 100%;
}

.password-wrapper input {
  width: 100%;
  padding: 10px 40px 10px 10px; /* espacio para el icono */
  border: 1px solid #ccc;
  border-radius: 4px;
  font-size: 1rem;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 24px;
  color: #929292;
  user-select: none;
  transition: 0.2s;
}

.toggle-password:hover {
  color: #1e2151;
}
.login-form button {
  width: 100%;
  padding: 12px;
  background-color: #2f347a;
  color: white;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  margin-top: 7%;
  transition: background-color 0.3s;
  font-size: large;
}

.login-form button:hover {
  background-color: #22426b;
}
.login-foot {
  text-align: left;
  margin-top: 20px;
}

/* 💬 Estilo del mensaje */
.msg-text {
  font-size: 14px;
  text-align: center;
  margin-top: 8px;
  min-height: 18px; /* para que no mueva el layout si está vacío */
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Estados de mensaje */
.msg-text.success {
  color: #2e7d32;
}

.msg-text.error {
  color: #d32f2f;
}

.msg-text.info {
  color: #0277bd;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 2px;
  }

  /* reduce la altura ocupada por .left */
  .left {
    flex: 0 0 45vh;
    padding: 30px;
  }

  .hero-logo {
    padding: 30px;
  }

  .hero-logo img {
    width: min(58%, 260px);
  }

  .tagline {
    font-size: 22px;
  }

  .subtext {
    font-size: 14px;
  }
}
@media only screen and (max-width: 375px) {
  .left {
    flex: 0 0 48vh; /* ocupa ~36% de la altura de la ventana */
    min-height: 48vh;
    justify-content: center; /* no repartir espacio entre logo / tagline / images */
  }

  .hero-logo img {
    width: min(62%, 220px);
  }
}
