/* Medhealth portal sign-in — brand roots aligned with public site */
:root {
  --portal-orange: #0525d4;
  --portal-purple: #03145f;
  --portal-lime: #3957d4;
  --portal-cyan: #cd150c;
  --portal-text: #1b1b1b;
  --portal-muted: #5e5e5e;
  --portal-surface: #ffffff;
  --portal-border: rgba(27, 27, 27, 0.1);
  --portal-shadow: 0 4px 24px rgba(5, 37, 212, 0.08), 0 24px 48px -28px rgba(205, 21, 12, 0.18);
  --portal-radius: 18px;
  --portal-radius-sm: 10px;
  --portal-font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Full-bleed login background (cropped caregiver photo, 1200Ã—800) */
  --portal-login-photo: url("../images/godaddy/3014758b466fbec1.jpg");
}

.portal-login-page {
  margin: 0;
  min-height: 100vh;
  font-family: var(--portal-font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--portal-text);
  background-color: #1a2430;
  background-image:
    linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.14) 0%,
      rgba(24, 40, 56, 0.42) 38%,
      rgba(10, 18, 28, 0.78) 100%
    ),
    var(--portal-login-photo);
  background-size: cover, cover;
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-attachment: scroll, scroll;
}

@media (min-width: 900px) and (prefers-reduced-motion: no-preference) {
  .portal-login-page {
    background-attachment: scroll, fixed;
  }
}

.portal-login-page-inner {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.25rem 1.25rem;
  box-sizing: border-box;
}

.portal-login-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.portal-login-shell {
  width: 100%;
  max-width: 420px;
}

.portal-login-card {
  background: var(--portal-surface);
  border-radius: var(--portal-radius);
  box-shadow: var(--portal-shadow);
  border: 1px solid var(--portal-border);
  padding: 2rem 1.75rem 1.75rem;
}

@media (min-width: 480px) {
  .portal-login-card {
    padding: 2.25rem 2rem 1.85rem;
  }
}

.portal-login-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 1.35rem;
}

.portal-login-logo {
  display: block;
  width: auto;
  max-width: 168px;
  height: auto;
  max-height: 72px;
  margin: 0 auto 0.65rem;
  object-fit: contain;
}

.portal-login-org {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--portal-muted);
  letter-spacing: 0.02em;
}

.portal-login-tabs {
  display: flex;
  gap: 0;
  margin: 0 -0.25rem 1.5rem;
  padding: 0.2rem;
  background: rgba(27, 27, 27, 0.05);
  border-radius: 12px;
}

.portal-login-tab {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--portal-muted);
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.portal-login-tab:hover {
  color: var(--portal-text);
}

.portal-login-tab.is-active {
  color: var(--portal-text);
  background: var(--portal-surface);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

.portal-login-panel[hidden] {
  display: none !important;
}

.portal-login-heading {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 0.35rem;
  color: var(--portal-text);
  text-align: center;
}

.portal-login-lead {
  font-size: 0.9rem;
  color: var(--portal-muted);
  text-align: center;
  margin: 0 0 1.35rem;
}

.portal-login-form .form-label {
  font-weight: 600;
  font-size: 0.8125rem;
  color: var(--portal-text);
  margin-bottom: 0.35rem;
}

.portal-login-form .form-label .text-danger {
  font-weight: 700;
}

.portal-login-form .form-control {
  border-radius: var(--portal-radius-sm);
  border-color: var(--portal-border);
  padding: 0.55rem 0.85rem;
  font-size: 0.9375rem;
}

.portal-login-form .form-control:focus {
  border-color: rgba(5, 37, 212, 0.45);
  box-shadow: 0 0 0 0.2rem rgba(5, 37, 212, 0.12);
}

.portal-login-password-field {
  position: relative;
}

.portal-login-password-field .portal-login-password-input {
  padding-right: 2.85rem;
}

.portal-login-password-toggle {
  position: absolute;
  right: 0.35rem;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  padding: 0;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--portal-muted);
  cursor: pointer;
  transition: color 0.15s ease, background 0.15s ease;
}

.portal-login-password-toggle:hover {
  color: var(--portal-text);
  background: rgba(5, 37, 212, 0.08);
}

.portal-login-password-toggle:focus-visible {
  outline: 2px solid rgba(5, 37, 212, 0.45);
  outline-offset: 2px;
}

.portal-login-password-icon {
  width: 1.25rem;
  height: 1.25rem;
  flex-shrink: 0;
}

.portal-login-submit {
  width: 100%;
  margin-top: 0.25rem;
  padding: 0.65rem 1rem;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  border-radius: var(--portal-radius-sm);
  color: #fff;
  background: linear-gradient(135deg, var(--portal-purple) 0%, #5a2f8f 100%);
  box-shadow: 0 4px 14px rgba(5, 37, 212, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.portal-login-submit:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(5, 37, 212, 0.4);
}

.portal-login-submit:active {
  transform: translateY(0);
}

/* Server-side validation summary: hide when empty so it is never mistaken for a disabled field */
.portal-login-validation.validation-summary-valid {
  display: none;
}

/* When there are errors, show a simple message strip — not a bordered “box” that looks like an input */
.portal-login-validation.validation-summary-errors {
  font-size: 0.875rem;
  margin-bottom: 1rem;
  padding: 0.35rem 0 0.35rem 0.75rem;
  border: none;
  border-radius: 0;
  border-left: 4px solid #dc3545;
  background: transparent;
  box-shadow: none;
}

.portal-login-validation.validation-summary-errors ul {
  margin: 0;
  padding-left: 1.1rem;
  list-style-type: disc;
}

.portal-login-validation.validation-summary-errors li {
  margin: 0.15rem 0;
}

.portal-login-access-body {
  text-align: center;
  color: var(--portal-muted);
  font-size: 0.9375rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.portal-login-access-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.portal-login-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.55rem 1rem;
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: var(--portal-radius-sm);
  border: 2px solid var(--portal-cyan);
  color: #1a7a8a;
  background: rgba(205, 21, 12, 0.08);
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease;
}

.portal-login-btn-outline:hover {
  background: rgba(205, 21, 12, 0.18);
  color: #145f6c;
}

.portal-login-btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.5rem 1rem;
  font-weight: 600;
  font-size: 0.875rem;
  border-radius: var(--portal-radius-sm);
  border: 1px solid var(--portal-border);
  color: var(--portal-muted);
  background: transparent;
  text-decoration: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.portal-login-btn-ghost:hover {
  border-color: rgba(27, 27, 27, 0.18);
  color: var(--portal-text);
}

.portal-login-footer {
  margin-top: 1.75rem;
  text-align: center;
}

.portal-login-footer-text {
  margin: 0;
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.portal-login-footer-links {
  margin: 0.35rem 0 0;
  font-size: 0.8125rem;
}

.portal-login-footer-links a {
  color: #ffd8bc;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
}

.portal-login-footer-links a:hover {
  color: #ffffff;
}

.field-validation-error,
.portal-login-form span.text-danger {
  font-size: 0.8125rem;
  display: block;
  margin-top: 0.25rem;
}
