* {
  font-family: "Montserrat", sans-serif;
}

body,
html {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: Arial, sans-serif;
  background: #fff;
}

.main-container {
  display: flex;
  min-height: 100vh;
}

/* Lado izquierdo - Formulario */
.left-side {
  flex: 1;
  background: linear-gradient(135deg, #87ceeb 0%, #9fd0fe 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  position: relative;
}

.logo-section {
  position: absolute;
  top: 30px;
  left: 30px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-section img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.logo-section span {
  font-size: 24px;
  font-weight: bold;
  color: #000;
  letter-spacing: 1px;
}

.login-form {
  width: 100%;
  max-width: 400px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

.login-title {
  color: #000;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  font-size: 1.8em;
  margin-bottom: 20px;
  text-align: center;
}

.form-container {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.inputBox {
  position: relative;
  width: 100%;
}

.inputBox input {
  width: 100%;
  height: 50px;
  padding: 15px;
  outline: none;
  color: #000;
  font-size: 1em;
  background: white;
  border-radius: 50px;
  transition: 0.3s;
  box-sizing: border-box;
  border: none;
  transition: all 0.3s ease;
}

.inputBox input:focus,
.inputBox input:active,
.inputBox input:hover {
  border-color: #000;
  background: white;
}

.inputBox span {
  position: absolute;
  left: 15px;
  top: 15px;
  padding: 0 5px;
  color: #000;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: 0.3s;
  pointer-events: none;
  background: transparent;
  border-radius: 50px;
}

.inputBox input:focus ~ span,
.inputBox input:valid ~ span {
  top: -10px;
  left: 10px;
  font-size: 12px;
  background: #d0e8fe;
  font-weight: bold;
  padding: 2px 8px;
  border-radius: 50px;
  color: #000;
}

.cuadrito {
  background: none;
  border: none;
  color: #2e3856;
  text-decoration: none;
  cursor: pointer;
  font-size: inherit;
  font-weight: bold;
  transition: all 0.3s ease;
}

.cuadrito:focus,
.cuadrito:active,
.cuadrito:hover {
  transform: translateY(-3px);
}

.checkbox-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
  font-size: 14px;
  color: #000;
  flex-wrap: wrap;
}

.checkbox-container input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.checkbox-container label {
  cursor: pointer;
  user-select: none;
}

.enter {
  height: 50px;
  width: 100%;
  border-radius: 50px;
  cursor: pointer;
  background-color: white;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: bold;
  color: #000;
  border: none;
  font-size: 14px;
  transition: all 0.3s ease;
}

.enter:hover,
.enter:focus,
.enter:active {
  background-color: #2e3856;
  color: white;
  border: none;
  transform: translateY(-5px);
}

.create-account-link {
  margin-top: 10px;
  color: #000;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  text-align: center;
  font-weight: 500;
  transition: all 0.3s ease;
}

.back-to-index {
  position: absolute;
  bottom: 30px;
  left: 30px;
  padding: 10px 20px;
  background: white;
  border-radius: 50px;
  color: #000;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

.back-to-index:hover {
  background: #2e3856;
  color: white;
}

/* Lado derecho - Bienvenida */
.right-side {
  flex: 1;
  background: #f5f5f5;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 40px;
  text-align: center;
}

.welcome-section {
  max-width: 500px;
}

.welcome-title {
  font-size: 3em;
  font-weight: bold;
  color: #74b9ff;
  margin-bottom: 30px;
  letter-spacing: 2px;
}

.welcome-subtitle {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.5;
}

.welcome-subtitle .highlight {
  color: #74b9ff;
  font-weight: bold;
}

.welcome-subtitle .normal-text {
  color: #2d3436;
  font-weight: normal;
}

.robot-container {
  position: relative;
  margin: 40px 0;
  display: flex;
  justify-content: center;
  align-items: center;
}

.robot-image {
  width: 250px;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  position: relative;
}

.robot-image img {
  height: 100%;
  object-fit: contain;
  max-width: 400px;
  max-height: 400px;
}

.welcome-button {
  background: #ddd;
  border: none;
  padding: 15px 25px;
  border-radius: 20px;
  font-weight: bold;
  color: #2d3436;
  font-size: 14px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-top: 30px;
  transition: 0.3s;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.welcome-button:hover {
  background: #bbb;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.ares-logo {
  position: absolute;
  bottom: 30px;
  right: 30px;
}

.ares-logo img {
  width: 100px;
  height: auto;
}

/* Error messages */
.error-message {
  color: red;
  font-size: 12px;
  margin-top: 5px;
  text-align: center;
  font-weight: bold;
}

.form-error {
  color: red;
  background: rgba(255, 0, 0, 0.1);
  padding: 10px;
  border-radius: 50px;
  margin-bottom: 15px;
  font-size: 14px;
  font-weight: bold;
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* RESPONSIVE DESIGN MEJORADO */

/* Tablets grandes y laptops pequeñas */
@media screen and (max-width: 1024px) {
  .left-side,
  .right-side {
    padding: 30px;
  }

  .welcome-title {
    font-size: 2.5em;
  }

  .robot-image {
    width: 200px;
    height: 200px;
  }

  .robot-image img {
    max-width: 300px;
    max-height: 300px;
  }
}

/* Tablets */
@media screen and (max-width: 768px) {
  .main-container {
    flex-direction: column;
  }

  .left-side,
  .right-side {
    flex: none;
    min-height: 50vh;
    padding: 25px;
  }

  .left-side {
    order: 1;
  }

  .right-side {
    order: 2;
  }

  .logo-section {
    position: relative;
    top: 0;
    left: 0;
    margin-bottom: 20px;
    justify-content: center;
  }

  .back-to-index {
    position: relative;
    bottom: 0;
    left: 0;
    margin-top: 20px;
    align-self: center;
  }

  .welcome-title {
    font-size: 2.2em;
    margin-bottom: 20px;
  }

  .robot-image {
    width: 180px;
    height: 180px;
  }

  .robot-image img {
    max-width: 250px;
    max-height: 250px;
  }

  .ares-logo {
    position: relative;
    bottom: 0;
    right: 0;
    margin-top: 20px;
  }

  .login-form {
    max-width: 350px;
  }

  .welcome-section {
    max-width: 400px;
  }
}

/* Móviles grandes */
@media screen and (max-width: 640px) {
  .left-side,
  .right-side {
    padding: 20px;
    min-height: 45vh;
  }

  .welcome-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

  .login-title {
    font-size: 1.5em;
  }

  .robot-image {
    width: 150px;
    height: 150px;
    margin: 20px 0;
  }

  .robot-image img {
    max-width: 200px;
    max-height: 200px;
  }

  .welcome-subtitle {
    font-size: 1.1em;
    margin-bottom: 25px;
  }

  .login-form {
    max-width: 300px;
    gap: 25px;
  }

  .form-container {
    gap: 20px;
  }

  .inputBox input {
    height: 45px;
    font-size: 0.9em;
  }

  .enter {
    height: 45px;
    font-size: 13px;
  }

  .checkbox-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .logo-section span {
    font-size: 20px;
  }

  .logo-section img {
    width: 40px;
    height: 40px;
  }
}

/* Móviles pequeños */
@media screen and (max-width: 480px) {
  .left-side,
  .right-side {
    padding: 15px;
    min-height: 40vh;
  }

  .welcome-title {
    font-size: 1.5em;
    letter-spacing: 1px;
  }

  .login-title {
    font-size: 1.3em;
    letter-spacing: 1px;
  }

  .robot-image {
    width: 120px;
    height: 120px;
    margin: 15px 0;
  }

  .robot-image img {
    max-width: 150px;
    max-height: 150px;
  }

  .welcome-subtitle {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .login-form {
    max-width: 280px;
    gap: 20px;
  }

  .form-container {
    gap: 18px;
  }

  .inputBox input {
    height: 42px;
    padding: 12px;
    font-size: 0.85em;
  }

  .inputBox span {
    font-size: 12px;
    left: 12px;
    top: 13px;
  }

  .inputBox input:focus ~ span,
  .inputBox input:valid ~ span {
    font-size: 10px;
    left: 8px;
  }

  .enter {
    height: 42px;
    font-size: 12px;
    letter-spacing: 1px;
  }

  .welcome-button {
    padding: 12px 20px;
    font-size: 12px;
  }

  .back-to-index {
    padding: 8px 16px;
    font-size: 11px;
  }

  .logo-section span {
    font-size: 18px;
  }

  .logo-section img {
    width: 35px;
    height: 35px;
  }

  .ares-logo img {
    width: 80px;
  }
}

/* Móviles muy pequeños */
@media screen and (max-width: 360px) {
  .left-side,
  .right-side {
    padding: 12px;
  }

  .login-form {
    max-width: 260px;
  }

  .welcome-title {
    font-size: 1.3em;
  }

  .login-title {
    font-size: 1.2em;
  }

  .robot-image {
    width: 100px;
    height: 100px;
  }

  .robot-image img {
    max-width: 120px;
    max-height: 120px;
  }

  .inputBox input {
    height: 40px;
    padding: 10px;
  }

  .enter {
    height: 40px;
  }
}
