/* Layout */
.page-container {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 80vh;
  background-color: #f9fafb;
}

.auth-card,
.signup-card,
.login-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
}

.form-title,
.login-title {
  font-size: 1.75rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 1.5rem;
}

/* Form fields */
.form-group {
  margin-bottom: 1rem;
}

.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.25rem;
}

input[type="text"],
input[type="password"],
input[type="email"] {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease;
}

input[type="text"]:focus,
input[type="password"]:focus,
input[type="email"]:focus {
  border-color: #111827;
  outline: none;
}

/* Buttons */
.btn-primary {
  width: 100%;
  background-color: #111827;
  color: white;
  padding: 0.75rem;
  border-radius: 8px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: background 0.2s ease;
}

.btn-primary:hover {
  background-color: #374151;
}

.btn-google {
  background-color: #5986d8;
  color: white;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  display: inline-block;
  transition: background 0.2s ease;
}

.btn-google:hover {
  background-color: #d88c59;
}

/* Links */
.login-links {
  text-align: center;
  margin-top: 1rem;
  font-size: 0.9rem;
}

.login-links a {
  color: #374151;
  text-decoration: underline;
}

.form-link {
  color: #111827;
  font-weight: 600;
  text-decoration: underline;
}

.login-links a:hover {
  color: #111827;
}

.login-social {
  text-align: center;
  margin-top: 1.5rem;
}

/* Error messages */
.form-error {
  color: #dc2626;
  font-size: 0.8rem;
  margin-top: 0.25rem;
}

/* OAuth loading card */
.oauth-card {
  background: white;
  padding: 2rem;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 400px;
  text-align: center;
}

/* Spinner */
.loading-spinner {
  border: 4px solid #f3f4f6;
  border-top: 4px solid #111827;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  margin: 1.5rem auto;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

