
:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --bg-dark: #0f172a;
  --card-bg: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f8fafc;
  color: #0f172a;
}

.auth-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at top right, #1e1b4b, #0f172a);
  padding: 1.5rem;
}

.login-card {
  background: #ffffff;
  border-radius: 1.25rem;
  padding: 2.5rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  box-sizing: border-box;
}

.portal-brand {
  font-size: 1.75rem;
  font-weight: 900;
  color: #1e40af;
  margin: 0;
}

.portal-tagline {
  font-size: 0.875rem;
  color: #64748b;
  margin: 0.25rem 0 0.5rem 0;
}

.subdomain-tag {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  background: #dbeafe;
  color: #1e40af;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 0.375rem;
  color: #334155;
}

.form-group input, input[type="text"], input[type="email"], input[type="password"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.625rem;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease-in-out;
}

.form-group input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.form-check-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
  color: #475569;
}

.btn {
  display: inline-block;
  font-weight: 700;
  text-align: center;
  border: none;
  cursor: pointer;
  padding: 0.75rem 1.25rem;
  font-size: 0.9rem;
  border-radius: 0.625rem;
  transition: background 0.2s;
  box-sizing: border-box;
}

.btn-primary {
  background: #2563eb;
  color: #ffffff;
}

.btn-primary:hover {
  background: #1d4ed8;
}

.w-full {
  width: 100%;
}

.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.625rem;
  font-size: 0.8125rem;
  margin-bottom: 1.25rem;
}

.alert-danger {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

.alert-success {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

.auth-footer {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
  text-align: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

.auth-footer a {
  color: #2563eb;
  text-decoration: none;
}
