/* ================================================================
   WEBAPP: Login Screen - MODO OSCURO
   ================================================================ */

#login-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(10, 10, 26, 0.20);
  backdrop-filter: blur(8px) saturate(0.9);
  -webkit-backdrop-filter: blur(8px) saturate(0.9);
  opacity: 1;
  transition: opacity 0.5s ease;
  pointer-events: all;
}

#login-screen.ocultando {
  opacity: 0;
  pointer-events: none;
}

.login-card {
  background: rgba(26, 26, 46, 0.35);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(206, 147, 216, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45), 
              0 0 0 1px rgba(206, 147, 216, 0.12);
  border-radius: 12px;
  padding: 40px;
  width: 400px;
}

.login-reloj-inline {
  text-align: center;
  margin-bottom: 16px;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 1px;
  line-height: 1.5;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.login-reloj-inline #login-fecha-texto {
  display: block;
  margin-bottom: 2px;
}

.login-reloj-inline #login-hora-completa {
  font-variant-numeric: tabular-nums;
  color: rgba(255, 255, 255, 0.7);
}

.login-titulo {
  text-align: center;
  font-size: 29px;
  font-weight: bold;
  letter-spacing: 2px;
  color: #ce93d8;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
  margin-bottom: 8px;
}

.login-subtitulo {
  text-align: center;
  font-size: 17px;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 30px;
  letter-spacing: 1px;
  text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}

.login-label {
  display: block;
  font-size: 17px;
  font-weight: bold;
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 4px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

.login-input {
  width: 100%;
  padding: 12px 14px;
  border: 2px solid rgba(206, 147, 216, 0.3);
  border-radius: 8px;
  font-size: 17px;
  margin-bottom: 16px;
  transition: all 0.2s;
  background: rgba(13, 13, 13, 0.25);
  color: rgba(255, 255, 255, 0.7);
}

.login-input:focus { 
  outline: none; 
  border-color: #ce93d8; 
  box-shadow: 0 0 0 3px rgba(106, 27, 154, 0.25);
  background: rgba(13, 13, 13, 0.4);
  color: rgba(255, 255, 255, 0.9);
}

.login-input::placeholder { 
  color: rgba(255, 255, 255, 0.45);
}

.login-btn {
  width: 100%;
  padding: 12px;
  background: rgba(106, 27, 154, 0.3);
  border: 1px solid rgba(206, 147, 216, 0.4);
  color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  font-size: 17px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
  min-height: 44px;
  box-sizing: border-box;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

.login-btn:hover { 
  background: rgba(106, 27, 154, 0.5);
  border-color: rgba(206, 147, 216, 0.6);
  color: rgba(255, 255, 255, 0.9);
}

.login-btn:active {
  background: rgba(106, 27, 154, 0.7);
  transform: translateY(1px);
}

.login-btn:disabled { 
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255,255,255,0.1);
  color: rgba(255, 255, 255, 0.3);
  cursor: not-allowed; 
}

.login-error {
  color: #ff8a80;
  font-size: 17px;
  text-align: center;
  margin-top: 12px;
  min-height: 16px;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ══ AUTOFILL: eliminar fondo amarillo del navegador ══ */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #1a1a2e inset !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
  caret-color: rgba(255, 255, 255, 0.95) !important;
  transition: background-color 5000s ease-in-out 0s;
}

input:autofill,
input:autofill:hover,
input:autofill:focus,
input:autofill:active {
  box-shadow: 0 0 0 1000px #1a1a2e inset !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.95) !important;
}
