/**
 * Catalyst embedded login — loaded INSIDE the Zoho sign-in iframe only (`signIn` → `css_url`).
 * Keep :root tokens aligned with `src/styles/variables.css` and `LoginPage.css`.
 *
 * Reference IDs/classes: https://docs.catalyst.zoho.com/en/cloud-scale/help/authentication/native-catalyst-authentication/embedded-authentication/reference-stylesheet-embedded
 */

/* Resolves against this file's host, so the iframe gets Zoho Puvi from our origin. */
@import url('fonts/zoho-puvi.css');

html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  overflow: hidden !important;
  height: auto !important;
  max-height: none !important;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

:root {
  /* Mirror `variables.css`: --color-primary, --radius-md, focus ring from form pattern */
  --login-primary: #4a9b85;
  --login-primary-hover: #3d8a73;
  --login-text: #1a1a1a;
  --login-muted: #4a4a4a;
  --login-border: #e0e0e0;
  --login-surface: #ffffff;
  --login-placeholder: #6b6b6b;
  --login-radius: 8px;
  --login-focus-ring: rgba(74, 155, 133, 0.12);
  --login-control-min-h: 2.75rem;
  --login-pad-y: 12px;
  --login-pad-x: 12px;
  --login-shadow-hover: 0 2px 4px 0 rgba(0, 0, 0, 0.08), 0 1px 2px 0 rgba(0, 0, 0, 0.04);
}

body {
  margin: 0;
  padding: 0;
  min-height: 0 !important;
  height: auto !important;
  max-height: none !important;
  font-family: var(--font-family-primary, 'Zoho Puvi', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif);
  font-size: 16px;
  color: var(--login-text);
  background: #fff;
  overflow: hidden !important;
}

/*
 * Hide signup UI inside the iframe. Not a security control — Public Signup must
 * be disabled in Catalyst Console (Authentication). Invite-only via admin.
 */
.signuppanel,
#signup,
.signupcontainer > .signup:not(.signincontainer),
.signup_link,
a[href*="signup"] {
  display: none !important;
}

/* Zoho’s default sheet uses overflow-y: auto on these — that causes the inner scrollbar */
.signin_container {
  overflow: hidden !important;
  max-height: none !important;
  height: auto !important;
  width: 100% !important;
  max-width: 100% !important;
}

/* --- Zoho conventional sign-in layout (inside iframe document) --- */

.signin_box {
  background: transparent !important;
  box-shadow: none !important;
  border: none !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  overflow: hidden !important;
  /* Symmetric horizontal padding so inputs and submit share one column width */
  padding: 0.25rem 0.75rem 0.75rem !important;
  text-align: left !important;
}

/* Zoho often uses a table; uneven td padding makes the button wider/narrower than fields */
.signin_box table {
  width: 100% !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
}

.signin_box td {
  padding-left: 0 !important;
  padding-right: 0 !important;
  box-sizing: border-box !important;
}

.signin_box .blue,
.signin_box .blue .btn {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/*
 * Single heading line inside the iframe (replaces Zoho app name + “Sign in to access …”).
 */
#headtitle,
.signin_head {
  display: none !important;
}

.signin_head + div,
.signin_box > .text16:first-of-type {
  display: none !important;
}

/* Title + subtitle live on the host card (Login.jsx); hide iframe duplicate heading */
.signin_box::before {
  display: none !important;
  content: none !important;
}

/* Hide app / service titles that can read as labels (e.g. project name) */
.titlename,
.service_name,
.portal_logo {
  display: none !important;
}

.signin_box .textbox_div {
  margin-bottom: 1.15rem !important;
}

/*
 * Step 1 vs 2: step 2 only when read-only email has text (empty `.username` nodes exist on step 1).
 */
.signin_box .hellouser,
.signin_box .user_info {
  display: none !important;
}

.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .textbox_div:has(#password),
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .show_hide_password {
  display: none !important;
}

.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) #forgotpassword {
  display: none !important;
}

