/* Force login page to always use dark mode */
body.dark-mode {
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: url('/pictures/ea_bg_dark_mode.png') no-repeat center center fixed;
  background-size: cover;
  color: #ffffff !important;
}

/* Override any light mode styles for login page */
body.dark-mode * {
  color: #ffffff !important;
}

.login-container {
  /* iOS-style semi-transparent gradient - match destinations-sidebar */
  background: rgba(28, 30, 45, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  /* Subtle border - match destinations-sidebar */
  border: 1px solid #eee;
  
  /* Soft shadow for depth - match destinations-sidebar */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  
  border-radius: 20px;
  padding: 3rem;
  width: 90%;
  max-width: 400px;
  color: #ffffff;
  position: relative;
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.login-header {
  text-align: center;
  margin-bottom: 2rem;
}

.login-header img {
  width: 80px;
  height: auto;
  margin-bottom: 1rem;
}

.login-header h1 {
  color: #ffffff;
  margin: 0 0 0.5rem 0;
  font-size: 1.8rem;
}

.login-header p {
  color: #cfd8dc;
  margin: 0;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group label {
  display: block;
  color: #e6e6e6;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.form-group input {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.form-group input:focus {
  outline: none;
  border-color: rgba(255, 255, 255, 0.3);
  background: rgba(255, 255, 255, 0.12);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1);
}

.login-button {
  width: 100%;
  padding: 0.9rem;
  /* iOS-style semi-transparent gradient - match destinations-sidebar */
  background: rgba(28, 30, 45, 0.1);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  
  /* Subtle border - match destinations-sidebar */
  border: 1px solid rgba(255, 255, 255, 0.12);
  
  /* Soft shadow for depth - match destinations-sidebar */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  
  color: white;
  border-radius: 8px;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.login-button:hover {
  background: rgba(28, 30, 45, 0.8);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
  border-color: rgba(255, 255, 255, 0.25);
}

.login-button:active {
  transform: translateY(0);
}

.error-message {
  background: rgba(231, 76, 60, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(231, 76, 60, 0.5);
  color: #ff6b6b;
  padding: 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  display: none;
  text-align: center;
  box-shadow: 0 4px 16px rgba(231, 76, 60, 0.2);
}

.error-message.visible {
  display: block;
}