/* ===== LOGIN PAGE CSS ===== */
.login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: radial-gradient(ellipse at center, #0d0000 0%, #000000 70%);
  padding: 20px;
}

.blood-drip {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 80px;
  pointer-events: none;
  z-index: 100;
  background:
    radial-gradient(ellipse 4px 20px at 10% 0, #880000 80%, transparent 100%),
    radial-gradient(ellipse 5px 35px at 20% 0, #660000 80%, transparent 100%),
    radial-gradient(ellipse 3px 15px at 33% 0, #990000 80%, transparent 100%),
    radial-gradient(ellipse 6px 45px at 45% 0, #770000 80%, transparent 100%),
    radial-gradient(ellipse 4px 25px at 55% 0, #880000 80%, transparent 100%),
    radial-gradient(ellipse 5px 30px at 65% 0, #660000 80%, transparent 100%),
    radial-gradient(ellipse 3px 18px at 75% 0, #990000 80%, transparent 100%),
    radial-gradient(ellipse 4px 40px at 85% 0, #770000 80%, transparent 100%),
    radial-gradient(ellipse 5px 22px at 93% 0, #880000 80%, transparent 100%);
  animation: drip 8s ease-in-out infinite alternate;
}

@keyframes drip {
  0% { transform: scaleY(1); }
  100% { transform: scaleY(1.3); }
}

.login-container {
  background: rgba(8, 0, 0, 0.92);
  border: 1px solid #440000;
  max-width: 480px;
  width: 100%;
  padding: 40px 35px;
  position: relative;
  box-shadow:
    0 0 30px rgba(180,0,0,0.3),
    0 0 80px rgba(180,0,0,0.1),
    inset 0 0 30px rgba(0,0,0,0.8);
  z-index: 200;
}

.login-container::before {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid #220000;
  pointer-events: none;
}

.terminal-header {
  font-size: 0.6rem;
  letter-spacing: 2px;
  color: #550000;
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid #1a0000;
}

.skull-emblem {
  text-align: center;
  font-size: 3rem;
  color: #aa0000;
  text-shadow: 0 0 20px #ff0000, 0 0 40px #660000;
  animation: skullPulse 3s ease-in-out infinite;
  margin-bottom: 10px;
}

@keyframes skullPulse {
  0%, 100% { text-shadow: 0 0 10px #ff0000, 0 0 20px #660000; transform: scale(1); }
  50% { text-shadow: 0 0 25px #ff0000, 0 0 50px #880000; transform: scale(1.05); }
}

.site-title {
  font-family: 'Oswald', sans-serif;
  font-size: 2.8rem;
  text-align: center;
  color: #f0f0f0;
  letter-spacing: 8px;
  text-transform: uppercase;
  margin-bottom: 5px;
  text-shadow: 0 0 30px rgba(204,0,0,0.5);
}

.site-title .red {
  color: #cc0000;
  text-shadow: 0 0 15px #ff0000;
}

.tagline {
  text-align: center;
  font-size: 0.55rem;
  color: #440000;
  letter-spacing: 3px;
  margin-bottom: 25px;
}

.sanskrit-text {
  text-align: center;
  font-size: 1.5rem;
  color: #cc9900;
  text-shadow: 0 0 15px rgba(200,150,0,0.5);
  letter-spacing: 2px;
  margin-bottom: 5px;
  font-family: serif;
}

.sanskrit-translation {
  text-align: center;
  font-size: 0.65rem;
  color: #886600;
  letter-spacing: 3px;
  margin-bottom: 25px;
  font-style: italic;
}

.hint-box {
  background: #080000;
  border: 1px solid #2a0000;
  padding: 15px;
  margin-bottom: 25px;
  position: relative;
}

.hint-box::before {
  content: '▶';
  position: absolute;
  top: -8px;
  left: 15px;
  background: #080000;
  padding: 0 5px;
  color: #cc0000;
  font-size: 0.6rem;
}

.hint-label {
  color: #cc0000;
  font-size: 0.65rem;
  letter-spacing: 2px;
  margin-bottom: 8px;
}

.hint-text {
  font-size: 0.7rem;
  color: #888;
  line-height: 1.7;
}

.hint-text strong {
  color: #cc9900;
}

.hint-text em {
  color: #cc0000;
}

.small-hint {
  display: block;
  margin-top: 8px;
  font-size: 0.6rem;
  color: #555;
  border-top: 1px solid #1a0000;
  padding-top: 8px;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.login-form input {
  background: #0a0000;
  border: 1px solid #440000;
  color: #cc0000;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.9rem;
  padding: 12px 15px;
  letter-spacing: 3px;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
}

.login-form input:focus {
  border-color: #cc0000;
  box-shadow: 0 0 10px rgba(204,0,0,0.3);
}

.login-form input::placeholder {
  color: #330000;
  letter-spacing: 2px;
}

#loginBtn {
  background: #1a0000;
  border: 1px solid #cc0000;
  color: #cc0000;
  font-family: 'Share Tech Mono', monospace;
  font-size: 0.8rem;
  letter-spacing: 3px;
  padding: 12px;
  cursor: pointer;
  transition: all 0.2s;
  text-transform: uppercase;
}

#loginBtn:hover {
  background: #cc0000;
  color: #fff;
  box-shadow: 0 0 15px rgba(204,0,0,0.5);
}

#loginBtn:active {
  transform: scale(0.98);
}

.error-msg {
  color: #ff4444;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-align: center;
  min-height: 20px;
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.bottom-warning {
  text-align: center;
  font-size: 0.55rem;
  color: #330000;
  letter-spacing: 2px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #1a0000;
}

@media (max-width: 480px) {
  .login-container { padding: 25px 20px; }
  .site-title { font-size: 2rem; letter-spacing: 5px; }
  .sanskrit-text { font-size: 1.2rem; }
}
