:root {
  --primary-color: #2c5282;
  --secondary-color: #4a5568;
  --success-color: #38a169;
  --background-color: #f7fafc;
  --text-color: #2d3748;
}

body {
  background-color: var(--background-color);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.form-signin {
  max-width: 400px;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.logo-container {
  background: white;
  padding: 1rem;
  border-radius: 50%;
  margin-bottom: 1.5rem;
  display: inline-block;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo-container img {
  width: 150px;
  height: auto;
}

.form-floating {
  margin-bottom: 1rem;
}

.form-control:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 0.25rem rgba(44, 82, 130, 0.25);
}

.btn-primary {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  transition: all 0.2s;
}

.btn-primary:hover {
  background-color: #1a365d;
  border-color: #1a365d;
  transform: translateY(-1px);
}

.footer-links a {
  color: var(--primary-color);
  text-decoration: none;
}

.footer-links a:hover {
  text-decoration: underline;
}

.alert {
  border-radius: 0.5rem;
  margin-bottom: 1rem;
}

.form-check-input:checked {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
}

/* Loading state */
.btn-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.8;
}

.btn-loading:after {
  content: '';
  width: 1rem;
  height: 1rem;
  border: 2px solid #ffffff;
  border-radius: 50%;
  border-left-color: transparent;
  position: absolute;
  right: 1rem;
  top: 50%;
  transform: translateY(-50%);
  animation: spin 1s linear infinite;
}

@keyframes spin {
  100% {
    transform: translateY(-50%) rotate(360deg);
  }
}

/* Responsive adjustments */
@media (max-width: 576px) {
  .form-signin {
    margin: 1rem;
    padding: 1.5rem;
  }
  
  .logo-container img {
    width: 120px;
  }
}
