/* Global Styles */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap");

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Inter", sans-serif;
  background-color: #f8fafc;
  color: #1f2937;
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

/* Login Container */
.login-container {
  background-color: white;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  padding: 40px;
  text-align: center;
}

/* Logo */
.logo {
  margin-bottom: 32px;
}

.logo svg {
  width: 64px;
  height: 64px;
  color: #4f46e5;
}

/* Form */
.login-form {
  text-align: left;
}

.form-title {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 24px;
  color: #111827;
  text-align: center;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #4b5563;
  margin-bottom: 6px;
}

.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #4f46e5;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Login Button */
.login-btn {
  width: 100%;
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 8px;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  margin-top: 8px;
}

.login-btn:hover {
  background-color: #4338ca;
}

.login-btn:active {
  transform: translateY(1px);
}

/* Error Message */
.error-message {
  color: #ef4444;
  font-size: 14px;
  margin-top: 16px;
  text-align: center;
  display: none;
}

.error-message.active {
  display: block;
}

/* Loading Indicator */
.loading-indicator {
  display: none;
  justify-content: center;
  margin-top: 16px;
}

.loading-indicator.active {
  display: flex;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(79, 70, 229, 0.2);
  border-radius: 50%;
  border-top-color: #4f46e5;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Responsive Adjustments */
@media (max-width: 480px) {
  .login-container {
    padding: 30px 20px;
  }

  .form-title {
    font-size: 22px;
  }
}