.signin_box:has(.hellouser .username:not(:empty)) .hellouser,
.signin_box:has(.user_info .username:not(:empty)) .user_info,
.signin_box:has(.user_info .menutext:not(:empty)) .user_info {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: 100% !important;
  float: none !important;
  clear: both !important;
  margin: 0 0 1.15rem !important;
  padding: 0 !important;
}

.signin_box:has(.hellouser .username:not(:empty)) .textbox_div:has(#password),
.signin_box:has(.user_info .username:not(:empty)) .textbox_div:has(#password),
.signin_box:has(.user_info .menutext:not(:empty)) .textbox_div:has(#password) {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
}

.signin_box:has(.hellouser .username:not(:empty)) .textbox_div:has(#login_id),
.signin_box:has(.user_info .username:not(:empty)) .textbox_div:has(#login_id),
.signin_box:has(.user_info .menutext:not(:empty)) .textbox_div:has(#login_id) {
  display: none !important;
}

#login_id[type='hidden'] {
  display: none !important;
}

.signin_box:has(.hellouser .username:not(:empty)) .hellouser::before,
.signin_box:has(.user_info .username:not(:empty)) .user_info::before,
.signin_box:has(.user_info .menutext:not(:empty)) .user_info::before {
  content: 'Email Address:' !important;
  display: block !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--login-text) !important;
  text-align: left !important;
  margin-bottom: 0.35rem !important;
  order: -1 !important;
}

.signin_box:has(.hellouser .username:not(:empty)) .hellouser .username,
.signin_box:has(.user_info .username:not(:empty)) .user_info .username,
.signin_box:has(.user_info .menutext:not(:empty)) .user_info .menutext {
  float: none !important;
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  min-height: var(--login-control-min-h) !important;
  padding: var(--login-pad-y) var(--login-pad-x) !important;
  font-size: 0.9375rem !important;
  line-height: 1.25 !important;
  border: 1px solid var(--login-border) !important;
  border-radius: var(--login-radius) !important;
  background: var(--login-surface) !important;
  color: var(--login-text) !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  pointer-events: none !important;
}

/*
 * “Change” is the switch-account control (`.Notyou`); when it stacks like a label, hide it so
 * our Password label reads correctly. Users can still correct email from the email step.
 */
.signin_box .Notyou {
  display: none !important;
}

/*
 * Field labels — Zoho sometimes omits `.textbox_label` or shows app name text.
 * Use ::before on the field wrapper so “Email” / “Password” always show above inputs.
 */
.textbox_div:has(#login_id:not([type='hidden'])) .textbox_label,
.textbox_div:has(#password) .textbox_label {
  display: none !important;
}

label[for='login_id'],
label[for='password'] {
  display: none !important;
}

.textbox_div:has(#login_id:not([type='hidden']))::before {
  content: 'Email Address:' !important;
  display: block !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--login-text) !important;
  text-align: left !important;
  margin-bottom: 0.4rem !important;
  padding-left: 0 !important;
  background-image: none !important;
}

.textbox_div:has(#password)::before {
  content: 'Password:' !important;
  display: block !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--login-text) !important;
  text-align: left !important;
  margin-bottom: 0.4rem !important;
  padding-left: 0 !important;
  background-image: none !important;
}

#login_id::placeholder,
#password::placeholder,
.textbox::placeholder {
  color: var(--login-placeholder) !important;
  opacity: 1 !important;
}

#login_id,
#password,
.textbox,
input[type='password'],
input[type='email'],
input[type='text']:not([type='hidden']) {
  width: 100% !important;
  max-width: 100% !important;
  min-height: var(--login-control-min-h) !important;
  padding: var(--login-pad-y) var(--login-pad-x) !important;
  font-size: 0.9375rem !important;
  line-height: 1.25 !important;
  border: 1px solid var(--login-border) !important;
  border-radius: var(--login-radius) !important;
  background-color: var(--login-surface) !important;
  background-repeat: no-repeat !important;
  color: var(--login-text) !important;
  margin-top: 0.2rem !important;
  margin-bottom: 0.35rem !important;
  box-sizing: border-box !important;
}

/* Envelope / lock icons inside the input cards (reference UI) */
#login_id:not([type='hidden']) {
  padding-left: 2.55rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='3' y='5' width='18' height='14' rx='2' stroke='%234a9b85' stroke-width='1.75'/%3E%3Cpath d='M4 7l8 6 8-6' stroke='%234a9b85' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-position: 0.8rem center !important;
  background-size: 1.1rem 1.1rem !important;
}

