/* =========================================================
   hide-signin-external.css
   Purpose:
   - Hide "Sign in with an external account" heading + external provider button on /SignIn
   - Hide "Register" tab (keep Redeem invitation unchanged)
   - Hide ALL local registration form components on /Account/Login/Register (UI only)
   ========================================================= */

/* =========================================================
   /SignIn: hide external login heading + provider button
   (safe: selectors only exist on sign-in pages)
   ========================================================= */

/* --- (A) Hide external login heading on /SignIn --- */
#external-login-heading {
  display: none !important;
}

/* --- (B) Hide the HKCS iAM Smart external provider button (exact match by value) --- */
button[name="provider"][value="https://hkcs-iam-oidc-bridge-prod-ekgeadbxd9fecqdq.eastasia-01.azurewebsites.net/api/"] {
  display: none !important;
}

/* =========================================================
   /SignIn tabs: hide ONLY the Register tab (NOT Redeem invitation)
   Register tab link is: /Account/Login/Register?returnUrl=...
   ========================================================= */
ul.nav.nav-tabs.nav-account a[href^="/Account/Login/Register"] {
  display: none !important;
}

/* Optional: hide the <li> container if browser supports :has() (cleaner spacing) */
ul.nav.nav-tabs.nav-account li:has(> a[href^="/Account/Login/Register"]) {
  display: none !important;
}

/* =========================================================
   /Account/Login/Register: hide ALL registration form components (UI only)
   NOTE: these IDs are unique to the Register page, so the rules effectively
         apply ONLY on /Account/Login/Register.
   ========================================================= */

/* Hide the local registration heading */
#ContentContainer_MainContent_MainContent_RegisterLocalFormHeading {
  display: none !important;
}

/* Hide the email/username blocks (wrappers) */
#ContentContainer_MainContent_MainContent_ShowEmail,
#ContentContainer_MainContent_MainContent_ShowUserName {
  display: none !important;
}

/* Hide all main register inputs + submit button */
#EmailTextBox,
#UserNameTextBox,
#PasswordTextBox,
#ConfirmPasswordTextBox,
#SubmitButton {
  display: none !important;
}

/* If any layout space still remains, hide the register form section container */
#ContentContainer_MainContent_MainContent_RegisterLocalFormHeading,
#SubmitButton {
  /* anchor selectors above; keep this block for clarity */
}

/* =========================================================
   (D) Hide ONLY the PROD external provider button on /SignIn
   - Exact match by provider value (authority URL)
   ========================================================= */

/* Hide the HKCS iAM Smart (PROD) external provider button */
button[name="provider"][value="https://hkcs-iam-oidc-bridge-prod-ekgeadbxd9fecqdq.eastasia-02.azurewebsites.net/api/"] {
  display: none !important;
}

/* Optional: if spacing looks weird and your browser supports :has(), hide the wrapping <li>/<div> if any */
div.form-horizontal:has(> button[name="provider"][value="https://hkcs-iam-oidc-bridge-prod-ekgeadbxd9fecqdq.eastasia-02.azurewebsites.net/api/"]) button[name="provider"][value="https://hkcs-iam-oidc-bridge-prod-ekgeadbxd9fecqdq.eastasia-02.azurewebsites.net/api/"] {
  display: none !important;
}