body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
  min-height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  position: relative;
  overflow: hidden;
  color: #111; /* dark font color */
}

/* Blurred background */
body::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('../img/imag.jpg') center/cover no-repeat;
  filter: blur(8px);
  z-index: -2;
}

/* Dark overlay only for the background */
body::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5); /* adjust darkness */
  z-index: -1;
}

#app {
  width: 100%;
  max-width: 450px;
}

/* Bright, opaque login container */
#loginContainer {
  background: rgba(255, 255, 255, 0.95); /* bright and fully readable */
  border-radius: 12px;
  padding: 50px 40px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
  max-width: 450px;
  width: 100%;
  position: relative;
  z-index: 1; /* above blurred background */
  border: none; /* remove any frosted glass border */
  backdrop-filter: none; /* remove frosted effect */
}

#loader { text-align: center; }

#form-outer > #em-div,
#form-outer > #pass-div { text-align: left; }

#em-div p.text-muted,
#em-div p.text-link { text-align: center; }

input { outline: none; width: 100%; }
.fw-semibold { font-weight: 600; }
.s-div { margin-top: 8px; }
.hidden { display: none !important; visibility: hidden; }

@keyframes slideLeft { from { transform: translateX(0); opacity: 1 } to { transform: translateX(-100%); opacity: 0 } }
@keyframes slideRight { from { transform: translateX(100%); opacity: 0 } to { transform: translateX(0); opacity: 1 } }
.hide-left { animation: slideLeft .45s forwards; }
.show-right { animation: slideRight .45s forwards; }

.btn-no-radius { border-radius: 0; padding: 6px 10px; }
.text-link { color: #4291cf; text-decoration: none; }
.err { color: #dc3545; font-size: 0.95rem; margin-top: 8px; display: none; }

/* Responsive adjustments */
@media (max-width: 768px) {
  body::before { filter: blur(5px); }
  #loginContainer { padding: 45px 35px; max-width: 420px; }
}

@media (max-width: 480px) {
  body::before { filter: blur(3px); }
  #loginContainer { padding: 35px 25px; max-width: 400px; }
}
