/* -------------------------------------------------
   Fullscreen login background video
--------------------------------------------------*/

.login-video-bg{
  position: relative;
  min-height: 100vh;
  overflow: hidden;

  /* Base fallback image (always present) */
  background: url("../assets/img/back.jpg")
              center center / cover no-repeat fixed;
}


/* Fullscreen video layer */
.login-bg-video{
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  object-fit: cover;
  z-index: -2;
}

/* Optional dark overlay for better contrast */
.login-video-bg::before{
  content: "";
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.25); /* adjust 0.15 – 0.35 if needed */
  z-index: -1;
}


/* -------------------------------------------------
   Make sure login box stays above video
--------------------------------------------------*/

.login-box{
  position: relative;
  z-index: 2;
}


/* -------------------------------------------------
   Card + frosted glass effect
--------------------------------------------------*/

.card {
  background: transparent !important;
  box-shadow: 0 4px 12px rgba(0,0,0,0.25);
  border: none;
}

.login-card-body {
  background-color: rgba(255, 255, 255, 0.10);
  border-radius: 10px;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border: 1px solid rgba(255,255,255,0.15);
}


/* -------------------------------------------------
   Login heading
--------------------------------------------------*/

.login-box-msg {
  font-size: 1.1rem;
  font-weight: 600;
  color: #000000;
  text-shadow: 0 1px 2px rgba(255,255,255,0.6);
}


/* -------------------------------------------------
   Inputs (small contrast improvement on glass)
--------------------------------------------------*/

.login-card-body input.form-control{
  background-color: rgba(255,255,255,0.85);
  border: 1px solid rgba(0,0,0,0.1);
}

.login-card-body input.form-control:focus{
  background-color: #ffffff;
  box-shadow: none;
}


/* -------------------------------------------------
   Forgot password link
--------------------------------------------------*/

.forgot-link {
  font-weight: 600;
  font-size: 1rem;
  color: #ffffff;
  text-decoration: none;
}

.forgot-link:hover {
  color: #ffcc00;
  text-decoration: underline;
}


/* -------------------------------------------------
   Errors / alerts visibility
--------------------------------------------------*/

.text-danger,
.alert-danger {
  color: #ffffff !important;
  font-size: 1.05rem;
  font-weight: 600;
  background: transparent !important;
  border: none !important;
  padding-left: 0;
  padding-right: 0;
}


/* -------------------------------------------------
   Accessibility – reduced motion users
--------------------------------------------------*/

@media (prefers-reduced-motion: reduce) {

  .login-bg-video{
    display: none;
  }

  /* keep the background image (already defined above) */

  .login-video-bg::before{
    display: none;
  }
}



/* -------------------------------------------------
   Small mobile tweak
--------------------------------------------------*/

@media (max-width: 576px){

  .login-card-body{
    padding: 1.25rem;
  }

}

/* -------------------------------------------------
   Emergency Contact Bar (Below Login Card)
   Clean + High Contrast + Glass Compatible
--------------------------------------------------*/

.emergency-bar {
  margin-top: 12px;

  /* Keep subtle glass effect */
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  border-radius: 6px;
  overflow: hidden;

  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.2);
}

/* -------------------------------------------------
   Header (Solid for visibility)
--------------------------------------------------*/

.emergency-bar .card-header {
  background: #3c5a99;   /* solid = always visible */
  color: #f1e216;

  font-weight: 500;
  font-size: 14px;

  padding: 6px 10px;
  text-align: center;

  border-bottom: none;

  /* improves readability on bright video */
  text-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

/* -------------------------------------------------
   Body Text
--------------------------------------------------*/

.emergency-bar .card-body {
  font-size: 14px;

  padding: 8px 10px;
  text-align: center;
  line-height: 1.5;

  /* 🔥 important for video background */
  text-shadow: 0 1px 3px rgba(0,0,0,0.7);
}

/* Labels (white) */
.emergency-bar .label-text {
  color: #eeff00;
  font-weight: 500;
}

/* Numbers (yellow highlight) */
.emergency-bar .number {
  color: #ffffff;
  font-weight: 700;
  letter-spacing: 0.4px;
}

/* -------------------------------------------------
   Mobile Optimization
--------------------------------------------------*/

@media (max-width: 576px){

  .emergency-bar {
    margin-top: 10px;
  }

  .emergency-bar .card-header {
    font-size: 13px;
    padding: 5px 8px;
  }

  .emergency-bar .card-body {
    font-size: 13px;
    padding: 6px 8px;
    line-height: 1.4;
  }
}