#password {
  padding-left: 2.55rem !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Crect x='5' y='11' width='14' height='10' rx='2' stroke='%234a9b85' stroke-width='1.75'/%3E%3Cpath d='M8 11V8a4 4 0 1 1 8 0v3' stroke='%234a9b85' stroke-width='1.75' stroke-linecap='round'/%3E%3C/svg%3E") !important;
  background-position: 0.8rem center !important;
  background-size: 1.1rem 1.1rem !important;
}

#login_id:focus,
#password:focus,
.textbox:focus {
  outline: none !important;
  border-color: var(--login-primary) !important;
  box-shadow: 0 0 0 3px var(--login-focus-ring) !important;
}

/* Password step — in-field show/hide eye (Catalyst .show_hide_password) */
.signin_box:has(.hellouser .username:not(:empty)) .textbox_div:has(#password),
.signin_box:has(.user_info .username:not(:empty)) .textbox_div:has(#password),
.signin_box:has(.user_info .menutext:not(:empty)) .textbox_div:has(#password) {
  position: relative !important;
}

.signin_box:has(.hellouser .username:not(:empty)) .textbox_div:has(#password) #password,
.signin_box:has(.user_info .username:not(:empty)) .textbox_div:has(#password) #password,
.signin_box:has(.user_info .menutext:not(:empty)) .textbox_div:has(#password) #password {
  padding-left: 2.55rem !important;
  padding-right: 2.75rem !important;
}

.signin_box:has(.hellouser .username:not(:empty)) .show_hide_password,
.signin_box:has(.user_info .username:not(:empty)) .show_hide_password,
.signin_box:has(.user_info .menutext:not(:empty)) .show_hide_password {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto !important;
  position: absolute !important;
  right: 0.55rem !important;
  top: calc(0.35rem + 1.35rem + 0.2rem + (var(--login-control-min-h) / 2)) !important;
  transform: translateY(-50%) !important;
  width: 2rem !important;
  height: 2rem !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  color: var(--login-primary) !important;
  cursor: pointer !important;
  z-index: 2 !important;
  font-size: 1.15rem !important;
  line-height: 1 !important;
  overflow: visible !important;
}

.signin_box:has(.hellouser .username:not(:empty)) .show_hide_password [class*='icon-'],
.signin_box:has(.user_info .username:not(:empty)) .show_hide_password [class*='icon-'],
.signin_box:has(.user_info .menutext:not(:empty)) .show_hide_password [class*='icon-'] {
  color: var(--login-primary) !important;
  font-size: 1.15rem !important;
}

/* Fallback eye when signinicon font is unavailable */
.signin_box:has(.hellouser .username:not(:empty)) .show_hide_password:not(:has([class*='icon-']))::before,
.signin_box:has(.user_info .username:not(:empty)) .show_hide_password:not(:has([class*='icon-']))::before,
.signin_box:has(.user_info .menutext:not(:empty)) .show_hide_password:not(:has([class*='icon-']))::before,
.signin_box:has(.hellouser .username:not(:empty)) .show_hide_password.murim-pwd-toggle::before,
.signin_box:has(.user_info .username:not(:empty)) .show_hide_password.murim-pwd-toggle::before,
.signin_box:has(.user_info .menutext:not(:empty)) .show_hide_password.murim-pwd-toggle::before {
  content: '' !important;
  display: block !important;
  width: 1.25rem !important;
  height: 1.25rem !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a9b85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M1 12s4-8 11-8 11 8 11 8-4 8-11 8-11-8-11-8z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") !important;
}

.signin_box:has(.hellouser .username:not(:empty)) .show_hide_password.icon_show:not(:has([class*='icon-']))::before,
.signin_box:has(.user_info .username:not(:empty)) .show_hide_password.icon_show:not(:has([class*='icon-']))::before,
.signin_box:has(.user_info .menutext:not(:empty)) .show_hide_password.icon_show:not(:has([class*='icon-']))::before,
.signin_box:has(.hellouser .username:not(:empty)) .show_hide_password.murim-pwd-toggle.icon_show::before,
.signin_box:has(.user_info .username:not(:empty)) .show_hide_password.murim-pwd-toggle.icon_show::before,
.signin_box:has(.user_info .menutext:not(:empty)) .show_hide_password.murim-pwd-toggle.icon_show::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a9b85' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M17.94 17.94A10.07 10.07 0 0 1 12 20c-7 0-11-8-11-8a18.45 18.45 0 0 1 5.06-5.94'/%3E%3Cpath d='M9.9 4.24A9.12 9.12 0 0 1 12 4c7 0 11 8 11 8a18.5 18.5 0 0 1-2.16 3.19'/%3E%3Cpath d='M1 1l22 22'/%3E%3Cpath d='M14.12 14.12a3 3 0 1 1-4.24-4.24'/%3E%3C/svg%3E") !important;
}

#nextbtn,
.blue .btn,
button[type='submit'],
input[type='submit'] {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
  margin-top: 0.65rem !important;
  min-height: var(--login-control-min-h) !important;
  padding: var(--login-pad-y) var(--login-pad-x) !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: #fff !important;
  background: var(--login-primary) !important;
  border: none !important;
  border-radius: var(--login-radius) !important;
  cursor: pointer !important;
}

#nextbtn:hover,
.blue .btn:hover,
button[type='submit']:hover {
  background: var(--login-primary-hover) !important;
  transform: translateY(-1px);
  box-shadow: var(--login-shadow-hover) !important;
}

#nextbtn:active,
.blue .btn:active,
button[type='submit']:active {
  transform: translateY(0) !important;
}

/* Step 1: “Next” — step 2: “Log in” */
button#nextbtn {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  position: relative !important;
  font-size: 0 !important;
  line-height: 0 !important;
  color: transparent !important;
  text-shadow: none !important;
}

.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) button#nextbtn::after {
  content: 'Next' !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: #fff !important;
  display: block !important;
  padding: 0 !important;
}

