#loginContainer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #ff69b4 0%, #ffb6c1 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  font-family: Determination, sans-serif;
}

#loginContainer.hidden {
  display: none;
}

.login-box {
  position: relative;
  background-color: hotpink;
  border: 5px solid white;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 400px;
  color: white;
}

.login-box h1 {
  text-align: center;
  margin-top: 0;
  margin-bottom: 20px;
  font-size: 32px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
}

.input-group input {
  width: 100%;
  padding: 10px;
  border: 3px solid white;
  border-radius: 5px;
  font-size: 16px;
  font-family: w95, sans-serif;
  box-sizing: border-box;
}

.input-group input:focus {
  outline: none;
  /* glow removed */
}

.button-group {
  display: flex;
  gap: 10px;
  margin-top: 25px;
}

button {
  flex: 1;
  padding: 12px;
  border: 3px solid white;
  background-color: rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 18px;
  font-weight: bold;
  font-family: Determination, sans-serif;
  cursor: pointer;
  border-radius: 5px;
  transition: all 0.3s ease;
}

button:hover {
  background-color: rgba(255, 255, 255, 0.4);
  /* glow removed */
}

button:active {
  transform: scale(0.98);
}

.toggle-mode {
  text-align: center;
  margin-top: 15px;
  font-size: 14px;
}

.toggle-mode a {
  color: white;
  cursor: pointer;
  text-decoration: underline;
  font-weight: bold;
}

.error-message {
  color: #ffcccc;
  font-weight: bold;
  margin-top: 10px;
  text-align: center;
  font-size: 14px;
}

.logout-btn {
  position: fixed;
  top: 65px;
  right: 10px;
  padding: 8px 15px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 999;
}


.user-info {
  position: fixed;
  top: 10px;
  right: 50px;
  color: white;
  font-family: Determination, sans-serif;
  font-weight: bold;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.user-info.hidden {
  display: none;
}
.user-info.hidden {
  display: none;
}

/* Icon-style buttons used in the header for profile/login */
.icon-btn {
  width: 44px;
  height: 44px;
  background-size: cover;
  background-position: center;
  border-radius: 6px;
  border: 2px solid white;
  display: inline-block;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.profile-img-btn.icon-btn {
  background-image: url('images/cursor.png');
}


.profile-img-btn.hidden {
  display: none;
}

.login-img-btn.icon-btn {
  background-image: url('images/login.png');
}

.login-img-btn.icon-btn:hover {
  background-image: url('images/loginHover.png');
}

.login-img-btn.hidden {
  display: none;
}

.login-img-btn.icon-btn,
.login-img-btn.icon-btn:focus,
.login-img-btn.icon-btn:active,
.login-img-btn.icon-btn:hover {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background-color: transparent !important;
}

.login-img-btn.icon-btn {
  background-image: url('images/login.png');
  border: none;
  border-radius: 0;
  width: 200px;
  aspect-ratio: 5 / 2;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  padding: 0;
}

.login-img-btn.icon-btn:hover {
  background-image: url('images/loginHover.png');
  /* visual hover handled by the image itself; no extra transform/filter */
}

/* Place the homepage login button at the right of the header, vertically centered */
header {
  position: relative;
}
.login-img-btn.icon-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1000;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  color: white;
  font-size: 32px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/angel-sanctuary/images/background.jpg");
  background-repeat: repeat;
  background-size: 75px 75px;
  animation: slide 7s linear infinite;
  z-index: -1;
}

@keyframes slide {
  from {
    background-position: 0 0;
  }
  to {
    background-position:75px 75px;
  }
}