/*!
 * Global Hosting portal: gh-auth.css (WHMCS child theme "globalhosting").
 * Sign-in style pages and the portal homes: login, clientregister, password-reset-*, logout, two-factor-*,
 * user-invite-accept / user-verify-email, homepage, clientareahome.
 * Loaded by includes/head.tpl after gh-core.css (tokens --gh-*) and custom.css, so equal specificity wins here.
 * Selectors are prefixed with body.gh-portal where they must beat Bootstrap / custom.css form rules.
 *
 *  1. Shared field + card primitives (.gh-field, .gh-auth)
 *  2. Login split card
 *  3. Single-card flows (password reset, logout, 2FA, invite, e-mail verification)
 *  4. Registration (clientregister)
 *  5. Portal homepage (homepage.tpl)
 *  6. Client area home (clientareahome.tpl)
 *  7. Responsive + motion
 */

/* ==========================================================================
   1. Shared field + card primitives
   ========================================================================== */
.gh-auth, .gh-reg, .gh-home, .gh-cah { font-family: var(--gh-font); }

.gh-field { position: relative; margin: 0 0 18px; }
body.gh-portal .gh-field__label {
  display: flex; align-items: baseline; gap: 6px; margin: 0 0 8px;
  color: var(--gh-ink); font: 700 .875rem/1.3 var(--gh-font); letter-spacing: -.005em;
}
.gh-field__req { color: var(--gh-red); font-weight: 800; }
.gh-field__opt { color: var(--gh-muted); font-weight: 500; font-size: .8125rem; }
.gh-field__hint { margin: 7px 0 0; color: var(--gh-muted); font: 500 .8125rem/1.45 var(--gh-font); }
.gh-field__control { position: relative; }
.gh-field__icon {
  position: absolute; left: 15px; top: 26px; z-index: 5; display: inline-flex; margin-top: -9px;
  color: var(--gh-subtle); pointer-events: none; transition: color var(--gh-dur);
}
.gh-field__control:focus-within .gh-field__icon { color: var(--gh-red); }

/* Inputs: 52px, 12px radius, visible focus ring (beats custom.css + #registration rules) */
body.gh-portal .gh-auth .form-control, body.gh-portal .gh-reg .form-control,
body.gh-portal #registration.gh-reg .field, body.gh-portal #registration.gh-reg .form-control {
  height: 52px; padding: 12px 16px; border: 1.5px solid var(--gh-line-strong); border-radius: 12px;
  background-color: #fff; color: var(--gh-ink); font: 500 .9688rem/1.4 var(--gh-font); box-shadow: none;
}
body.gh-portal .gh-auth .form-control:hover, body.gh-portal #registration.gh-reg .field:hover { border-color: #B9C0D3; }
body.gh-portal .gh-auth .form-control:focus, body.gh-portal #registration.gh-reg .field:focus,
body.gh-portal #registration.gh-reg .form-control:focus {
  border-color: var(--gh-ink); box-shadow: 0 0 0 4px rgba(91, 124, 255, .22); outline: 0;
}
body.gh-portal .gh-auth .form-control.is-invalid, body.gh-portal #registration.gh-reg .form-control.is-invalid { border-color: var(--gh-red); }
body.gh-portal .gh-auth .form-control.is-valid, body.gh-portal #registration.gh-reg .form-control.is-valid { border-color: var(--gh-success); }
body.gh-portal .gh-auth .form-control.is-warning, body.gh-portal #registration.gh-reg .form-control.is-warning { border-color: #C98A12; }
body.gh-portal .gh-auth .gh-field__control--icon .form-control,
body.gh-portal #registration.gh-reg .gh-field__control--icon .field { padding-left: 46px; }
body.gh-portal #registration.gh-reg select.field, body.gh-portal .gh-auth select.form-control { padding-right: 42px; }
body.gh-portal #registration.gh-reg textarea.field, body.gh-portal #registration.gh-reg textarea.form-control { height: auto; min-height: 110px; }

/* Password field with the reveal button inside the input */
body.gh-portal .gh-field__control--reveal .input-group { flex-wrap: nowrap; }
body.gh-portal .gh-field__control--reveal .input-group > .form-control { padding-right: 54px; border-radius: 12px; }
body.gh-portal .gh-field__control--reveal .input-group > .input-group-append {
  position: absolute; top: 0; right: 0; z-index: 5; display: flex; align-items: center; height: 52px; margin: 0; padding-right: 6px;
}
body.gh-portal .gh-field__control--reveal .input-group > .input-group-append > .btn-reveal-pw {
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; min-height: 0; padding: 0;
  border: 0; border-radius: 10px; background: transparent; color: var(--gh-muted); font-size: 15px; box-shadow: none;
}
body.gh-portal .gh-field__control--reveal .input-group > .input-group-append > .btn-reveal-pw:hover { background: var(--gh-bg-alt); color: var(--gh-ink); }
body.gh-portal .gh-field__control--reveal .input-group > .input-group-append > .btn-reveal-pw:focus-visible {
  outline: 3px solid var(--gh-focus); outline-offset: -1px; box-shadow: none;
}

/* Checkbox + label pair */
.gh-auth__check, .gh-reg__check-input { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--gh-red); cursor: pointer; }

/* Alerts inside auth cards */
body.gh-portal .gh-auth .alert, body.gh-portal .gh-reg .alert { margin: 0 0 20px; border-radius: 12px; font-size: .9063rem; }
body.gh-portal .gh-auth .alert ul, body.gh-portal .gh-reg .alert ul { margin: 6px 0 0; padding-left: 20px; }
body.gh-portal .gh-auth .alert h2 { margin: 0 0 4px; font-size: 1rem; color: inherit; }

