* {
  box-sizing: border-box;
  font-family: 'Inter', sans-serif;
}

body {
  margin: 0;
  background: linear-gradient(to bottom right, #e6f2ff, #a0eec0);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px; /* Agregado para móviles */
}

.container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  display: flex;
  width: 800px;
  max-width: 100%;
  height: 550px;
  overflow: hidden;
  flex-direction: row;
}

/* Sección izquierda */
.left {
  background-color: #f9f9f9;
  width: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.left img {
  width: 80%;
  max-width: 100%;
  height: auto;
}

/* Sección derecha */
.right {
  padding: 40px;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.right h2 {
  margin-bottom: 20px;
  font-size: 22px;
  color: #333;
}

.form-group {
  margin-bottom: 20px;
}

.form-group input {
  width: 100%;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid #ccc;
  font-size: 14px;
}

.btn {
  padding: 12px;
  background-color: #7a5ef8;
  width: 100%;
  color: white;
  border: none;
  border-radius: 16px;
  cursor: pointer;
  font-size: 16px;
  margin-top: 10px;
}

.text-links {
  margin-top: 15px;
  font-size: 14px;
  color: #555;
}

.text-links a {
  color: #7a5ef8;
  text-decoration: none;
  margin-left: 5px;
}

.footer {
  font-size: 12px;
  color: #aaa;
  margin-top: 20px;
}

.alert {
  margin-top: 15px;
  padding: 12px;
  border-radius: 6px;
  font-size: 14px;
}

.alert-danger {
  background-color: #ffe0e0;
  color: #c00;
  border: 1px solid #f5c2c2;
}

.alert-success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

/* Responsive para tablets */
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    height: auto;
  }

  .left,
  .right {
    width: 100%;
    padding: 20px;
  }

  .right {
    padding-top: 10px;
  }
}

/* Responsive para móviles pequeños */
@media (max-width: 480px) {
  .right h2 {
    font-size: 18px;
    text-align: center;
  }

  .form-group input {
    padding: 10px;
    font-size: 16px;
  }

  .btn {
    font-size: 16px;
    padding: 10px;
  }

  .left img {
    width: 80%;
  }
}