.signin_box:has(.hellouser .username:not(:empty)) button#nextbtn::after,
.signin_box:has(.user_info .username:not(:empty)) button#nextbtn::after,
.signin_box:has(.user_info .menutext:not(:empty)) button#nextbtn::after {
  content: 'Log in' !important;
  font-size: 0.9375rem !important;
  font-weight: 600 !important;
  line-height: 1.25 !important;
  color: #fff !important;
  display: block !important;
  padding: 0 !important;
}

.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) input[type='submit']#nextbtn,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) input[type='button']#nextbtn {
  font-size: 0 !important;
  color: transparent !important;
  text-shadow: none !important;
  line-height: 0 !important;
  background-color: var(--login-primary) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 32'%3E%3Ctext x='60' y='21' text-anchor='middle' fill='%23ffffff' font-size='15' font-weight='600' font-family='system-ui,sans-serif'%3ENext%3C/text%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: auto 0.9375rem !important;
}

.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) input[type='submit']#nextbtn:hover,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) input[type='button']#nextbtn:hover {
  background-color: var(--login-primary-hover) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 32'%3E%3Ctext x='60' y='21' text-anchor='middle' fill='%23ffffff' font-size='15' font-weight='600' font-family='system-ui,sans-serif'%3ENext%3C/text%3E%3C/svg%3E") !important;
  transform: translateY(-1px);
  box-shadow: var(--login-shadow-hover) !important;
}

