/* --- LOGIN OVERLAY --- */
.header-login-button {
  background: #8b6f5a;
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease;
  margin-left: 10px;
}

.header-login-button:hover {
  background: #6f5645;
}

.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.65);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 1;
  transition: opacity 0.4s ease;
}

.login-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* --- LOGIN BOX --- */
.login-box {
  background: #faf7f2;
  padding: 30px 40px;
  border-radius: 12px;
  width: 90%;
  max-width: 420px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.25);
  animation: fadeIn 0.6s ease;
  text-align: center;
  font-family: "Segoe UI", sans-serif;
}

.login-title {
  margin-bottom: 10px;
  font-size: 1.4rem;
  font-weight: 600;
  color: #4a3f35;
}

/* --- TYPEWRITER --- */
.login-typewriter {
  min-height: 40px;
  margin-bottom: 20px;
  font-size: 1rem;
  color: #4a3f35;
  font-style: italic;
  white-space: pre-wrap;
}

/* --- INPUTS --- */
.login-label {
  display: block;
  text-align: left;
  margin-top: 12px;
  margin-bottom: 4px;
  font-size: 0.9rem;
  color: #4a3f35;
}

.login-input {
  width: 100%;
  padding: 10px;
  border: 1px solid #c9b9a8;
  border-radius: 6px;
  font-size: 1rem;
  background: #fff;
  transition: border-color 0.2s ease;
}

.login-input:focus {
  border-color: #8b6f5a;
  outline: none;
}

/* --- ERROR MESSAGE --- */
.login-error {
  margin-top: 12px;
  padding: 10px;
  background: #ffdddd;
  border: 1px solid #cc8888;
  color: #7a0000;
  border-radius: 6px;
  font-size: 0.9rem;
}

.login-error.hidden {
  display: none;
}

/* --- BUTTON --- */
.login-button {
  margin-top: 20px;
  width: 100%;
  padding: 12px;
  background: #8b6f5a;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.login-button:hover {
  background: #6f5645;
}

/* --- ANIMATIONS --- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
