body {
  font-family: 'Inter', sans-serif;
  background-color: #f3f4f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  margin: 0;
  background-image: radial-gradient(ellipse at top left, rgba(59,130,246,0.07), transparent 40%),
                    radial-gradient(ellipse at bottom right, rgba(239,51,65,0.06), transparent 45%);
}

.login-container {
  width: 100%;
  max-width: 400px;
  padding: 20px;
}

.login-box {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  text-align: center;
}

/* Footer fixed at bottom */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12px;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

h1 {
  font-size: 24px;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 8px;
}

p {
  color: #6b7280;
  margin-bottom: 24px;
}

.input-group {
  text-align: left;
  margin-bottom: 20px;
}

.input-group:last-of-type {
  margin-bottom: 24px;
}

label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 8px;
}

input[type="email"],
input[type="password"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="email"]:focus,
input[type="password"]:focus {
  outline: none;
  border-color: #ef3341;
  box-shadow: 0 0 0 3px rgba(239, 51, 65, 0.1);
}

button {
  width: 100%;
  padding: 14px;
  background-color: #ef3341;
  color: white;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  margin-top: 8px;
}

button:hover:not(:disabled) {
  background-color: #d42c3a;
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(239, 51, 65, 0.3);
}

button:disabled {
  background-color: #9ca3af;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

button:active:not(:disabled) {
  transform: translateY(0);
}

.error-message {
  color: #dc2626;
  margin-top: 16px;
  font-size: 14px;
  height: 20px;
}

.message {
  margin-top: 16px;
  font-size: 14px;
  height: 20px;
  font-weight: 500;
}

.message.success {
  color: #059669; /* success-color */
}

.message.error {
  color: #dc2626; /* error-color */
}

.sub-link {
  margin-top: 24px;
  font-size: 14px;
}

.sub-link a {
  color: #ef3341;
  text-decoration: none;
  font-weight: 500;
}

.sub-link a:hover {
  text-decoration: underline;
}

/* Password Requirements Styling */
.password-requirements {
  margin-top: 8px;
  padding: 10px;
  background-color: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 4px;
  font-size: 12px;
}

.password-requirements small {
  font-weight: 500;
  color: #374151;
  display: block;
  margin-bottom: 4px;
}

.password-requirements ul {
  margin: 0;
  padding-left: 16px;
  color: #6b7280;
}

.password-requirements li {
  margin-bottom: 2px;
}

/* Responsive Design */
@media (max-width: 480px) {
  .login-container {
    padding: 10px;
  }
  .login-box {
    padding: 30px 20px;
  }
  h1 {
    font-size: 20px;
  }
}

/* Loading State */
.button-loading {
  position: relative;
  color: transparent !important;
}

.button-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin-left: -8px;
  margin-top: -8px;
  border: 2px solid transparent;
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Enhanced Error Messages */
.error-message,
.message.error {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 16px;
}

.message.success {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 16px;
}

/* Input validation styles */
input.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

input.success {
  border-color: #059669;
  box-shadow: 0 0 0 3px rgba(5, 150, 105, 0.1);
}