/* Portal auth — aligned with Client accent (#136ad5) and login card look */

:root {
  --accent-color: #136ad5;
  --heading-color: #223a58;
  --portal-auth-accent: #136ad5;
  --portal-auth-heading: #223a58;
  --portal-auth-text: #394450;
  --portal-auth-muted: #6c757d;
}

.portal-auth-body {
  margin: 0;
  background: #ffffff;
}

.portal-auth-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  font-family: Roboto, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--portal-auth-text);
}

.portal-auth-topbar {
  background: var(--portal-auth-accent);
  color: #fff;
}

.portal-auth-topbar-inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0.95rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.portal-auth-brand {
  color: #fff;
  text-decoration: none;
  font-family: Raleway, Roboto, sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  line-height: 1.2;
}

.portal-auth-brand:hover,
.portal-auth-brand:focus {
  color: #fff;
  text-decoration: none;
  opacity: 0.95;
}

.portal-auth-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  flex-wrap: wrap;
}

.portal-auth-nav a {
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
}

.portal-auth-nav a:hover,
.portal-auth-nav a:focus {
  color: #fff;
  text-decoration: underline;
}

.portal-auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 4rem;
  background: #ffffff;
}

.portal-auth-card {
  width: 100%;
  max-width: 520px;
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--portal-auth-heading), transparent 90%);
  border-radius: 16px;
  padding: 40px 36px;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--portal-auth-heading), transparent 92%);
}

.portal-auth-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  font-weight: 700;
  color: var(--portal-auth-heading);
}

.portal-auth-lead {
  margin: 0 0 1.5rem;
  color: var(--portal-auth-muted);
  font-size: 0.98rem;
  line-height: 1.5;
}

.portal-auth-card #loginAlert {
  margin-bottom: 1rem;
}

.portal-auth-actions {
  margin-top: 0.5rem;
}

.portal-auth-actions .btn-auth-primary {
  width: 100%;
  height: 50px;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 10px;
  background: var(--portal-auth-accent);
  color: #fff;
}

.portal-auth-actions .btn-auth-primary:hover,
.portal-auth-actions .btn-auth-primary:focus {
  background: color-mix(in srgb, var(--portal-auth-accent), #000 15%);
  color: #fff;
}

.portal-auth-actions .btn-auth-primary[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.portal-auth-footer {
  margin-top: 1.25rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--portal-auth-muted);
}

.portal-auth-footer a {
  color: var(--portal-auth-accent);
  text-decoration: none;
  font-weight: 500;
}

.portal-auth-footer a:hover {
  text-decoration: underline;
}

@media (max-width: 520px) {
  .portal-auth-card {
    padding: 28px 22px;
    border-radius: 14px;
  }

  .portal-auth-brand {
    font-size: 1.35rem;
  }
}
