* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url("../images/mapua-campus.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Auth Container */
.auth-container {
  width: 100%;
  max-width: 28rem;
  padding: 2rem;
}

.auth-card {
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-radius: 0.5rem;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  padding: 2rem;
}

/* Typography */
.auth-title {
  font-size: 1.875rem;
  font-weight: bold;
  text-align: center;
  margin-bottom: 1.5rem;
  color: #1f2937;
}

.auth-subtitle {
  text-align: center;
  color: #6b7280;
  margin-bottom: 1.5rem;
}

.forgot-description {
  margin-bottom: 1rem;
  color: #6b7280;
  line-height: 1.5;
}

/* Form Styles */
.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  font-size: 1rem;
  transition: all 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: #7c2d12;
  box-shadow: 0 0 0 3px rgba(124, 45, 18, 0.1);
}

.form-input::placeholder {
  color: #9ca3af;
}

/* Button Styles */
.auth-button {
  width: 100%;
  padding: 0.75rem;
  background-color: #7c2d12;
  color: white;
  border: none;
  border-radius: 9999px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s;
  position: relative;
  overflow: hidden;
}

.auth-button:hover {
  background-color: #92400e;
}

.auth-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.loading {
  display: none;
}

.auth-button:disabled .loading {
  display: inline;
}

.auth-button:disabled span:not(.loading) {
  display: none;
}

/* Links */
.forgot-password {
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}

.forgot-link {
  color: #6b7280;
  text-decoration: none;
  transition: color 0.2s;
}

.forgot-link:hover {
  color: #7c2d12;
}

.auth-footer {
  margin-top: 1.5rem;
  text-align: center;
}

.auth-footer p {
  color: #6b7280;
}

.auth-link {
  color: #7c2d12;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.auth-link:hover {
  color: #92400e;
}

/* Messages */
.error-message {
  background-color: #fef2f2;
  border: 1px solid #fecaca;
  color: #dc2626;
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

.success-message {
  background-color: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #16a34a;
  padding: 0.75rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  font-size: 0.875rem;
}

/* Success Container */
.success-container {
  text-align: center;
}

.success-description {
  color: #6b7280;
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

/* Development Tools */
.dev-tools {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #e5e7eb;
}

.dev-title {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.seed-button {
  background-color: #3b82f6;
  color: white;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.875rem;
  transition: background-color 0.2s;
  margin-bottom: 1rem;
}

.seed-button:hover {
  background-color: #2563eb;
}

.seed-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.seed-message {
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 0.375rem;
  margin-bottom: 1rem;
  white-space: pre-line;
}

.seed-message.success {
  background-color: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
}

.seed-message.error {
  background-color: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
}

/* Demo Accounts */
.demo-accounts {
  margin-top: 1rem;
}

.demo-title {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.5rem;
}

.demo-buttons {
  display: flex;
  gap: 0.5rem;
}

.demo-button {
  flex: 1;
  background-color: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
  padding: 0.5rem;
  border-radius: 0.375rem;
  cursor: pointer;
  font-size: 0.75rem;
  transition: background-color 0.2s;
}

.demo-button:hover {
  background-color: #e5e7eb;
}

/* Responsive Design */
@media (max-width: 640px) {
  .auth-container {
    padding: 1rem;
  }

  .auth-card {
    padding: 1.5rem;
  }

  .auth-title {
    font-size: 1.5rem;
  }

  .demo-buttons {
    flex-direction: column;
  }
}

/* Loading Animation */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.loading::after {
  content: "";
  display: inline-block;
  width: 1rem;
  height: 1rem;
  border: 2px solid transparent;
  border-top: 2px solid currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin-left: 0.5rem;
}
.loading-spinner {
  border: 4px solid #f3f3f3;
  border-top: 4px solid #3498db;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  animation: spin 2s linear infinite;
  margin: 20px auto;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.auth-card {
  text-align: center;
}

.auth-button {
  margin-top: 20px;
}
