/* Estilos generales */
:root {
  --primary-color: #0077b6;
  --secondary-color: #00b4d8;
  --accent-color: #90e0ef;
  --light-color: #caf0f8;
  --dark-color: #03045e;
  --text-color: #333;
  --white: #ffffff;
}

body {
  font-family: "Montserrat", "Arial", sans-serif;
  margin: 0;
  padding: 0;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--secondary-color)
  );
  position: relative;
  overflow: hidden;
}

/* Contenedor principal */
.login-wrapper {
  display: flex;
  width: 85%;
  max-width: 1000px;
  height: 550px;
  background: var(--white);
  border-radius: 16px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
  overflow: hidden;
  position: relative;
  z-index: 1;
}

/* Sección de Login */
.login-box {
  flex: 1;
  padding: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  background: linear-gradient(
    to bottom,
    var(--white) 0%,
    var(--light-color) 100%
  );
}

.login-box::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 30px;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0),
    rgba(202, 240, 248, 0.5)
  );
}

.logo img {
  width: 140px;
  margin-bottom: 20px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition: transform 0.3s ease;
}

.logo img:hover {
  transform: scale(1.05);
}

h2 {
  color: var(--primary-color);
  margin-bottom: 25px;
  font-weight: 600;
  position: relative;
}

h2::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: var(--secondary-color);
  border-radius: 2px;
}

.form-group {
  width: 100%;
  margin-bottom: 20px;
  position: relative;
}

.form-group label {
  display: block;
  text-align: left;
  font-weight: 500;
  color: var(--primary-color);
  margin-bottom: 8px;
  transition: all 0.3s ease;
}

.form-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  font-size: 16px;
  transition: all 0.3s ease;
  background-color: rgba(255, 255, 255, 0.9);
}

.form-group input:focus {
  border-color: var(--secondary-color);
  box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.2);
  outline: none;
}

.btn {
  width: 100%;
  background: linear-gradient(
    to right,
    var(--primary-color),
    var(--secondary-color)
  );
  color: white;
  border: none;
  padding: 14px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
  font-weight: 600;
  transition: 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.btn:hover {
  background: linear-gradient(
    to right,
    var(--secondary-color),
    var(--primary-color)
  );
  transform: translateY(-2px);
  box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(0);
}

/* Mensajes */
.messages {
  margin-top: 15px;
  color: #e63946;
  background-color: rgba(230, 57, 70, 0.1);
  padding: 10px;
  border-radius: 8px;
  width: 100%;
}

/* Footer */
footer {
  margin-top: 20px;
  font-size: 12px;
  color: var(--primary-color);
}

/* Sección de información / publicidad */
.info-box {
  flex: 1;
  background: linear-gradient(135deg, var(--primary-color), var(--dark-color));
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  overflow: hidden;
}

/* Info box background eliminado por falta de imagen */

.info-content {
  max-width: 80%;
  position: relative;
  z-index: 2;
}

.info-content h2 {
  font-size: 28px;
  color: var(--white);
  margin-bottom: 30px;
}

.info-content h2::after {
  background: var(--accent-color);
}

.info-content p {
  font-size: 16px;
  margin: 20px 0;
  line-height: 1.6;
}

/* Redes sociales */
.social-media {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-top: 30px;
}

.social-media a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.social-media img {
  width: 20px;
  height: 20px;
  transition: 0.3s ease;
}

.social-media a:hover {
  background-color: var(--accent-color);
  transform: translateY(-3px);
}

/* Responsivo */
@media (max-width: 768px) {
  .login-wrapper {
    flex-direction: column;
    height: auto;
    width: 90%;
  }

  .info-box {
    padding: 30px 20px;
  }

  .login-box::after {
    display: none;
  }
}

@media (max-width: 480px) {
  .login-wrapper {
    width: 95%;
  }

  .login-box {
    padding: 30px 20px;
  }

  .logo img {
    width: 120px;
  }
}
