/* Reset básico */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  background-image: url('https://images.unsplash.com/photo-1576091160550-2173dba999ef?ixlib=rb-4.0.3&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #333;
}

.login-container {
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  padding: 40px 30px;
  width: 100%;
  max-width: 420px;
  transition: transform 0.3s ease;
}

.login-container:hover {
  transform: translateY(-5px);
}

.logo {
  text-align: center;
  margin-bottom: 30px;
}

.logo i {
  font-size: 2.5rem;
  color: #2c7be5;
  margin-bottom: 10px;
}

.logo h2 {
  font-weight: 600;
  color: #1a1a1a;
  font-size: 1.6rem;
}

.input-group {
  position: relative;
  margin-bottom: 20px;
}

.input-group .icon {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: #6c757d;
  font-size: 1.1rem;
}

.input-group select,
.input-group input {
  width: 100%;
  padding: 14px 14px 14px 45px;
  border: 1px solid #ced4da;
  border-radius: 10px;
  font-size: 1rem;
  font-family: 'Roboto', sans-serif;
  background-color: white;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.input-group select:focus,
.input-group input:focus {
  outline: none;
  border-color: #2c7be5;
  box-shadow: 0 0 0 3px rgba(44, 123, 229, 0.2);
}

/* Flecha personalizada (opcional, mejora UI) */
.input-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%236c757d'%3e%3cpath d='M7 10l5 5 5-5z'/%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 15px center;
  background-size: 16px;
  padding-right: 45px; /* Ajuste para dejar espacio a la flecha */
}

button {
  width: 100%;
  padding: 14px;
  background-color: #2c7be5;
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s;
  margin-top: 10px;
}

button:hover {
  background-color: #1a68d1;
}

.options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 15px;
  font-size: 0.9rem;
}

.options label {
  color: #495057;
  display: flex;
  align-items: center;
  gap: 6px;
}

.options a {
  color: #2c7be5;
  text-decoration: none;
}

.options a:hover {
  text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
  .login-container {
    margin: 15px;
    padding: 30px 20px;
  }
}

/* Contenedor especial para contraseña con toggle */
.password-container {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-password:hover {
  color: #2c7be5;
}