.signin_box:has(.hellouser .username:not(:empty)) input[type='submit']#nextbtn,
.signin_box:has(.hellouser .username:not(:empty)) input[type='button']#nextbtn,
.signin_box:has(.user_info .username:not(:empty)) input[type='submit']#nextbtn,
.signin_box:has(.user_info .username:not(:empty)) input[type='button']#nextbtn,
.signin_box:has(.user_info .menutext:not(:empty)) input[type='submit']#nextbtn,
.signin_box:has(.user_info .menutext:not(:empty)) input[type='button']#nextbtn {
  font-size: 0 !important;
  color: transparent !important;
  text-shadow: none !important;
  line-height: 0 !important;
  background-color: var(--login-primary) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 32'%3E%3Ctext x='60' y='21' text-anchor='middle' fill='%23ffffff' font-size='15' font-weight='600' font-family='system-ui,sans-serif'%3ELog in%3C/text%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: auto 0.9375rem !important;
}

.signin_box:has(.hellouser .username:not(:empty)) input[type='submit']#nextbtn:hover,
.signin_box:has(.hellouser .username:not(:empty)) input[type='button']#nextbtn:hover,
.signin_box:has(.user_info .username:not(:empty)) input[type='submit']#nextbtn:hover,
.signin_box:has(.user_info .username:not(:empty)) input[type='button']#nextbtn:hover,
.signin_box:has(.user_info .menutext:not(:empty)) input[type='submit']#nextbtn:hover,
.signin_box:has(.user_info .menutext:not(:empty)) input[type='button']#nextbtn:hover {
  background-color: var(--login-primary-hover) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 32'%3E%3Ctext x='60' y='21' text-anchor='middle' fill='%23ffffff' font-size='15' font-weight='600' font-family='system-ui,sans-serif'%3ELog in%3C/text%3E%3C/svg%3E") !important;
  transform: translateY(-1px);
  box-shadow: var(--login-shadow-hover) !important;
}

.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) input[type='submit']#nextbtn:active,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) input[type='button']#nextbtn:active,
.signin_box:has(.hellouser .username:not(:empty)) input[type='submit']#nextbtn:active,
.signin_box:has(.hellouser .username:not(:empty)) input[type='button']#nextbtn:active,
.signin_box:has(.user_info .username:not(:empty)) input[type='submit']#nextbtn:active,
.signin_box:has(.user_info .username:not(:empty)) input[type='button']#nextbtn:active,
.signin_box:has(.user_info .menutext:not(:empty)) input[type='submit']#nextbtn:active,
.signin_box:has(.user_info .menutext:not(:empty)) input[type='button']#nextbtn:active {
  transform: translateY(0) !important;
}

#forgotpassword,
#forgotpassword a,
.forgotpassword,
.bluetext_action a[href*='forgot' i],
.bluetext_action a[href*='recover' i] {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

#forgotpassword {
  margin: 0 !important;
}

/*
 * CAPTCHA (email step only when Zoho actually issues an image).
 * Forcing the shell visible with no #captcha_img left an empty bordered box.
 * Hide the whole block unless an <img> is present; still hide on password step.
 */
#captcha_container:not(:has(img)),
.captcha_container:not(:has(img)) {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
}

#captcha_container:has(img),
.captcha_container:has(img) {
  display: block !important;
  visibility: visible !important;
  height: auto !important;
  min-height: 0 !important;
  margin: 0.85rem 0 0.5rem !important;
  padding: 0 !important;
  overflow: visible !important;
}

