/* -------------------------------------------
   Global & Windows 11 Typography
   ------------------------------------------- */
body {
  background: url('../img/l_bg.jpg') no-repeat center center fixed; 
  background-size: cover;
  background-attachment: fixed;
  background-color: #e3e8ed; /* Fallback light blue/gray */
  font-family: "Segoe UI Variable", "Segoe UI", "Segoe UI Web Regular", -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  margin: 0;
  -webkit-font-smoothing: antialiased;
}

/* -------------------------------------------
   Header - Windows 11 Title Bar / Top Nav
   ------------------------------------------- */
.header-bg {
  /* Acrylic material effect */
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(20px) saturate(125%);
  -webkit-backdrop-filter: blur(20px) saturate(125%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
}

.header-logo-left {
  height: 80px;
  position: relative;
  display: inline-block;
  transition: transform 0.2s ease;
  z-index: 1;
}

.header-logo-left:hover {
  transform: scale(1.02);
}

.header-title {
  font-size: 2.2rem;
  font-weight: 600;
  color: #000000; 
  letter-spacing: -0.02em; /* Tighter letter spacing native to Win 11 */
  margin-bottom: 0;
}

.header-subtitle {
  font-size: 1rem;
  font-weight: 400;
  color: #5c5c5c;
  margin: 0;
}

/* -------------------------------------------
   Login Card - Windows 11 App Window
   ------------------------------------------- */
.login-glass {
  /* Windows 11 Mica/Acrylic material */
  background: rgba(255, 255, 255, 0.65);
  backdrop-filter: blur(30px) saturate(150%);
  -webkit-backdrop-filter: blur(30px) saturate(150%);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: 8px; /* Win 11 standard window radius */
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 450px; /* Restrict width for better UX on large screens */
  margin: auto; /* Center the card */
}

/* Subtle inner light border common in Fluent Design */
.login-glass::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  pointer-events: none;
}

.login-glass .card-body,
.login-glass .card-header {
  position: relative;
  z-index: 2;
}

/* Windows 11 windows don't have heavy headers; make it seamless */
.login-glass .card-header {
  background: transparent;
  color: #000000;
  border-bottom: none;
  font-weight: 600;
  font-size: 1.4rem;
  padding: 1.5rem 1.5rem 0.5rem 1.5rem;
  text-align: center;
}

/* -------------------------------------------
   Form Elements - Fluent UI Controls
   ------------------------------------------- */
.login-glass .form-label {
  color: #1a1a1a;
  font-weight: 400;
  font-size: 0.9rem;
  margin-bottom: 0.3rem;
}

.login-glass .form-control {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-bottom: 1px solid rgba(0, 0, 0, 0.4); /* Classic Fluent bottom border */
  border-radius: 4px; /* Win 11 control radius */
  color: #000000;
  padding: 0.65rem 1rem;
  font-size: 0.95rem;
  transition: all 0.15s ease-in-out;
  box-shadow: none;
}

/* Windows 11 Focus State - Sharp blue accent line */
.login-glass .form-control:focus {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(0, 0, 0, 0.06);
  border-bottom: 2px solid #0067c0; /* Microsoft Blue */
  box-shadow: none;
  outline: none;
  padding-bottom: calc(0.65rem - 1px); /* Prevents layout shift from thicker border */
}

/* Primary Button */
.login-glass .btn-primary {
  background: #0067c0; /* Microsoft accent blue */
  color: #ffffff;
  border: 1px solid transparent;
  border-radius: 4px; /* Win 11 control radius */
  font-weight: 600;
  padding: 0.65rem 1.5rem;
  font-size: 0.95rem;
  transition: background-color 0.15s ease;
  /* Subtle inset highlight common in Win 11 buttons */
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15), 0 2px 4px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.login-glass .btn-primary:hover {
  background: #005a9e; /* Slightly darker blue */
}

.login-glass .btn-primary:active {
  background: #004c87;
  transform: scale(0.98); /* Subtle press effect */
}

/* Checkbox */
.login-glass .form-check-label {
  color: #333333;
  font-size: 0.9rem;
  margin-top: 0.15rem;
}

.login-glass .form-check-input {
  accent-color: #0067c0;
  border-radius: 4px;
  width: 1.1em;
  height: 1.1em;
  border: 1px solid rgba(0,0,0,0.4);
}

/* -------------------------------------------
   Footer - Fluent Dark/Light
   ------------------------------------------- */
footer.bg-dark {
  background: rgba(243, 243, 243, 0.8) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  color: #5c5c5c;
  font-size: 0.85rem;
  text-align: center;
  padding: 1rem 0;
  width: 100%;
  position: fixed;
  bottom: 0;
  z-index: 10;
}

/* -------------------------------------------
   Responsive Breakpoints
   ------------------------------------------- */
@media (max-width: 576px) {
  .header-logo-left { height: 50px; }
  .header-title { font-size: 1.5rem; }
  .header-subtitle { font-size: 0.85rem; }
  
  .login-glass {
    border-radius: 0; /* Full screen on mobile */
    border: none;
    max-width: 100%;
    min-height: calc(100vh - 140px); /* Adjust based on header/footer height */
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
}