/* static/css/login.css */
body {
  background: #f7f7f7;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-card {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.09);
  max-width: 350px;
  width: 100%;
  padding: 2rem 2rem 1.5rem 2rem;
  margin: auto;
  position: relative;
}

.logo-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 0.3rem;
}

.logo-gear {
  width: 44px;
  height: 44px;
  margin-bottom: 5px;
  display: block;
}

.dashboard-title {
  font-size: 1.08rem;
  font-weight: 700;
  text-align: center;
  color: #2d89ef;
  margin-bottom: 1.1rem;
  letter-spacing: .02em;
  line-height: 1.1;
}

.slogan {
  margin-top: -0.8rem;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.form-label {
  font-weight: 500;
}

.btn-primary {
  background: #2d89ef;
  border-color: #2d89ef;
  font-weight: 500;
}

.alert-danger {
  font-size: 1em;
  margin-bottom: 1em;
  padding: .6em 1em;
}

/* Mobile improvements */
@media (max-width: 768px) {
  body {
    padding: 1rem;
    align-items: flex-start;
    padding-top: 2rem;
  }
  
  .login-card {
    max-width: 100%;
    margin: 0;
    padding: 1.5rem;
  }
  
  .logo-gear {
    width: 60px;
    height: 60px;
  }
  
  .dashboard-title {
    font-size: 1.3rem;
  }
  
  .form-control {
    font-size: 16px; /* Prevents zoom on iOS */
    padding: 0.75rem;
  }
  
  .btn-primary {
    padding: 0.75rem;
    font-size: 1rem;
  }
  
  .theme-switch-container {
    position: fixed;
    top: 1rem;
    right: 1rem;
  }
}