/*
 * Portal login styles (patient portal theme).
 */
.ph-login-error a {
  display: block;
}

.primehealth-portal-login {
  background: #E8E8E8;
  color: #2D2D2D;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.primehealth-portal-login .ph-site-header {
  display: none !important;
}

.primehealth-portal-login .ph-main-shell {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
}

.ph-login-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.primehealth-reset-password {
  background: #2d2d2d;
}

.primehealth-reset-password main {
  max-width: none;
  width: 100%;
  margin: 0;
}

.ph-reset-wrapper {
  min-height: 100vh;
}

.ph-reset-shell-header {
  background: transparent;
  padding: 34px 20px 26px;
}

.ph-reset-topbar {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}

.ph-reset-topbar .ph-login-badge {
  margin-bottom: 0;
}

.ph-reset-topbar .ph-login-back-link {
  margin-bottom: 0;
  align-self: center;
}

.primehealth-reset-password .ph-login-title {
  color: #ffc53a;
  text-align: center;
  margin-top: 50px;
  margin-bottom: 10px;
}

.primehealth-reset-password .ph-login-subtitle {
  color: #f8fafc;
  text-align: center;
  margin-bottom: 10px;
}

.ph-reset-main {
  align-items: center;
  padding: 0 16px 40px;
  background:
    radial-gradient(1100px 360px at 50% -120px, rgba(255, 184, 0, 0.16), rgba(255, 184, 0, 0) 72%),
    linear-gradient(180deg, #2d2d2d 0%, #dfe4ea 26%, #eceff3 100%);
}

.ph-reset-card {
  width: min(520px, 96vw);
  padding: 30px 28px 26px;
  border-radius: 14px;
  border: 1px solid rgba(17, 24, 39, 0.08);
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.16);
  margin-top: -54px;
}

#resetpasswordform p {
  margin: 0 0 14px;
}

#resetpasswordform .input,
#resetpasswordform input[type="password"],
#resetpasswordform input[type="text"] {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 11px 12px;
  font-size: 14px;
  color: #0f172a;
  background: #ffffff;
}

#resetpasswordform .input:focus,
#resetpasswordform input[type="password"]:focus,
#resetpasswordform input[type="text"]:focus {
  outline: none;
  border-color: #ffb800;
  box-shadow: 0 0 0 3px rgba(255, 184, 0, 0.22);
}

.ph-reset-helper {
  margin: 2px 0 16px;
  font-size: 12px;
  color: #64748b;
}

.ph-login-header {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 220px at 50% -80px, rgba(255, 184, 0, 0.22), rgba(255, 184, 0, 0) 70%),
    linear-gradient(135deg, #111820 0%, #1e2a32 52%, #2d2d2d 100%);
  padding: 22px 24px 40px;
  text-align: center;
}

.ph-login-header::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 184, 0, 0), rgba(255, 184, 0, 0.68), rgba(255, 184, 0, 0));
}

.ph-login-header-inner {
  max-width: 920px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.ph-login-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 30px;
}

.ph-login-brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  text-decoration: none;
}

.ph-login-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #f7fafc;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.primehealth-staff-login .ph-login-back-link {
  position: static;
}

.ph-login-back-link:hover,
.ph-login-back-link:focus-visible {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.42);
  outline: none;
  transform: translateY(-1px);
}

.ph-login-hero {
  max-width: 560px;
  margin: 0 auto;
}

.ph-login-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  margin-bottom: 12px;
  border: 1px solid rgba(255, 184, 0, 0.34);
  border-radius: 999px;
  background: rgba(255, 184, 0, 0.1);
  color: #ffe4a3;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ph-login-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-size: 0;
  margin-bottom: 12px;
}

.ph-login-badge-logo {
  display: block;
  width: auto;
  height: 46px;
  max-width: 220px;
}

.ph-login-title {
  color: #ffffff;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0 0 10px 0;
}

.ph-login-subtitle {
  color: #d7e0e8;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.55;
  margin: 0;
}

.ph-login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 20px 56px;
}

.ph-login-panel-grid {
  width: min(960px, 96vw);
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 1.08fr);
  gap: 18px;
  align-items: stretch;
}

.ph-login-panel-grid--single {
  width: min(420px, 94vw);
  display: block;
}

.ph-login-card {
  background: #FFFFFF;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.1);
}

.ph-login-card--signin {
  display: flex;
  flex-direction: column;
}

.ph-login-card-head {
  margin-bottom: 18px;
}

.ph-login-card-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: #0f5c82;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ph-login-card-head h2 {
  margin: 0 0 7px;
  color: #111827;
  font-size: 22px;
  line-height: 1.16;
  font-weight: 900;
  letter-spacing: 0;
}

.ph-login-card-head p {
  margin: 0;
  color: #526173;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
}

.ph-login-error {
  margin-bottom: 18px;
  padding: 12px 13px;
  border-radius: 8px;
  border: 1px solid rgba(220, 38, 38, 0.2);
  border-left: 4px solid #dc2626;
  background: #fff7f7;
  color: #7f1d1d;
  font-size: 13px;
  font-weight: 650;
}

.ph-login-success {
  margin-bottom: 18px;
  padding: 12px 13px;
  border-radius: 8px;
  border: 1px solid rgba(22, 163, 74, 0.2);
  border-left: 4px solid #16a34a;
  background: #f0fdf4;
  color: #14532d;
  font-size: 13px;
  font-weight: 650;
}

