
/* LOGIN VIDEO BACKGROUND (AS-IS) */
html,body{height:100%;}
body.authbg{background:#000;}
.login-video-wrap{
  position:fixed;
  inset:0;
  z-index:0;
  overflow:hidden;
  pointer-events:none;
}
.login-video-wrap video{
  width:100%;
  height:100%;
  object-fit:cover;   /* keep video as background, full screen */
  filter: brightness(0.78) contrast(1.18) saturate(1.05);
}
/* keep login above */
.auth-wrap{position:relative; z-index:5;}
/* subtle matte overlay for readability */
.login-video-veil{
  position:fixed;
  inset:0;
  z-index:1;
  pointer-events:none;
  background: rgba(0,0,0,0.35);
}

/* Login options clean layout */
.login-options{
  margin-top:14px;
  display:flex;
  flex-direction:column;
  gap:10px;
  font-size:13px;
}
.login-options label{
  display:flex;
  align-items:center;
  gap:8px;
  color:#ddd;
}
.login-options a{
  color:#ff3b3b;
  text-decoration:none;
}
.login-options a:hover{
  text-decoration:underline;
}

/* ===== LOGIN CARD FIX (CENTERED & STABLE) ===== */
.auth-wrap{
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

.auth-card{
  width: 420px;
  max-width: calc(100vw - 40px);
  padding: 28px 30px;
  background: rgba(10,10,10,0.85);
  backdrop-filter: brightness(0.78) contrast(1.18) saturate(1.05);
  border-radius: 14px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.65);
}

.auth-card input[type="text"],
.auth-card input[type="password"]{
  width: 100%;
  height: 44px;
  border-radius: 8px;
  border: 1px solid #2a2a2a;
  background: #0f0f0f;
  color: #fff;
  padding: 0 12px;
  margin-bottom: 12px;
}

.auth-card button{
  width: 100%;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg,#ff2b2b,#b30000);
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
}

.login-options{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}

.login-options label{
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ccc;
}

/* ===== ABSOLUTE LOGIN OVERRIDE ===== */
*{animation:none !important;}

.auth-wrap{
  position:fixed !important;
  inset:0 !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  z-index:20 !important;
}

.auth-card{
  display:block !important;
  width:420px !important;
  max-width:calc(100vw - 40px) !important;
  padding:30px !important;
  background:rgba(0,0,0,0.85) !important;
  border-radius:14px !important;
  box-shadow:0 20px 60px rgba(0,0,0,0.7) !important;
  visibility:visible !important;
  opacity:1 !important;
}

/* Form field styling */
.auth-form .field{margin-bottom:12px;}
.auth-form .field label{display:block;margin-bottom:6px;font-size:13px;color:#cfcfcf;}
.btn-login{margin-top:6px;}


/* ===== CHECKBOX LAYOUT FIX ===== */
.login-options{
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left !important;
}

.login-options label{
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  width: 100% !important;
  color: #d8d8d8 !important;
  line-height: 1.2 !important;
  cursor: pointer;
}

.login-options input[type="checkbox"]{
  width: 16px !important;
  height: 16px !important;
  margin: 0 !important;
  flex: 0 0 16px !important;
  accent-color: #ff2b2b;
}

.login-options span{
  display: inline !important;
  flex: 1 1 auto !important;
}

.login-options a{
  color: #ff2b2b !important;
  text-decoration: none;
}

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



/* ===== Login theme tuned for NEW video (white ECU/DSG + red PCB + white hex) ===== */
.auth-card{
  border: 1px solid rgba(255, 43, 43, 0.25);
}
.auth-card h1, .auth-card .title, .auth-card .brand{
  color: #fff;
  text-shadow: 0 10px 30px rgba(0,0,0,0.65);
}
.auth-card input[type="text"], .auth-card input[type="password"]{
  border: 1px solid rgba(255,255,255,0.12);
}
.auth-card input[type="text"]:focus, .auth-card input[type="password"]:focus{
  border-color: rgba(255,43,43,0.65);
  box-shadow: 0 0 0 3px rgba(255,43,43,0.12);
  outline: none;
}
.btn-login{
  box-shadow: 0 14px 40px rgba(255,43,43,0.18);
}
/* veil tuned so white HEX stays visible */
.login-video-veil{
  background: rgba(0,0,0,0.28);
}

