/*
 * 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 {
  background: #2D2D2D;
  padding: 36px 24px;
  text-align: center;
}

.ph-login-header-inner {
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.ph-login-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  margin-bottom: 12px;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.primehealth-staff-login .ph-login-back-link {
  position: absolute;
  left: 0;
  top: 0;
  margin-bottom: 0;
}

.ph-login-back-link:hover,
.ph-login-back-link:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.75);
  outline: none;
}

.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: 52px;
  max-width: 240px;
}

.ph-login-title {
  color: #FFB800;
  font-size: 26px;
  font-weight: 700;
  margin: 0 0 6px 0;
}

.ph-login-subtitle {
  color: #FFFFFF;
  font-size: 14px;
  margin: 0;
}

.ph-login-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.ph-login-card {
  width: min(420px, 94vw);
  background: #FFFFFF;
  border: 1px solid #E0E0E0;
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

#loginform {
  margin: 0;
}

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

#loginform 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"],
#resetpasswordform input[type="text"] {
  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,
#resetpasswordform input[type="text"]: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 {
  margin-top: 8px;
}

#loginform .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,
#resetpasswordform .button:hover {
  background: #E6A500;
}

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

.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;
}

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

  .primehealth-staff-login .ph-login-back-link {
    position: static;
    margin-bottom: 12px;
  }

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

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

  .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;
  }
}