#loginform {
  margin: 0;
}

#loginform p,
#lostpasswordform p,
#resetpasswordform p {
  margin-bottom: 16px;
}

#loginform label,
#lostpasswordform label,
#resetpasswordform label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #666666;
  margin-bottom: 6px;
}

#loginform input[type="text"],
#loginform input[type="password"],
#lostpasswordform input[type="email"],
#resetpasswordform input[type="text"],
#resetpasswordform input[type="password"] {
  width: 100%;
  border: 1px solid #D1D5DB;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  color: #111827;
  background: #FFFFFF;
}

#loginform input[type="text"]:focus,
#loginform input[type="password"]:focus,
#lostpasswordform input[type="email"]:focus,
#resetpasswordform input[type="text"]:focus,
#resetpasswordform input[type="password"]:focus {
  outline: none;
  border-color: #FFB800;
  box-shadow: 0 0 0 2px rgba(255, 184, 0, 0.2);
}

#loginform .login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #444444;
}

#loginform .login-remember input[type="checkbox"] {
  accent-color: #FFB800;
}

#loginform .login-submit,
#lostpasswordform .login-submit,
#resetpasswordform .login-submit {
  margin-top: 8px;
}

#loginform .button,
#lostpasswordform .button,
#resetpasswordform .button {
  width: 100%;
  background: #FFB800;
  border: 1px solid #FFB800;
  color: #2D2D2D;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 700;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.2s ease;
}

#loginform .button:hover,
#lostpasswordform .button:hover,
#resetpasswordform .button:hover {
  background: #E6A500;
}

.ph-login-links {
  display: flex;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: #666666;
  margin-top: auto;
  padding-top: 2px;
}

.ph-login-links a {
  color: #2D2D2D;
  font-weight: 600;
  text-decoration: none;
}

.ph-login-links a:hover {
  text-decoration: underline;
}

.ph-login-divider {
  color: #B0B0B0;
}

.ph-login-setup-card {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.84), rgba(255, 255, 255, 0.98) 54%),
    #ffffff;
}

.ph-login-setup-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #008ccf, #ffb800);
}

.ph-login-setup-icon {
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  border-radius: 8px;
  color: #075985;
  background: #e0f2fe;
  border: 1px solid rgba(14, 165, 233, 0.22);
}

.ph-login-setup-steps {
  list-style: none;
  margin: 18px 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.ph-login-setup-steps li {
  display: grid;
  grid-template-columns: 28px 1fr;
  align-items: start;
  gap: 10px;
  color: #263445;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.42;
}

.ph-login-setup-steps span {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #111820;
  color: #ffcf55;
  font-size: 12px;
  font-weight: 900;
}

.ph-login-setup-form {
  margin-top: 20px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: #f8fafc;
}

.ph-login-setup-form label {
  display: block;
  margin-bottom: 8px;
  color: #334155;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ph-login-setup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.ph-login-setup-row input {
  min-width: 0;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 10px 11px;
  color: #0f172a;
  background: #ffffff;
  font-size: 14px;
  font-weight: 650;
}

.ph-login-setup-row input:focus {
  outline: none;
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.18);
}

.ph-login-setup-row button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  color: #111820;
  background: #ffb800;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.ph-login-setup-row button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.ph-login-setup-help {
  margin: 9px 0 0;
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.ph-login-setup-status {
  margin: 12px 0 0;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.ph-login-setup-status.is-success {
  color: #14532d;
  background: #dcfce7;
  border: 1px solid rgba(34, 197, 94, 0.24);
}

.ph-login-setup-status.is-error {
  color: #7f1d1d;
  background: #fee2e2;
  border: 1px solid rgba(239, 68, 68, 0.24);
}

@media (max-width: 880px) {
  .ph-login-panel-grid {
    width: min(520px, 96vw);
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .ph-login-header {
    padding: 18px 16px 32px;
  }

  .ph-login-topbar {
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 24px;
  }

  .ph-login-badge-logo {
    height: 40px;
    max-width: 180px;
  }

  .ph-login-back-link {
    min-height: 36px;
    padding: 7px 11px;
    font-size: 10px;
  }

  .ph-login-title {
    font-size: 27px;
  }

  .ph-login-subtitle {
    font-size: 14px;
  }

  .ph-login-card {
    padding: 22px;
  }

  .ph-login-main {
    padding: 26px 14px 40px;
  }

  .ph-login-card-head h2 {
    font-size: 20px;
  }

  .ph-login-setup-row {
    grid-template-columns: 1fr;
  }

  .ph-login-setup-row button {
    width: 100%;
  }

  .ph-reset-shell-header {
    padding-top: 18px;
  }

  .ph-reset-topbar {
    gap: 10px;
    margin-bottom: 12px;
  }

  .ph-reset-topbar .ph-login-badge-logo {
    height: 44px;
    max-width: 190px;
  }

  .ph-reset-topbar .ph-login-back-link {
    font-size: 11px;
    padding: 6px 12px;
  }

  .ph-reset-main {
    padding-top: 10px;
  }

  .ph-reset-card {
    padding: 22px 18px 20px;
    border-radius: 12px;
  }
}