/* Captcha field label (icon sits inside the input) */
#captcha_container:has(img)::before,
.captcha_container:has(img)::before {
  content: 'Enter CAPTCHA' !important;
  display: block !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--login-text) !important;
  text-align: left !important;
  margin-bottom: 0.4rem !important;
  padding-left: 0 !important;
  background-image: none !important;
}

#captcha_container label,
.captcha_container label,
label[for='captcha'],
label[for='bcaptcha'] {
  display: none !important;
}

#captcha,
#bcaptcha,
#captcha_container input[type='text'],
.captcha_container input[type='text'] {
  width: 100% !important;
  max-width: 100% !important;
  min-height: var(--login-control-min-h) !important;
  padding: var(--login-pad-y) var(--login-pad-x) !important;
  padding-left: 2.55rem !important;
  font-size: 0.9375rem !important;
  line-height: 1.25 !important;
  border: 1px solid var(--login-border) !important;
  border-radius: var(--login-radius) !important;
  background-color: var(--login-surface) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none'%3E%3Cpath d='M12 3l8 3v5c0 5-3.5 8.5-8 10-4.5-1.5-8-5-8-10V6l8-3z' stroke='%234a9b85' stroke-width='1.75' stroke-linejoin='round'/%3E%3Cpath d='M9 12l2 2 4-4' stroke='%234a9b85' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: 0.8rem center !important;
  background-size: 1.1rem 1.1rem !important;
  color: var(--login-text) !important;
  margin: 0 0 0.55rem !important;
  box-sizing: border-box !important;
}

#captcha_container:not(:has(img)) #captcha,
#captcha_container:not(:has(img)) #bcaptcha,
.captcha_container:not(:has(img)) input[type='text'] {
  display: none !important;
}

#captcha:focus,
#bcaptcha:focus,
#captcha_container input[type='text']:focus,
.captcha_container input[type='text']:focus {
  outline: none !important;
  border-color: var(--login-primary) !important;
  box-shadow: 0 0 0 3px var(--login-focus-ring) !important;
}

/* Hide empty image row; style only when an real captcha <img> exists */
#captcha_container .captcha_img_div:not(:has(img)),
.captcha_container .captcha_img_div:not(:has(img)) {
  display: none !important;
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  height: 0 !important;
  overflow: hidden !important;
}

#captcha_container .captcha_img_div:has(img),
.captcha_container .captcha_img_div:has(img),
#captcha_container > div:has(img),
.captcha_container > div:has(img) {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 0.75rem !important;
  width: 100% !important;
  box-sizing: border-box !important;
  padding: 0.55rem 0.75rem !important;
  border: 1px solid var(--login-border) !important;
  border-radius: var(--login-radius) !important;
  background: #fafafa !important;
}

#captcha_img,
#bcaptcha_img,
#captcha_container img,
.captcha_container img {
  display: inline-block !important;
  visibility: visible !important;
  max-width: 70% !important;
  height: auto !important;
  max-height: 2.5rem !important;
}