/* Captcha block (captcha.tpl prints a .row; neutralise its negative margins) */
.gh-auth__captcha { margin: 0 0 20px; }
.gh-auth__captcha > .row, .gh-reg__captcha > .row { margin-left: 0; margin-right: 0; }
body.gh-portal .gh-auth__captcha .recaptcha-container, body.gh-portal .gh-reg__captcha .recaptcha-container { margin: 0 auto; }
.gh-auth__captcha .recaptcha-container > div, .gh-reg__captcha .recaptcha-container > div { margin: 0 auto; }

/* Single card (password reset, logout, 2FA ...) and the split card shell share these */
.gh-auth__eyebrow { margin-bottom: 12px; }
.gh-auth__title {
  margin: 0 0 10px; color: var(--gh-ink);
  font: 800 clamp(1.875rem, 1.45rem + 1.1vw, 2.375rem)/1.1 var(--gh-font); letter-spacing: -.03em;
}
.gh-auth__title--sm { font-size: clamp(1.5rem, 1.25rem + .8vw, 1.875rem); letter-spacing: -.025em; }
.gh-auth__lead { margin: 0 0 28px; color: var(--gh-muted); font: 500 .9688rem/1.6 var(--gh-font); }
.gh-auth__head { margin-bottom: 4px; }
.gh-auth__submit { margin-top: 4px; }
.gh-auth__link { color: var(--gh-red); font: 700 .875rem/1.3 var(--gh-font); }
.gh-auth__link:hover { color: var(--gh-red-700); }

/* ==========================================================================
   2. Login split card
   ========================================================================== */
.gh-auth--split .gh-auth__shell {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); grid-template-areas: "brand main";
  max-width: 1120px; margin: 0 auto; overflow: hidden;
  background: #fff; border: 1px solid var(--gh-line); border-radius: var(--gh-radius-xl); box-shadow: var(--gh-shadow-lg);
}
.gh-auth__main { grid-area: main; display: flex; align-items: center; justify-content: center; padding: 60px 64px; min-width: 0; }
.gh-auth__panel { width: 100%; max-width: 420px; }

.gh-auth__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 16px; margin: -2px 0 22px; }
body.gh-portal .gh-auth__remember {
  display: inline-flex; align-items: center; gap: 10px; margin: 0; cursor: pointer;
  color: var(--gh-text); font: 600 .875rem/1.3 var(--gh-font);
}

.gh-auth__divider { display: flex; align-items: center; gap: 14px; margin: 26px 0 16px; color: var(--gh-muted); font: 600 .8125rem/1 var(--gh-font); }
.gh-auth__divider::before, .gh-auth__divider::after { content: ""; flex: 1 1 auto; height: 1px; background: var(--gh-line); }
.gh-auth__social .social-signin-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.gh-auth__social .providerPreLinking { margin: 0; }
body.gh-portal .gh-auth__social .btn-social { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }

.gh-auth__switch {
  margin: 26px 0 0; padding-top: 22px; border-top: 1px solid var(--gh-line); text-align: center;
  color: var(--gh-muted); font: 500 .9375rem/1.5 var(--gh-font);
}
.gh-auth__switch a { margin-left: 4px; color: var(--gh-red); font-weight: 700; white-space: nowrap; }
.gh-auth__switch a:hover { color: var(--gh-red-700); }

