/* login.css */
body.login-page {
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  background: url('/img/food_bg.jpg') no-repeat center center fixed;
  background-size: cover;
}

body.login-page::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(26, 15, 10, 0.65); /* Dark warm overlay */
  backdrop-filter: blur(8px);
  z-index: 0;
}

.particles-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.food-particle {
  position: absolute;
  font-size: 2rem;
  opacity: 0.15;
  animation: float-food 12s infinite ease-in-out;
  filter: drop-shadow(0 0 10px rgba(249, 115, 22, 0.5));
}

.food-particle:nth-child(1) { left: 10%; animation-duration: 15s; animation-delay: 0s; font-size: 2.5rem; }
.food-particle:nth-child(2) { left: 25%; animation-duration: 12s; animation-delay: 2s; font-size: 1.8rem; }
.food-particle:nth-child(3) { left: 40%; animation-duration: 18s; animation-delay: 4s; font-size: 3rem; }
.food-particle:nth-child(4) { left: 55%; animation-duration: 14s; animation-delay: 1s; font-size: 2.2rem; }
.food-particle:nth-child(5) { left: 70%; animation-duration: 16s; animation-delay: 3s; font-size: 2.7rem; }
.food-particle:nth-child(6) { left: 85%; animation-duration: 13s; animation-delay: 5s; font-size: 2rem; }
.food-particle:nth-child(7) { left: 15%; animation-duration: 17s; animation-delay: 6s; font-size: 2.4rem; }
.food-particle:nth-child(8) { left: 75%; animation-duration: 11s; animation-delay: 2.5s; font-size: 2.1rem; }

@keyframes float-food {
  0% { transform: translateY(110vh) rotate(0deg); opacity: 0; }
  10% { opacity: 0.2; }
  90% { opacity: 0.2; }
  100% { transform: translateY(-10vh) rotate(360deg); opacity: 0; }
}

.login-card {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 400px;
  padding: var(--space-8);
  border-radius: var(--radius-xl);
  text-align: center;
  box-shadow: var(--shadow-elevated);
}

.login-header {
  margin-bottom: var(--space-6);
}

.login-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto var(--space-4);
  color: var(--primary-color);
  filter: drop-shadow(var(--glow-green));
}

.login-title {
  font-size: var(--text-2xl);
  font-weight: 700;
  margin-bottom: var(--space-1);
}

.login-subtitle {
  color: var(--text-secondary);
  font-size: var(--text-sm);
}

.totp-input {
  width: 100%;
  font-family: var(--font-mono);
  font-size: var(--text-2xl);
  letter-spacing: 0.5em;
  text-align: center;
  padding: var(--space-4);
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  color: var(--primary-color);
  margin-bottom: var(--space-6);
  transition: all var(--transition-normal);
}

.totp-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: var(--glow-green);
}

.login-btn {
  width: 100%;
  padding: var(--space-3) var(--space-4);
  font-size: var(--text-base);
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, var(--primary-color), #059669);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-normal);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-green);
}

.login-error {
  margin-top: var(--space-4);
  color: var(--danger-color);
  font-size: var(--text-sm);
  display: none;
}

.login-footer {
  position: absolute;
  bottom: var(--space-4);
  left: 0;
  width: 100%;
  text-align: center;
  color: var(--text-secondary);
  font-size: var(--text-xs);
  z-index: 10;
}

.loading-spinner {
  display: none;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  border-top-color: #fff;
  animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