.reload_captcha,
.reloadcaptcha,
a.reloadcaptcha,
#captcha_container a[href*='captcha' i],
.captcha_container a[href*='reload' i] {
  display: inline-flex !important;
  align-items: center !important;
  gap: 0.3rem !important;
  visibility: visible !important;
  pointer-events: auto !important;
  color: var(--login-primary) !important;
  font-size: 0.8125rem !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.signin_box:has(.hellouser .username:not(:empty)) #captcha_container,
.signin_box:has(.user_info .username:not(:empty)) #captcha_container,
.signin_box:has(.user_info .menutext:not(:empty)) #captcha_container,
.signin_box:has(.hellouser .username:not(:empty)) .captcha_container,
.signin_box:has(.user_info .username:not(:empty)) .captcha_container,
.signin_box:has(.user_info .menutext:not(:empty)) .captcha_container,
.signin_box:has(.hellouser .username:not(:empty)) #captcha,
.signin_box:has(.user_info .username:not(:empty)) #captcha,
.signin_box:has(.user_info .menutext:not(:empty)) #captcha,
.signin_box:has(.hellouser .username:not(:empty)) #bcaptcha,
.signin_box:has(.user_info .username:not(:empty)) #bcaptcha,
.signin_box:has(.user_info .menutext:not(:empty)) #bcaptcha,
.signin_box:has(.hellouser .username:not(:empty)) #captcha_img,
.signin_box:has(.user_info .username:not(:empty)) #captcha_img,
.signin_box:has(.user_info .menutext:not(:empty)) #captcha_img,
.signin_box:has(.hellouser .username:not(:empty)) #bcaptcha_img,
.signin_box:has(.user_info .username:not(:empty)) #bcaptcha_img,
.signin_box:has(.user_info .menutext:not(:empty)) #bcaptcha_img,
.signin_box:has(.hellouser .username:not(:empty)) .reload_captcha,
.signin_box:has(.user_info .username:not(:empty)) .reload_captcha,
.signin_box:has(.user_info .menutext:not(:empty)) .reload_captcha,
.signin_box:has(.hellouser .username:not(:empty)) .reloadcaptcha,
.signin_box:has(.user_info .username:not(:empty)) .reloadcaptcha,
.signin_box:has(.user_info .menutext:not(:empty)) .reloadcaptcha {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

.Notyou,
.bluetext_action_right {
  font-size: 0.85rem !important;
}

/* “Problem signing in?” */
#problemsignin,
.problemsignincon {
  display: none !important;
}

/* “You have not set a password…” prompt */
.nopassword_container,
.nopassword_message,
.nopassword_icon {
  display: none !important;
}

.fielderror,
.errorlabel {
  font-size: 0.8rem !important;
}

/* -------------------------------------------------------------------------- */
/* Email + password only                                                    */
/* Mirrors / extends Catalyst reference `embedded_signin.css` hide-list so */
/* OTP / TOTP / MFA alternate rows stay hidden if the base sheet order      */
/* differs. For the authoritative fix, turn off OTP/TOTP sign-in in the    */
/* Zoho Catalyst console (Authentication / user security for the project). */
/* -------------------------------------------------------------------------- */

#otp_container,
#enableotpoption,
#mfa_ga_container,
#mfa_otp_container,
#mfa_totp_container,
#verify_totp_container,
#verify_qr_container,
#verify_totp,
#recoverOption,
#recoverymodeContainer,
#recoverybtn,
.recoverymodes,
.addaptivetfalist,
#backup_ver_container,
#backup_container,
.trustbrowser_ui,
#enablemore,
.password_expiry_container,
.terminate_session_container {
  display: none !important;
}

/* SAML / “more ways to sign in” rows */
.textbox_actions_saml,
.textbox_actions_more,
#enablesaml {
  display: none !important;
}

/* OTP / TOTP inputs that appear outside the named containers in some builds */
input[placeholder*='OTP' i],
input[placeholder*='TOTP' i] {
  display: none !important;
}

/* “Sign in using OTP” is often the first blue action on the password step */
.textbox_actions > .bluetext_action:first-of-type {
  display: none !important;
}

/* Zoho social — step 1 only */
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .otheraccntsignin,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) #fed_div,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .fed_div,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .fed_div_wrap,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .signin_fed_div {
  overflow: visible !important;
  max-height: none !important;
  height: auto !important;
}

.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) #nextbtn,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) input[type='submit']#nextbtn,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) input[type='button']#nextbtn {
  margin-bottom: 0.5rem !important;
}

.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .otheraccntsignin {
  margin-top: 1.25rem !important;
  padding-top: 0.5rem !important;
  padding-bottom: 0.5rem !important;
  text-align: left !important;
}