/* Brand panel */
.gh-auth__brand {
  grid-area: brand; display: flex; flex-direction: column; gap: 36px; min-width: 0; padding: 48px 52px; overflow: hidden;
  color: var(--gh-on-dark-muted);
}
.gh-auth__art { position: absolute; right: -150px; bottom: -170px; z-index: -1; width: 440px; height: 440px; color: #fff; pointer-events: none; }
.gh-auth__logo { display: inline-flex; align-self: flex-start; border-radius: 6px; }
.gh-auth__logo img { display: block; width: auto; height: 40px; }
.gh-auth__logo:focus-visible, .gh-auth__support a:focus-visible { outline: 3px solid var(--gh-focus); outline-offset: 3px; }
.gh-auth__brand-title {
  margin: 0 0 14px; color: #fff; font: 800 clamp(1.625rem, 1.2rem + 1.1vw, 2.125rem)/1.15 var(--gh-font); letter-spacing: -.03em;
}
.gh-auth__brand-text { margin: 0 0 28px; max-width: 420px; color: var(--gh-on-dark-muted); font: 500 .9688rem/1.65 var(--gh-font); }
.gh-auth__benefits { display: grid; gap: 18px; margin: 0; padding: 0; list-style: none; }
.gh-auth__benefits li { display: flex; align-items: flex-start; gap: 14px; margin: 0; color: var(--gh-on-dark-muted); font: 500 .875rem/1.5 var(--gh-font); }
.gh-auth__benefits strong { display: block; margin-bottom: 2px; color: #fff; font-size: .9688rem; font-weight: 700; }
.gh-auth__benefit-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 12px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: var(--gh-red-soft);
}
.gh-auth__support {
  display: flex; align-items: flex-start; gap: 14px; margin-top: auto; padding: 18px 20px;
  border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: rgba(6, 10, 31, .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.gh-auth__support-icon {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--gh-red); color: #fff; box-shadow: var(--gh-shadow-red);
}
.gh-auth__support p { margin: 0; }
.gh-auth__support-label { color: var(--gh-on-dark-muted); font: 600 .8125rem/1.4 var(--gh-font); }
.gh-auth__support-value { margin-top: 4px !important; color: #fff; font: 500 .875rem/1.6 var(--gh-font); }
.gh-auth__support-value a { color: #fff; font-weight: 700; text-decoration: none; }
.gh-auth__support-value a[href^="tel"] { font-size: 1.0625rem; letter-spacing: -.01em; }
.gh-auth__support-value a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.gh-auth__support-hint { color: var(--gh-success-on-dark); font-size: .8125rem; font-weight: 600; white-space: nowrap; }


/* ==========================================================================
   3. Single-card flows (password reset, logout, 2FA, invite, e-mail verification)
   ========================================================================== */
.gh-auth--single { max-width: 540px; margin: 0 auto; }
.gh-auth--wide { max-width: 860px; }
.gh-auth__card {
  position: relative; overflow: hidden; background: #fff; border: 1px solid var(--gh-line);
  border-radius: var(--gh-radius-xl); box-shadow: var(--gh-shadow-lg);
}
.gh-auth__card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--gh-red) 0%, #E0575A 45%, var(--gh-indigo) 100%);
}
.gh-auth__card-body { padding: 48px 48px 40px; }
.gh-auth__card-foot {
  padding: 18px 48px; border-top: 1px solid var(--gh-line); background: var(--gh-bg-alt); text-align: center;
}
.gh-auth__badge {
  display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; margin: 0 0 22px;
  border-radius: 18px; background: var(--gh-red-50); color: var(--gh-red);
  box-shadow: inset 0 0 0 1px rgba(187, 52, 55, .12);
}
.gh-auth__badge--success { background: var(--gh-success-bg); color: var(--gh-success); box-shadow: inset 0 0 0 1px rgba(15, 122, 85, .14); }
.gh-auth__badge--warn { background: #FFF6E5; color: #9A6100; box-shadow: inset 0 0 0 1px rgba(154, 97, 0, .16); }
.gh-auth__badge--navy { background: var(--gh-navy-900); color: #fff; box-shadow: none; }
.gh-auth__message { margin: 0 0 26px; color: var(--gh-text); font: 500 .9688rem/1.65 var(--gh-font); }
.gh-auth__message p { margin: 0 0 10px; }
.gh-auth__message p:last-child { margin-bottom: 0; }
.gh-auth__back { display: inline-flex; align-items: center; gap: 10px; color: var(--gh-muted); font: 500 .9375rem/1.4 var(--gh-font); }
.gh-auth__back strong { color: var(--gh-red); font-weight: 700; }
.gh-auth__back:hover { color: var(--gh-ink); }
.gh-auth__back-icon { transform: scaleX(-1); color: var(--gh-red); transition: transform var(--gh-dur) var(--gh-ease); }
.gh-auth__back:hover .gh-auth__back-icon { transform: scaleX(-1) translateX(3px); }
.gh-auth__help { margin: 22px 0 0; text-align: center; color: var(--gh-muted); font: 500 .875rem/1.6 var(--gh-font); }
.gh-auth__help .gh-icon { margin: -3px 6px 0 0; color: var(--gh-red); }
.gh-auth__help a { color: var(--gh-ink); font-weight: 700; white-space: nowrap; }
.gh-auth__help a:hover { color: var(--gh-red); }
.gh-auth__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.gh-auth__actions > .gh-btn { flex: 1 1 200px; }
body.gh-portal .gh-auth input.gh-btn { -webkit-appearance: none; appearance: none; }
.gh-btn:disabled, .gh-btn.disabled { opacity: .5; cursor: not-allowed; box-shadow: none; transform: none; }

/* Password strength (includes/pwstrength.tpl) */
.gh-pwstrength > br { display: none; }
body.gh-portal .gh-pwstrength .progress { height: 8px; margin: 0 0 14px !important; border-radius: 99px; background: var(--gh-bg-soft); }
body.gh-portal .gh-pwstrength .progress-bar { border-radius: 99px; transition: width .25s var(--gh-ease); }
body.gh-portal .gh-pwstrength .alert { margin: 0; padding: 12px 14px; font-size: .8125rem; line-height: 1.5; }
body.gh-portal .gh-auth #inputNewPassword2Msg .form-text { margin: 8px 0 0; color: var(--gh-red-700) !important; font-weight: 600; font-size: .8125rem; }

/* 2FA challenge, backup code */
.gh-2fa__challenge .form-group { margin-bottom: 16px; }
body.gh-portal .gh-2fa__challenge .btn-primary, body.gh-portal .gh-2fa__challenge input[type="submit"] {
  display: flex; align-items: center; justify-content: center; width: 100%; min-height: 54px; margin-top: 4px;
  border-radius: 14px; font: 700 var(--gh-fs-md)/1.2 var(--gh-font);
}
.gh-2fa__challenge .text-center { text-align: center; }
.gh-2fa__cancel { margin: 12px 0 0; }
.gh-2fa__foot { margin: 0; color: var(--gh-muted); font: 500 .875rem/1.5 var(--gh-font); }
.gh-2fa__foot a { font-weight: 700; color: var(--gh-red); }
.gh-auth__subtitle { margin: 6px 0 12px; color: var(--gh-ink); font: 700 1.0625rem/1.4 var(--gh-font); text-align: center; }
.gh-auth__code {
  margin: 0 0 16px; padding: 18px 16px; border: 2px dashed var(--gh-line-strong); border-radius: 14px; background: var(--gh-bg-alt);
  color: var(--gh-ink); font: 700 1.375rem/1.3 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em;
  text-align: center; word-break: break-all; user-select: all;
}
.gh-auth__note { margin: 0 0 24px; color: var(--gh-muted); font: 500 .875rem/1.6 var(--gh-font); text-align: center; }

/* Account invitation (user-invite-accept) */
.gh-invite__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 8px; }
body.gh-portal .gh-invite__box { margin: 0; padding: 26px; border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg); background: var(--gh-bg-alt); box-shadow: none; }
.gh-invite__title { margin: 0 0 18px; color: var(--gh-ink); font: 800 1.25rem/1.3 var(--gh-font); letter-spacing: -.015em; }
body.gh-portal .gh-invite__box .form-control { background: #fff; }
body.gh-portal .gh-invite__pw { flex-wrap: nowrap; }
body.gh-portal .gh-invite__pw > .form-control { border-top-right-radius: 0; border-bottom-right-radius: 0; }
body.gh-portal .gh-invite__pw .generate-password { height: 52px; padding: 0 14px; border: 1.5px solid var(--gh-line-strong); border-left: 0; border-radius: 0 12px 12px 0; background: #fff; color: var(--gh-ink); font: 700 .8125rem/1 var(--gh-font); }
body.gh-portal .gh-invite__pw .generate-password:hover { background: var(--gh-bg-soft); }

/* ==========================================================================
   4. Registration (clientregister)
   ========================================================================== */
/* The parent's "Already registered?" sidebar is replaced by .gh-reg-aside: hide that column, full-width content */
body.gh-tpl-clientregister #main-body > .container > .row > .col-lg-4.col-xl-3 { display: none; }
body.gh-tpl-clientregister #main-body > .container > .row > .primary-content { flex: 0 0 100%; max-width: 100%; }
body.gh-tpl-clientregister .sidebar-secondary { display: none; }

.gh-reg-page { font-family: var(--gh-font); }
.gh-reg-page__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin: 0 0 28px; }
.gh-reg-page__head .gh-eyebrow { margin-bottom: 12px; }
.gh-reg-page__title { margin: 0 0 10px; color: var(--gh-ink); font: 800 clamp(2rem, 1.5rem + 1.4vw, 2.75rem)/1.08 var(--gh-font); letter-spacing: -.032em; }
.gh-reg-page__lead { max-width: 660px; margin: 0; color: var(--gh-muted); font: 500 1.0313rem/1.6 var(--gh-font); }
.gh-reg-page__login { display: flex; align-items: center; gap: 12px; flex: none; margin: 0; color: var(--gh-muted); font: 600 .9063rem/1.3 var(--gh-font); }
.gh-reg-page__layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
body.gh-portal .gh-reg-page > .alert { margin: 0 0 22px; border-radius: 14px; }
body.gh-portal .gh-reg-page > .alert ul { margin: 6px 0 0; padding-left: 20px; }

body.gh-portal #registration.gh-reg { margin: 0; padding: 0; }
.gh-reg__legend { margin: 0 0 12px; color: var(--gh-muted); font: 600 .8125rem/1.3 var(--gh-font); }
.gh-reg__section {
  margin: 0 0 20px; padding: 28px 32px 32px; background: #fff;
  border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg); box-shadow: var(--gh-shadow-sm);
}
.gh-reg__head { display: flex; align-items: flex-start; gap: 16px; }
.gh-reg__step {
  display: inline-flex; align-items: center; justify-content: center; flex: none; width: 38px; height: 38px; margin-top: 1px;
  border-radius: 12px; background: var(--gh-ink); color: #fff; font: 800 .9375rem/1 var(--gh-font);
  box-shadow: 0 6px 14px -6px rgba(14, 19, 48, .5);
}
.gh-reg__title { margin: 0 0 4px; color: var(--gh-ink); font: 800 1.25rem/1.3 var(--gh-font); letter-spacing: -.018em; }
.gh-reg__text { margin: 0; max-width: 620px; color: var(--gh-muted); font: 500 .9063rem/1.55 var(--gh-font); }
.gh-reg__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px 20px; margin-top: 24px; }
.gh-reg__grid--sep { margin-top: 22px; padding-top: 22px; border-top: 1px dashed var(--gh-line); }
.gh-reg__grid.hidden, .gh-reg__grid.w-hidden { display: none; }
body.gh-portal .gh-reg__grid > .form-group, .gh-reg__grid > .gh-field { margin: 0; min-width: 0; }
.gh-field--full, .gh-reg__grid > .alert { grid-column: span 6; }
.gh-field--half { grid-column: span 3; }
.gh-field--third { grid-column: span 2; }
body.gh-portal .gh-reg__grid > #passwdFeedback { margin: 0; }
body.gh-portal .gh-reg__grid > #passwdFeedback.w-hidden { display: none; }

/* labels inside #registration (twenty-one: #registration label { font-weight: 300 }) */
body.gh-portal #registration.gh-reg .gh-field__label { display: flex; align-items: baseline; gap: 6px; margin: 0 0 8px; color: var(--gh-ink); font: 700 .875rem/1.3 var(--gh-font); }
body.gh-portal #registration.gh-reg .field-help-text { display: block; margin: 7px 0 0; color: var(--gh-muted); font-size: .8125rem; }
body.gh-portal #registration.gh-reg .gh-field--custom .form-control, body.gh-portal #registration.gh-reg .gh-field--custom select,
body.gh-portal #registration.gh-reg .gh-field--custom textarea { width: 100%; }
body.gh-portal #registration.gh-reg #stateselect { padding-left: 16px; }

/* intl-tel-input (phone) */
body.gh-portal #registration.gh-reg .intl-tel-input { display: block; width: 100%; }
body.gh-portal #registration.gh-reg .intl-tel-input .selected-flag { border-radius: 12px 0 0 12px; }
body.gh-portal #registration.gh-reg .intl-tel-input .flag-container:hover .selected-flag,
body.gh-portal #registration.gh-reg .intl-tel-input.separate-dial-code .selected-flag { background-color: var(--gh-bg-alt); }

/* password tools: strength meter + generate button */
.gh-reg__pwtools { display: flex; align-items: center; gap: 16px 20px; }
.gh-reg__meter { flex: 1 1 auto; min-width: 0; }
body.gh-portal .gh-reg__meter .progress { height: 8px; margin: 0 0 8px; border-radius: 99px; background: var(--gh-bg-soft); }
body.gh-portal .gh-reg__meter .progress-bar { border-radius: 99px; background-image: none; transition: width .25s var(--gh-ease); }
body.gh-portal .gh-reg__meter #passwordStrengthTextLabel { margin: 0; text-align: left; color: var(--gh-muted) !important; font: 600 .8125rem/1.4 var(--gh-font); }
.gh-reg__pwtools .generate-password { flex: none; }

/* marketing opt-in (bootstrap-switch) */
.gh-reg__optin { display: flex; align-items: center; gap: 14px; margin: 20px 0 0 54px; }
.gh-reg__optin-text { color: var(--gh-ink); font: 600 .9063rem/1.4 var(--gh-font); }

/* captcha, TOS, submit */
.gh-reg__section--submit { padding: 26px 32px; background: linear-gradient(180deg, #fff, var(--gh-bg-alt)); }
.gh-reg__captcha:empty { display: none; }
.gh-reg__captcha { margin: 0 0 20px; }
body.gh-portal .gh-reg__captcha .row { justify-content: flex-start !important; }
body.gh-portal .gh-reg__captcha .recaptcha-container { margin: 0 !important; }
.gh-reg__tos { margin: 0 0 20px; }
body.gh-portal .gh-reg__check, body.gh-portal #registration.gh-reg .gh-reg__check {
  display: flex; align-items: flex-start; gap: 12px; margin: 0; cursor: pointer;
  color: var(--gh-text); font: 500 .9375rem/1.5 var(--gh-font);
}
.gh-reg__check .gh-reg__check-input { margin-top: 2px; }
.gh-reg__submit-row { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; }
body.gh-portal .gh-reg__submit { min-width: 260px; -webkit-appearance: none; appearance: none; }
.gh-reg__privacy { flex: 1 1 260px; margin: 0; color: var(--gh-muted); font: 500 .8125rem/1.5 var(--gh-font); }
.gh-reg__privacy a { font-weight: 700; }

/* linked accounts (social sign-up) */
.gh-reg__section--social { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px 24px; padding: 22px 32px; }
.gh-reg__social-text { flex: 1 1 260px; }
.gh-reg__social-btns { flex: 0 1 auto; min-width: 0; }
body.gh-portal #registration.gh-reg .gh-reg__section--social .sub-heading { display: none; }
.gh-reg__section--social .providerPreLinking { margin: 0; }
.gh-reg__section--social .social-signin-btns { display: flex; flex-wrap: wrap; gap: 10px; }
body.gh-portal .gh-reg__section--social .btn-social { margin: 0; padding: 0; border: 0; background: none; box-shadow: none; }

/* bootstrap-switch as a rounded pill */
body.gh-portal .gh-reg__optin .bootstrap-switch { border: 1.5px solid var(--gh-line-strong); border-radius: 999px; }
body.gh-portal .gh-reg__optin .bootstrap-switch .bootstrap-switch-handle-on,
body.gh-portal .gh-reg__optin .bootstrap-switch .bootstrap-switch-handle-off,
body.gh-portal .gh-reg__optin .bootstrap-switch .bootstrap-switch-label { white-space: nowrap; overflow: hidden; border-radius: 0; font-weight: 600; }
body.gh-portal .gh-reg__optin .bootstrap-switch .bootstrap-switch-handle-on.bootstrap-switch-success { background: var(--gh-success); }
body.gh-portal .gh-reg__optin .bootstrap-switch .bootstrap-switch-label { background: #fff; }
body.gh-portal .gh-reg__optin .bootstrap-switch.bootstrap-switch-focused { border-color: var(--gh-ink); box-shadow: 0 0 0 4px rgba(91, 124, 255, .25); }

/* aside */
.gh-reg-aside { position: sticky; top: calc(var(--gh-header-h) + 24px); display: grid; gap: 16px; }
.gh-reg-aside__card { padding: 30px 28px 28px; border-radius: var(--gh-radius-lg); overflow: hidden; box-shadow: var(--gh-shadow); }
.gh-reg-aside__card .gh-eyebrow { margin-bottom: 10px; }
.gh-reg-aside__title { margin: 0 0 20px; color: #fff; font: 800 1.375rem/1.25 var(--gh-font); letter-spacing: -.02em; }
.gh-reg-aside__list { gap: 14px; }
.gh-reg-aside__list > li { font-size: .9063rem; }
.gh-reg-aside__support { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gh-on-dark-line); }
.gh-reg-aside__support p { margin: 0; color: var(--gh-on-dark-muted); font: 500 .8125rem/1.5 var(--gh-font); }
.gh-reg-aside__support a { color: #fff; font-size: 1.0625rem; font-weight: 800; text-decoration: none; }
.gh-reg-aside__support a:hover { color: #fff; text-decoration: underline; }
.gh-reg-aside__support a:focus-visible { outline: 3px solid var(--gh-focus); outline-offset: 2px; }
.gh-reg-aside__support span { color: var(--gh-success-on-dark); font-weight: 600; }
.gh-reg-aside__support-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--gh-red); color: #fff; }
.gh-reg-aside__login { padding: 24px 24px 20px; background: #fff; border: 1px solid var(--gh-line); border-radius: var(--gh-radius-lg); box-shadow: var(--gh-shadow-sm); text-align: center; }
.gh-reg-aside__login-title { margin: 0 0 4px; color: var(--gh-ink); font: 800 1.0625rem/1.3 var(--gh-font); }
.gh-reg-aside__login-text { margin: 0 0 16px; color: var(--gh-muted); font: 500 .875rem/1.5 var(--gh-font); }
.gh-reg-aside__link { display: inline-block; margin-top: 12px; color: var(--gh-red); font: 700 .8125rem/1.3 var(--gh-font); }

/* ==========================================================================
   5. Portal homepage (homepage.tpl)
   ========================================================================== */
/* header.tpl prints twenty-one's domain-search include on the homepage; our hero has its own search */
body.gh-tpl-homepage #frmDomainHomepage { display: none; }
body.gh-portal.gh-tpl-homepage section#main-body { padding-top: 28px; }

.gh-home__hero {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: center; gap: 40px;
  padding: 64px 60px; border-radius: 28px; overflow: hidden; box-shadow: var(--gh-shadow-lg);
}
.gh-home__hero .gh-pill { margin-bottom: 20px; }
.gh-home__title { margin: 0 0 18px; color: #fff; font: 800 clamp(2.125rem, 1.4rem + 2.4vw, 3.375rem)/1.06 var(--gh-font); letter-spacing: -.035em; }
.gh-home__lead { max-width: 560px; margin: 0 0 26px; color: var(--gh-on-dark-muted); font: 500 1.0625rem/1.65 var(--gh-font); }
.gh-home__bullets { display: flex; flex-wrap: wrap; gap: 10px 26px; }
.gh-home__bullets > li { font-size: .9063rem; font-weight: 600; }
.gh-home__domain-card { padding: 30px; background: #fff; border-radius: var(--gh-radius-xl); box-shadow: 0 30px 60px -24px rgba(0, 0, 0, .55); color: var(--gh-text); }
.gh-home__domain-title { display: flex; align-items: center; gap: 10px; margin: 0 0 6px; color: var(--gh-ink); font: 800 1.375rem/1.25 var(--gh-font); letter-spacing: -.02em; }
.gh-home__domain-title .gh-icon { color: var(--gh-red); }
.gh-home__domain-text { margin: 0 0 20px; color: var(--gh-muted); font: 500 .9375rem/1.55 var(--gh-font); }
.gh-home__domain-card .gh-domain__field { flex-basis: 100%; }
.gh-home__domain-card .gh-domain__btn { flex: 1 1 100%; height: 56px; }
.gh-home__tlds { margin-top: 16px; }
.gh-home__domain-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 18px 0 0; padding-top: 16px; border-top: 1px dashed var(--gh-line); }
.gh-home__domain-links a { display: inline-flex; align-items: center; gap: 8px; color: var(--gh-ink); font: 700 .875rem/1.3 var(--gh-font); }
.gh-home__domain-links a .gh-icon { color: var(--gh-red); }
.gh-home__domain-links a:hover { color: var(--gh-red); }

.gh-home__section { margin-top: 64px; }
.gh-home__head { margin: 0 0 24px; }
.gh-home__head .gh-eyebrow { margin-bottom: 8px; }
.gh-home__h2 { margin: 0; color: var(--gh-ink); font: 800 var(--gh-fs-2xl)/1.12 var(--gh-font); letter-spacing: -.03em; }
.gh-home__h2--light { color: #fff; }
.gh-home__tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.gh-home__tiles > li { display: flex; grid-column: span 2; min-width: 0; }
.gh-home__tiles > li.gh-home__tiles-wide { grid-column: span 3; }
.gh-home__tile--row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "icon title arrow" "icon text arrow"; column-gap: 20px; align-items: center; padding: 24px 28px; }
.gh-home__tile--row .gh-card__icon { grid-area: icon; margin: 0; }
.gh-home__tile--row .gh-card__title { grid-area: title; align-self: end; margin-bottom: 4px; }
.gh-home__tile--row .gh-card__text { grid-area: text; align-self: start; margin: 0; }
.gh-home__tile--row .gh-card__foot { grid-area: arrow; margin: 0; padding: 0; border: 0; }
.gh-home__tile--row .gh-card__price { display: none; }
.gh-home__tile { flex: 1 1 auto; }
.gh-home__tile .gh-card__text { margin-bottom: 18px; }

.gh-home__shortcuts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gh-home__shortcut {
  display: flex; align-items: center; gap: 14px; height: 100%; padding: 18px; background: #fff;
  border: 1px solid var(--gh-line); border-radius: var(--gh-radius); box-shadow: var(--gh-shadow-xs); color: var(--gh-ink);
  transition: border-color var(--gh-dur), box-shadow var(--gh-dur), transform var(--gh-dur) var(--gh-ease);
}
.gh-home__shortcut:hover, .gh-home__shortcut:focus { color: var(--gh-ink); text-decoration: none; border-color: var(--gh-line-strong); box-shadow: var(--gh-shadow-sm); transform: translateY(-2px); }
.gh-home__shortcut:focus-visible { outline: 3px solid var(--gh-focus); outline-offset: 2px; }
.gh-home__shortcut-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; border-radius: 12px; background: var(--gh-bg-alt); color: var(--gh-red); transition: background-color var(--gh-dur), color var(--gh-dur); }
.gh-home__shortcut:hover .gh-home__shortcut-icon { background: var(--gh-red); color: #fff; }
.gh-home__shortcut strong { display: block; font: 700 .9375rem/1.3 var(--gh-font); }
.gh-home__shortcut small { display: block; margin-top: 2px; color: var(--gh-muted); font: 500 .8125rem/1.35 var(--gh-font); }

.gh-home__support {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px;
  margin-top: 64px; padding: 44px 48px; border-radius: 28px; overflow: hidden;
}
.gh-home__support-intro .gh-eyebrow { margin-bottom: 10px; }
.gh-home__support-intro { max-width: 720px; }
.gh-home__support-intro p:last-child { margin: 12px 0 0; color: var(--gh-on-dark-muted); font: 500 .9688rem/1.6 var(--gh-font); }
.gh-home__contacts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 0; list-style: none; }
.gh-home__contact {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 20px; border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .03)); border: 1px solid rgba(255, 255, 255, .1);
}
.gh-home__contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; margin-bottom: 10px; border-radius: 12px; background: rgba(187, 52, 55, .2); color: var(--gh-red-soft); }
.gh-home__contact-label { color: var(--gh-on-dark-muted); font: 700 .75rem/1.3 var(--gh-font); letter-spacing: .1em; text-transform: uppercase; }
a.gh-home__contact-value { color: #fff; font: 800 1.0625rem/1.35 var(--gh-font); overflow-wrap: anywhere; }
a.gh-home__contact-value:hover { color: #fff; }
.gh-home__contact-sub { color: var(--gh-on-dark-subtle); font: 500 .8125rem/1.5 var(--gh-font); }
.gh-home__contact-sub a { color: var(--gh-on-dark-muted); }
.gh-home__contact-sub a:hover { color: #fff; }
.gh-home__support a:focus-visible { outline: 3px solid var(--gh-focus); outline-offset: 2px; border-radius: 4px; }

/* ==========================================================================
   6. Client area home (clientareahome.tpl): welcome banner + quick actions above the stock tiles/panels
   ========================================================================== */
.gh-cah { margin: 0 0 24px; }
.gh-cah__welcome {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 30px 32px;
  border-radius: var(--gh-radius-lg); overflow: hidden; box-shadow: var(--gh-shadow);
}
.gh-cah__title { margin: 0 0 8px; color: #fff; font: 800 clamp(1.5rem, 1.2rem + 1vw, 2rem)/1.15 var(--gh-font); letter-spacing: -.028em; }
.gh-cah__text { max-width: 560px; margin: 0; color: var(--gh-on-dark-muted); font: 500 .9688rem/1.6 var(--gh-font); }
.gh-cah__notice {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 9px 14px; border-radius: 12px;
  background: rgba(187, 52, 55, .22); border: 1px solid rgba(242, 120, 123, .35); color: #FFE3E3; font: 600 .875rem/1.35 var(--gh-font);
}
.gh-cah__notice .gh-icon { color: var(--gh-red-soft); }
.gh-cah__notice strong { color: #fff; }
.gh-cah__notice:hover, .gh-cah__notice:focus { color: #fff; text-decoration: none; background: rgba(187, 52, 55, .32); }
.gh-cah__help {
  display: inline-flex; align-items: center; gap: 12px; flex: none; padding: 12px 16px 12px 12px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .12); color: #fff; text-decoration: none;
}
.gh-cah__help:hover, .gh-cah__help:focus { color: #fff; text-decoration: none; background: rgba(255, 255, 255, .1); }
.gh-cah__help-icon { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 12px; background: var(--gh-red); color: #fff; }
.gh-cah__help-label { display: block; color: var(--gh-on-dark-muted); font: 600 .75rem/1.3 var(--gh-font); letter-spacing: .06em; text-transform: uppercase; }
.gh-cah__help-value { display: block; margin-top: 2px; color: #fff; font: 800 1.125rem/1.2 var(--gh-font); letter-spacing: -.01em; }
.gh-cah a:focus-visible { outline: 3px solid var(--gh-focus); outline-offset: 2px; }

.gh-cah__actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 14px 0 0; padding: 0; list-style: none; }
.gh-cah__actions > li { display: flex; min-width: 0; }
.gh-cah__action {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; flex: 1 1 auto; min-width: 0; padding: 16px 16px 15px;
  background: #fff; border: 1px solid var(--gh-line); border-radius: var(--gh-radius); box-shadow: var(--gh-shadow-xs); color: var(--gh-ink);
  transition: border-color var(--gh-dur), box-shadow var(--gh-dur), transform var(--gh-dur) var(--gh-ease);
}
.gh-cah__action:hover, .gh-cah__action:focus { color: var(--gh-ink); text-decoration: none; border-color: var(--gh-line-strong); box-shadow: var(--gh-shadow-sm); transform: translateY(-2px); }
.gh-cah__action-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--gh-red-50); color: var(--gh-red); transition: background-color var(--gh-dur), color var(--gh-dur); }
.gh-cah__action:hover .gh-cah__action-icon { background: var(--gh-red); color: #fff; }
.gh-cah__action-text { min-width: 0; }
.gh-cah__action-text strong { display: block; font: 700 .9375rem/1.3 var(--gh-font); }
.gh-cah__action-text small { display: block; margin-top: 2px; color: var(--gh-muted); font: 500 .8125rem/1.4 var(--gh-font); }
.gh-cah__badge {
  position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; justify-content: center; min-width: 22px; height: 22px; padding: 0 6px;
  border-radius: 99px; background: var(--gh-red); color: #fff; font: 800 .75rem/1 var(--gh-font);
}

/* Logged-in polish for the stock home content (complements custom.css) */
body.gh-tpl-clientareahome .client-home-cards .card { overflow: hidden; }
body.gh-tpl-clientareahome .client-home-cards .card-header { background: #fff; border-bottom: 1px solid var(--gh-line); }
body.gh-tpl-clientareahome .client-home-cards .list-group-item small { color: var(--gh-muted); }

/* ==========================================================================
   7. Responsive + motion (login part; later sections add their own blocks)
   ========================================================================== */
@media (max-width: 1100px) {
  .gh-auth__main { padding: 52px 44px; }
  .gh-auth__brand { padding: 44px 40px; }
}
@media (max-width: 900px) {
  .gh-auth--split .gh-auth__shell { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "brand"; max-width: 600px; }
  .gh-auth__main { padding: 44px 48px 40px; }
  .gh-auth__panel { max-width: none; }
  .gh-auth__brand { gap: 26px; padding: 36px 40px 40px; }
  .gh-auth__logo { display: none; }
  .gh-auth__brand-text { margin-bottom: 22px; }
  .gh-auth__art { right: -190px; bottom: auto; top: -170px; }
  .gh-auth__art-dots { display: none; }
}
@media (max-width: 640px) {
  body.gh-portal.gh-layout-auth section#main-body { padding: 20px 0 48px; }
  .gh-auth--split .gh-auth__shell { border-radius: 20px; }
  .gh-auth__main { padding: 30px 20px 28px; }
  .gh-auth__brand { padding: 30px 22px 26px; gap: 22px; }
  .gh-auth__lead { margin-bottom: 22px; }
  .gh-auth__support { padding: 16px; }
  .gh-auth__switch { margin-top: 22px; padding-top: 18px; }
}
@media (max-width: 1180px) {
  .gh-home__shortcuts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .gh-home__hero { padding: 52px 40px; gap: 32px; }
  .gh-reg-page__layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .gh-reg__section { padding: 26px 26px 28px; }
}
@media (max-width: 991.98px) {
  .gh-home__hero { grid-template-columns: minmax(0, 1fr); }
  .gh-home__tiles > li, .gh-home__tiles > li.gh-home__tiles-wide { grid-column: span 3; }
  .gh-reg-page__layout { grid-template-columns: minmax(0, 1fr); }
  .gh-reg-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 760px) {
  .gh-invite__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 760px) {
  .gh-cah__welcome { flex-direction: column; align-items: flex-start; padding: 26px 22px; }
  .gh-home__shortcuts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gh-home__contacts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .gh-cah__actions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .gh-cah__action { gap: 10px; padding: 14px; }
  .gh-home__hero { padding: 34px 20px 20px; border-radius: 22px; gap: 28px; }
  .gh-home__domain-card { padding: 22px 18px; border-radius: 18px; }
  .gh-home__section { margin-top: 44px; }
  .gh-home__tiles { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .gh-home__tiles > li, .gh-home__tiles > li.gh-home__tiles-wide { grid-column: 1 / -1; }
  .gh-home__tile--row { padding: 20px; column-gap: 16px; }
  .gh-home__shortcuts { grid-template-columns: minmax(0, 1fr); }
  .gh-home__support { margin-top: 44px; padding: 30px 20px; border-radius: 22px; }
  .gh-reg-page__head { display: block; margin-bottom: 22px; }
  .gh-reg-page__login { margin-top: 16px; }
  .gh-reg__section { padding: 22px 18px 24px; border-radius: 16px; }
  .gh-reg__head { gap: 12px; }
  .gh-reg__step { width: 32px; height: 32px; border-radius: 10px; font-size: .875rem; }
  .gh-reg__title { font-size: 1.125rem; }
  .gh-reg__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; margin-top: 20px; }
  .gh-field--full, .gh-field--half, .gh-field--third, .gh-reg__grid > .alert { grid-column: 1 / -1; }
  .gh-reg__pwtools { flex-direction: column; align-items: stretch; }
  .gh-reg__pwtools .generate-password { align-self: flex-start; }
  .gh-reg__optin { margin-left: 0; }
  .gh-reg__section--submit { padding: 22px 18px; }
  .gh-reg__section--social { padding: 20px 18px; }
  body.gh-portal .gh-reg__submit { width: 100%; min-width: 0; }
  .gh-reg-aside { grid-template-columns: minmax(0, 1fr); }
  body.gh-portal .gh-invite__box { padding: 20px 16px; }
  .gh-auth__card-body { padding: 32px 22px 28px; }
  .gh-auth__card-foot { padding: 16px 20px; }
  .gh-auth__badge { width: 52px; height: 52px; margin-bottom: 18px; border-radius: 16px; }
}
@media (max-width: 359px) {
  .gh-auth__captcha .recaptcha-container, .gh-reg__captcha .recaptcha-container { transform: scale(.88); transform-origin: center top; }
}
@media (prefers-reduced-motion: reduce) {
  .gh-auth *, .gh-reg-page *, .gh-home *, .gh-cah * { transition: none !important; animation: none !important; }
  .gh-home__shortcut:hover, .gh-cah__action:hover, .gh-home .gh-card--link:hover { transform: none; }
}
