/* Reset básico */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
font-family: 'Montserrat', sans-serif;
}

html, body {
  height: 100%;
}

/* Contenedor principal */
.container {
  display: flex;
  min-height: 100vh;
}

.left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: #A41F35;
  color: white;
  padding: 20px;
}

.slide-text {
  font-size: 1.2rem;
  line-height: 1.5;
}

.slide-image-wrapper {
  text-align: center;
  margin: 20px 0;
}

.slide-image-wrapper img {
  max-width: 100%;
  border-radius: 8px;
}

.slide-buttons {
  display: flex;
  justify-content: center;
  gap: 10px;
}

.slide-buttons button {
  padding: 10px 20px;
  font-size: 1rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

/* Mitad derecha (formulario) */
.right {
  flex: 1;
  background-color: #f6f7fb;
  padding: 15px 50px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  align-items: center;
}

.logo {
  width: 150px;
  margin-bottom: 40px;
  margin-right: 22px;
}

.login-form {
  width: 100%;
  background: #f6f7fb;
  border-radius: 8px;
}

.login-form h2 {
  margin-bottom: 30px;
  font-weight: 700;
  font-size: 1.1rem;
  color: #222;
  text-align: left;
}

.login-form label {
  font-weight: 600;
  color: #444;
  display: block;
  margin-bottom: 6px;
  cursor: pointer;
}

.login-form input {
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 20px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
  outline-offset: 2px;
  outline-color: #b22234;
}

.password-wrapper {
  position: relative;
}

.password-wrapper input {
  width: 100%;
  padding-right: 40px; /* espacio para el icono */
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  width: 24px;  /* ancho del icono */
  height: 24px; /* alto del icono */
}


.forgot-password {
  margin-bottom: 25px;
  font-size: 0.9rem;
  color: #555;
}

.forgot-password a {
  font-weight: 700;
  color: #b22234;
  text-decoration: none;
}

.forgot-password a:hover {
  text-decoration: underline;
}

.btn-login {
  width: 100%;
  background-color: #b22234;
  border: none;
  padding: 14px 0;
  font-size: 1rem;
  color: white;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.btn-login:hover {
  background-color: #7a161f;
}

.footer {
  font-size: 0.8rem;
  color: #666;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid #ccc;
}

.footer a {
  color: #666;
  text-decoration: none;
  font-weight: 500;
}

.footer a:hover {
  text-decoration: underline;
}

/* Responsive para móviles */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .left {
    display: none;
  }

  .right {
    flex: 1;
    width: 100%;
    padding: 40px 20px;
    min-height: auto;
  }
}
