/* Pantalla de ingreso al panel (mismo esquema que el login de tablero). */

.login { display: flex; min-height: 100vh; }

/* Panel izquierdo: marca */
.login-brand {
  width: 52%;
  flex-shrink: 0;
  background: var(--color-primary-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 48px;
  position: relative;
  overflow: hidden;
}
.login-brand::before,
.login-brand::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(0, 75, 238, 0.18);
}
.login-brand::before { width: 420px; height: 420px; top: -100px; right: -120px; }
.login-brand::after  { width: 280px; height: 280px; bottom: -60px; left: -80px; background: rgba(0, 75, 238, 0.12); }

.brand-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  text-align: center;
}
.brand-logo { width: 200px; opacity: 0.95; }
.brand-divider { width: 48px; height: 2px; background: rgba(255, 255, 255, 0.2); border-radius: 2px; }
.brand-title { font-size: 20px; font-weight: 700; color: var(--color-white); line-height: 1.3; }
.brand-subtitle { font-size: 13px; color: rgba(255, 255, 255, 0.5); margin-top: -16px; }

/* Autitos pasando por la ruta */
.brand-ruta {
  position: absolute;
  left: 0; right: 0; bottom: 56px;
  height: 64px;
  border-bottom: 2px dashed rgba(255, 255, 255, 0.16);
  z-index: 1;
}
.brand-ruta .carril { position: absolute; bottom: 0; left: -90px; animation: pasar linear infinite; }
.brand-ruta .c1 { animation-duration: 13s; }
.brand-ruta .c2 { animation-duration: 13s; animation-delay: -4.5s; }
.brand-ruta .c3 { animation-duration: 13s; animation-delay: -9s; }
@keyframes pasar { from { left: -90px; } to { left: 100%; } }

/* Panel derecho: ingreso */
.login-form-panel {
  flex: 1;
  background: #F7F8FC;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
}
.login-card { width: 100%; max-width: 360px; }
.login-heading { font-size: 24px; font-weight: 800; color: var(--color-primary-dark); margin-bottom: 6px; }
.login-hint { font-size: 13px; color: var(--color-grey-400); margin-bottom: 36px; line-height: 1.5; }

.btn-microsoft {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 13px 20px;
  background: var(--color-primary-dark);
  color: var(--color-white);
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 30, 97, 0.35);
  transition: background var(--t-fast), box-shadow var(--t-fast), transform 0.1s;
}
.btn-microsoft:hover { background: #002880; box-shadow: 0 6px 20px rgba(0, 30, 97, 0.45); transform: translateY(-1px); text-decoration: none; }
.btn-microsoft:active { transform: translateY(0); }

.login-domain-note { text-align: center; margin-top: 14px; font-size: 12px; color: var(--color-grey-400); }

.login-alerta {
  background: var(--color-warning-bg);
  color: #7A5000;
  padding: 11px 14px;
  border-radius: var(--radius-md);
  border-left: 3px solid var(--color-warning);
  font-size: 13px;
  line-height: 1.5;
  margin-bottom: 20px;
}

.login-qr {
  margin-top: 40px;
  padding-top: 16px;
  border-top: 1px solid var(--color-grey-200);
  font-size: 12px;
  color: var(--color-grey-400);
  text-align: center;
}

@media (prefers-reduced-motion: reduce) {
  .brand-ruta .carril { animation: none; }
  .brand-ruta .c1 { left: 20%; } .brand-ruta .c2 { left: 45%; } .brand-ruta .c3 { left: 70%; }
}

@media (max-width: 700px) {
  .login { flex-direction: column; }
  .login-brand { width: 100%; padding: 40px 24px 96px; min-height: 240px; }
  .brand-logo { width: 140px; }
  .brand-title { font-size: 16px; }
  .brand-subtitle { display: none; }
  .brand-ruta { bottom: 20px; }
  .login-form-panel { padding: 36px 24px; }
}