/* “Sign in using” label above federation icons */
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .or_signin_with,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .otheraccntsignin > .text14,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .otheraccntsignin > .text16 {
  display: block !important;
  margin: 0 0 0.65rem !important;
  font-size: 0.875rem !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--login-text) !important;
  text-align: left !important;
}

.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) #fed_div,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .fed_div_wrap,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .fed_div_container {
  margin-bottom: 0.25rem !important;
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 0.5rem !important;
}

.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) #fed_div a,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .fed_div a,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .fed_div_container a,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .signin_fed_div a {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 2.5rem !important;
  height: 2.5rem !important;
  padding: 0.35rem !important;
  border: 1px solid var(--login-border) !important;
  border-radius: var(--login-radius) !important;
  background: var(--login-surface) !important;
  box-sizing: border-box !important;
  text-decoration: none !important;
}

.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) #fed_div img,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .fed_div img,
.signin_box:not(:has(.hellouser .username:not(:empty))):not(:has(.user_info .username:not(:empty))):not(:has(.user_info .menutext:not(:empty))) .fed_div_container img {
  width: 1.35rem !important;
  height: 1.35rem !important;
  object-fit: contain !important;
  display: block !important;
}

.signin_box:has(.hellouser .username:not(:empty)) .otheraccntsignin,
.signin_box:has(.user_info .username:not(:empty)) .otheraccntsignin,
.signin_box:has(.user_info .menutext:not(:empty)) .otheraccntsignin,
.signin_box:has(.hellouser .username:not(:empty)) #fed_div,
.signin_box:has(.user_info .username:not(:empty)) #fed_div,
.signin_box:has(.user_info .menutext:not(:empty)) #fed_div,
.signin_box:has(.hellouser .username:not(:empty)) .fed_div,
.signin_box:has(.user_info .username:not(:empty)) .fed_div,
.signin_box:has(.user_info .menutext:not(:empty)) .fed_div,
.signin_box:has(.hellouser .username:not(:empty)) .fed_div_wrap,
.signin_box:has(.user_info .username:not(:empty)) .fed_div_wrap,
.signin_box:has(.user_info .menutext:not(:empty)) .fed_div_wrap,
.signin_box:has(.hellouser .username:not(:empty)) .signin_fed_div,
.signin_box:has(.user_info .username:not(:empty)) .signin_fed_div,
.signin_box:has(.user_info .menutext:not(:empty)) .signin_fed_div,
.signin_box:has(.hellouser .username:not(:empty)) .fed_div_container,
.signin_box:has(.user_info .username:not(:empty)) .fed_div_container,
.signin_box:has(.user_info .menutext:not(:empty)) .fed_div_container,
.signin_box:has(.hellouser .username:not(:empty)) .or_signin_with,
.signin_box:has(.user_info .username:not(:empty)) .or_signin_with,
.signin_box:has(.user_info .menutext:not(:empty)) .or_signin_with {
  display: none !important;
}

/* -------------------------------------------------------------------------- */
/* Native SDK forgot/recovery — hidden; app uses /forgot-password page        */
/* -------------------------------------------------------------------------- */

.recovery_container,
.recovery_box,
#Last_password_div,
#email_confirm_div,
#confirm_otp_div,
#change_password_div,
#mobile_confirm_div,
#other_options_div,
#recovery_device_div,
.signin_container .recovery_container,
.signin_box .recovery_box {
  display: none !important;
  visibility: hidden !important;
  height: 0 !important;
  min-height: 0 !important;
  max-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

#mfa_otp_container,
#mfa_totp_container,
#verify_totp_container,
.signin_box .otp_input,
.signin_box .otp_field,
.signin_box [class*='otp' i],
.signin_box input[placeholder*='OTP' i],
.signin_box input[placeholder*='otp' i] {
  display: none !important;
  visibility: hidden !important;
  pointer-events: none !important;
  opacity: 0 !important;
}

