:root {
  --color-1: #f9fafb;
  /* Fondo general claro */
  --color-2: #1d4ed8;
  /* Azul primario fuerte */
  --color-3: #10b981;
  /* Verde esmeralda */
  --color-4: #3b82f6;
  /* Azul claro para hover */
  --color-5: #374151;
  /* Gris oscuro para texto principal */
  --color-6: #ffffff;
  /* Blanco */
  --color-7: #111827;
  /* Gris muy oscuro para texto intenso */
  --color-8: rgba(0, 0, 0, 0.4);
  /* Sombra ligera */
  --color-9: rgba(0, 0, 0, 0.08);
  --color-10: #ef4444;
  /* Rojo alerta */
  --color-11: #b91c1c;
  /* Rojo oscuro */
}

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

body {
  margin: 0;
  background-color: var(--color-1);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: var(--color-5);
}

.container {
  display: flex;
  background-color: var(--color-6);
  border-radius: 12px;
  box-shadow: 0 0 30px var(--color-9);
  max-width: 900px;
  width: 100%;
  overflow: hidden;
}
.title-login{
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-7);
  align-items: center;
  text-align: center;
}

.left {
  flex: 1;
  padding: 3rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-color: var(--color-6);
}

.left p {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--color-5);
}

.right {
  flex: 1;
  background-color: var(--color-1);
  padding: 3rem 2rem;
  color: var(--color-5);
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--color-9);
}

.right h2 {
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--color-7);
}

.right p {
  font-size: 0.9rem;
  color: var(--color-5);
  margin-bottom: 2rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  font-size: 0.9rem;
  color: var(--color-7);
  display: block;
  margin-bottom: 0.5rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--color-2);
  background-color: var(--color-6);
  border-radius: 6px;
  color: var(--color-7);
  font-size: 0.95rem;
}

.form-group input:focus {
  outline: none;
  border-color: var(--color-4);
  box-shadow: 0 0 0 2px var(--color-4);
}

.remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  margin-bottom: 1rem;
  color: var(--color-7);
}

.forgot-password {
  text-align: right;
  margin-bottom: 1.5rem;
  font-size: 0.85rem;
}

.forgot-password a {
  color: var(--color-3);
  text-decoration: none;
  transition: color 0.3s;
}

.forgot-password a:hover {
  color: var(--color-2);
  text-decoration: underline;
}

.submit-btn {
  width: 100%;
  background-color: var(--color-3);
  color: var(--color-6);
  font-weight: 600;
  border: none;
  padding: 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: var(--color-2);
}

.register-link {
  text-align: center;
  font-size: 0.9rem;
  margin-top: 1.5rem;
  color: var(--color-7);
}

.register-link a {
  color: var(--color-3);
  text-decoration: none;
}

.register-link a:hover {
  text-decoration: underline;
}

@media (max-width: 768px) {
  .container {
    flex-direction: column;
  }

  .left,
  .right {
    width: 100%;
    padding: 2rem;
  }

  .right {
    border-left: none;
  }
}

.logo {
  display: block;
  margin: 20px auto;
  width: 200px;
  max-width: 80%;
  height: auto;
  transition: opacity 0.3s ease;
}

.logo:hover {
  opacity: 0.85;
}

select {
  background-color: var(--color-6);
  color: var(--color-7);
  border: 1px solid var(--color-2);
  border-radius: 6px;
  padding: 0.75rem;
  appearance: none;
}

select:focus {
  outline: none;
  border-color: var(--color-4);
  box-shadow: 0 0 0 2px var(--color-4);
}

option {
  background-color: var(--color-6);
  color: var(--color-7);
}

.password-field .input-icon {
  position: relative;
}

.password-field input {
  width: 100%;
  padding-right: 2.5rem;
}

.toggle-password {
  position: absolute;
  top: 50%;
  right: 0.75rem;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 1.2rem;
  user-select: none;
  color: var(--color-5);
}

.form-error {
  color: var(--color-10);
  font-size: 0.8rem;
  display: block;
  margin-top: 0.4rem;
}

.alert {
  padding: 1rem;
  border-radius: 8px;
  margin-bottom: 1.5rem;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  animation: slideIn 0.3s ease-out;
}

.alert-warning {
  background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
  color: #92400e;
  border: 2px solid #f59e0b;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.2);
}

.alert-icon {
  width: 28px;
  height: 28px;
  color: #d97706;
  flex-shrink: 0;
  margin-top: 2px;
}

.alert strong {
  display: block;
  color: #92400e;
  margin-bottom: 0.4rem;
  font-size: 1rem;
  font-weight: 700;
}

.alert p {
  margin: 0;
  font-size: 0.9rem;
  color: #78350f;
  line-height: 1.5;
  font-weight: 500;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}