/* Shared login-page styling for /admin/login and /auth/login — matches the
   admin dashboard's design system (Poppins, slate/indigo palette, card layout). */

* {
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  min-height: 100vh;
  margin: 0;
  background: linear-gradient(135deg, #eef2f9 0%, #e6ebf5 100%);
}

/* Centered via margin, not body flexbox, so the sticky .admin-nav above it
   (see adminDashboard.css) can span the full page width on its own. */
.container {
  background: #fff;
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 10px 40px rgba(30, 41, 59, 0.08), 0 2px 8px rgba(30, 41, 59, 0.06);
  width: calc(100% - 40px);
  max-width: 420px;
  margin: 40px auto;
  text-align: center;
}

h1 {
  margin: 0 0 0.5rem;
  color: #1e293b;
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}

.info-text {
  color: #64748b;
  font-size: 0.88rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}

.login-form,
.register-form {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin-top: 0.5rem;
}

.login-form input,
.register-form input {
  width: 100%;
  padding: 0.7rem 0.9rem;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  font-size: 0.92rem;
  font-family: inherit;
  color: #1e293b;
}

.login-form input:focus,
.register-form input:focus {
  outline: none;
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.12);
}

.login-form button,
.register-form button {
  width: 100%;
  padding: 0.75rem;
  border: none;
  border-radius: 8px;
  background: #4338ca;
  color: #fff;
  font-size: 0.92rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.15s ease;
}

.login-form button:hover,
.register-form button:hover {
  background: #3730a3;
  transform: translateY(-1px);
}

.error-list {
  list-style: none;
  text-align: left;
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid #fecaca;
  border-radius: 8px;
  background: #fef2f2;
}

.error-list li {
  color: #dc2626;
  font-size: 0.85rem;
  font-weight: 500;
}

.error-list li + li {
  margin-top: 0.25rem;
}

.register-link,
.login-link,
.auth-switch-link {
  margin-top: 1.25rem;
  font-size: 0.85rem;
  color: #64748b;
}

.register-link a,
.login-link a,
.auth-switch-link a {
  color: #4338ca;
  font-weight: 600;
  text-decoration: none;
}

.register-link a:hover,
.login-link a:hover,
.auth-switch-link a:hover {
  text-decoration: underline;
}

@media (max-width: 480px) {
  .container {
    padding: 1.75rem;
  }

  h1 {
    font-size: 1.4rem;
  }
}
