/* Page & Background */
body, html {
  height: 100%;
  margin: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: linear-gradient(135deg, #f44336 0%, #1565c0 100%);
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Container */
.login-container {
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  padding: 50px 60px;
  width: 300px;
  max-width: 95%;
  text-align: center;
}

/* Heading */
.login-container h2 {
  color: #f44336;
  font-weight: 800;
  margin-bottom: 25px;
  font-size: 2.25rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Subheading / Text */
.login-container p.description {
  font-size: 1rem;
  margin-bottom: 30px;
  color: #444;
  font-weight: 500;
}

/* Input fields */
.login-container input[type="email"],
.login-container input[type="password"] {
  width: 100%;
  padding: 15px 18px;
  margin-bottom: 22px;
  border-radius: 10px;
  border: 2px solid #ccc;
  font-size: 17px;
  transition: border-color 0.3s ease;
}

.login-container input[type="email"]::placeholder,
.login-container input[type="password"]::placeholder {
  color: #999;
  font-style: italic;
}

.login-container input[type="email"]:focus,
.login-container input[type="password"]:focus {
  border-color: #1565c0;
  outline: none;
}

/* Submit Button */
.login-container button {
  width: 100%;
  padding: 18px;
  background-color: #1565c0;
  border: none;
  border-radius: 10px;
  color: white;
  font-weight: 800;
  font-size: 20px;
  letter-spacing: 1.5px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-transform: uppercase;
}

.login-container button:hover {
  background-color: #0d3c75;
}

/* Error Message */
.error-message {
  color: #f44336;
  margin-bottom: 22px;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}

/* Loader remains as previously defined */
/* .loader { ... } */

.loader {
  border: 6px solid #f3f3f3;
  border-top: 6px solid #1565c0;
  border-bottom: 6px solid #f44336;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}





.navbar {
  background: #1645A3 !important;
  color: #fff;
  border-radius: 0 0 12px 12px;
  box-shadow: 0 2px 10px #abc1dd33;
  margin-bottom: 18px;
}

.navbar-brand img {
  height: 36px;
  margin-right: 10px;
}

.sales-card {
  color: #fff;
  border-radius: 8px;
  padding: 26px 18px 18px 18px;
  margin-bottom: 17px;
  font-weight: 700;
}
.sales-card.red { background: #f44336; }
.sales-card.orange { background: #FF4600; }
.sales-card.blue { background: #1645A3; }

.summary-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 12px #abc1dd33;
  padding: 24px 26px;
  margin-bottom: 18px;
}

.section-title {
  background: #1645A3;
  color: #fff;
  padding: 12px 0;
  border-radius: 8px;
  text-align: center;
  font-weight: 600;
  font-size: 1.08em;
  margin-bottom: 16px;
}

.progress {
  height: 22px;
  background: #e0e8fa;
  border-radius: 18px;
}
.progress-bar {
  background: #1645A3 !important;
  font-weight: 700;
}

@media (max-width: 900px) {
  .summary-card, .sales-card {
    padding: 16px 8px;
    font-size: 1em;
  }
  .navbar-brand img { height: 28px; }
}

@media (max-width: 575px) {
  .sales-card, .summary-card { padding: 8px 2px 6px 2px; }
  .navbar { font-size: 0.93em; }
  .navbar-brand img { height: 22px; }
  .section-title { font-size: 0.98em; }
}
