/* Full page */
body {
  margin: 0;
  font-family: 'Roboto', sans-serif;
  background: linear-gradient(135deg, #1a0f12 0%, #2a1e1e 100%);
  color: #f0f0f0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

/* Background particles */
.background-particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle, rgba(212,175,55,0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  animation: twinkle 4s infinite alternate;
  z-index: 0;
}
@keyframes twinkle {
  from { opacity: 0.3; }
  to { opacity: 0.8; }
}

/* Container */
.login-page {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Logo */
.logo {
  width: 200px;
  max-width: 80%;
  margin-bottom: 1rem;
  animation: fadeIn 1.5s ease-in-out;
}

/* Title */
.funny-title {
  font-family: 'MedievalSharp', cursive;
  font-size: 2rem;
  color: #d4af37;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
  margin-bottom: 1rem;
}

.subtitle {
  opacity: 0.9;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Password box */
.password-box {
  background: rgba(52, 40, 44, 0.85);
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(6px);
  max-width: 400px;
  width: 100%;
}

/* Button */
.password-box button {
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  background: linear-gradient(to right, #d4af37, #f8d49a);
  color: #1e1f22;
  font-weight: bold;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.password-box button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

.error {
  margin-top: 10px;
  color: #ff6666;
  font-size: 0.9rem;
}

/* Footer */
.login-footer {
  position: absolute;
  bottom: 15px;
  text-align: center;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  font-style: italic;
}

/* Fade-in */
.fade-in {
  animation: fadeIn 1s ease-in-out;
}
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Container for password + eye - CLEANED UP VERSION */
.password-input {
  position: relative;
  width: 80%;
  margin: 0 auto 1rem auto;
}

.password-input input {
  padding: 12px 40px 12px 12px;
  width: 100%;
  border-radius: 6px;
  border: 1px solid rgba(212, 175, 55, 0.3);
  background: rgba(30, 31, 34, 0.9);
  color: #fff;
  font-size: 1rem;
  outline: none;
  box-sizing: border-box;
  height: 44px;
  line-height: normal;
}

.password-input input:focus {
  border-color: #d4af37;
  box-shadow: 0 0 8px rgba(212, 175, 55, 0.4);
}

.toggle-eye {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #d4af37;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.toggle-eye svg {
  width: 20px;
  height: 20px;
  display: block;
}