/* GG-LOGIN-BRAND-001 glass4 / GG-LOGIN-TEXT-001 / fields & action.
 * Preserves the existing host background, authentication, form IDs and actions. */
html[data-gorgi-ui][data-theme] .gg-brand-pane {
  position: relative; isolation: isolate; display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr);
  align-items: center; justify-content: center; gap: 5%; direction: ltr;
  min-width: 0; width: 100%; max-width: 100%; padding: 12px 5%; border: 1px solid #ffffffba;
  container-type: inline-size;
  border-radius: 20px; overflow: visible;
  background: radial-gradient(ellipse at 17% 2%,#ffffffb8,transparent 56%),linear-gradient(125deg,#ffffff52,#bbdfcc24 48%,#ffffff6b);
  box-shadow: 0 8px 15px -11px #2b6f525c,0 0 12px 2px #ffffff91,0 0 26px 5px #a8d9c045,inset 0 1px 1px #fffffff0,inset 0 -1px 2px #6f9b853d;
  backdrop-filter: blur(18px) saturate(1.12); -webkit-backdrop-filter: blur(18px) saturate(1.12);
}
html[data-gorgi-ui][data-theme] .gg-brand-pane::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(162deg,#ffffff61 0%,#ffffff1f 27%,transparent 28%,transparent 72%,#e0ffed3d 100%);
}
html[data-gorgi-ui][data-theme] .gg-brand-pane::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 1px 1px #ffffffed,inset 0 -1px 1px #d0efdfb3,0 0 7px #ffffff80; opacity: .8;
}
html[data-gorgi-ui][data-theme] .gg-brand-pane :is(.brand-logo-frame, .erp-wordmark.erp-glass-brand) {
  display: grid; place-items: center; border: 0; border-radius: 0; background: transparent;
  box-shadow: none; padding: 0; min-width: 0; width: 100%; min-height: 0;
  overflow: visible; line-height: 1.4; transform: none; opacity: 1; animation: none;
  backdrop-filter: none; -webkit-backdrop-filter: none;
}
html[data-gorgi-ui][data-theme] .gg-brand-pane :is(.brand-logo-frame, .erp-wordmark.erp-glass-brand)::before,
html[data-gorgi-ui][data-theme] .gg-brand-pane :is(.brand-logo-frame, .erp-wordmark.erp-glass-brand)::after { display: none; }
html[data-gorgi-ui][data-theme] .gg-brand-pane img.brand-logo-image {
  display: block; position: relative; width: 100%; height: auto; max-width: 100%; object-fit: contain;
  filter: saturate(.504) brightness(.9) contrast(.98); border: 0; border-radius: 0; box-shadow: none;
}
html[data-gorgi-ui][data-theme] .gg-brand-pane .erp-glass-lettering {
  --erp-highlight-opacity: .1; font-family: 'Yekan Bakh',Tahoma,sans-serif; font-weight: 950;
  font-size: clamp(18px,2vw,36px); line-height: 1.4; letter-spacing: .015em; text-shadow: none;
  display: block; white-space: nowrap; overflow: visible; padding: .06em .08em;
  color: #416c5b; background-image: linear-gradient(155deg,transparent 22%,rgb(255 255 255 / var(--erp-highlight-opacity)) 39%,transparent 48%),linear-gradient(150deg,#3b6655 0%,#739585 48%,#416c5b 100%);
  background-clip: text; -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  -webkit-text-stroke: .35px rgb(239 255 245 / .1);
  filter: drop-shadow(0 1px 0 rgb(255 255 255 / .1)) drop-shadow(0 2px 2px #235d453d);
}
html[data-gorgi-ui][data-theme=dark] .gg-brand-pane {
  border-color: #c6e8d68c; background: radial-gradient(ellipse at 17% 2%,#e5fff12e,transparent 56%),linear-gradient(125deg,#c8f4dd1f,#2047374d 48%,#dbffeb21);
  box-shadow: 0 8px 15px -10px #021c148c,0 0 11px 1px #daf7e966,0 0 25px 4px #91cdb43b,inset 0 1px 1px #effff38c,inset 0 -1px 2px #86bda24a;
}
html[data-gorgi-ui][data-theme=dark] .gg-brand-pane::before { background: linear-gradient(162deg,#eafff138 0%,#ffffff0d 27%,transparent 28%,transparent 72%,#b7f4d52b 100%); }
html[data-gorgi-ui][data-theme=dark] .gg-brand-pane::after { box-shadow: inset 0 1px 1px #effff3c7,inset 0 -1px 1px #9ed5b98c,0 0 7px #d1f5e152; }
html[data-gorgi-ui][data-theme=dark] .gg-brand-pane .erp-glass-lettering {
  background-image: linear-gradient(155deg,transparent 22%,rgb(255 255 255 / var(--erp-highlight-opacity)) 39%,transparent 48%),linear-gradient(150deg,#9fc6b3 0%,#c0ddcf 48%,#91bba5 100%);
  -webkit-text-stroke: .35px rgb(225 255 236 / .1); filter: drop-shadow(0 1px 0 rgb(255 255 255 / .1)) drop-shadow(0 2px 2px #041f1852);
}
html[data-gorgi-ui][data-theme] .gg-login-lockup { max-width: 230px; margin-inline: auto; margin-bottom: 18px; }
html[data-gorgi-ui][data-theme] .login-brand .gg-brand-pane { width: 230px; flex: none; animation: none; }
html[data-gorgi-ui][data-theme] .sidebar .brand.brand-5040 { overflow: visible; }
@supports (font-size: 1cqw) {
  html[data-gorgi-ui][data-theme] .gg-brand-pane .erp-glass-lettering { font-size: 17cqw; }
}
html[data-gorgi-ui][data-theme] .form-card :is(.access-symbol, .section-kicker, .form-intro) { display: none; }
html[data-gorgi-ui][data-theme] #login-title { font-size: 27px; font-weight: 800; line-height: 1.55; letter-spacing: 0; }
html[data-gorgi-ui][data-theme] #login-submit {
  border: 1px solid var(--gg-rim); border-radius: 999px; min-height: 51px;
  background: var(--gg-button); color: var(--ink); box-shadow: var(--gg-button-shadow);
  backdrop-filter: blur(12px); transition: background .3s ease,box-shadow .3s ease;
}
html[data-gorgi-ui][data-theme] #login-submit:hover:enabled { background: var(--gg-button-hover); box-shadow: var(--gg-hover-shadow); }
html[data-gorgi-ui][data-theme] #login-submit:active:enabled { background: var(--gg-selected); box-shadow: var(--gg-inset); }
html[data-gorgi-ui][data-theme] #login-submit > svg { width: 33px; height: 33px; border: 1px solid var(--gg-rim); border-radius: 50%; padding: 7px; box-shadow: 0 2px 4px #245d3721,inset 0 1px #ffffff36; filter: drop-shadow(0 0 3px #a8dec11a); }
html[data-gorgi-ui][data-theme] #login-feedback { min-height: 28px; }

.login-footer-version {
  display: grid;
  gap: 4px;
}

/* The shell owns the field styling, including the focus indicator. */
html[data-gorgi-ui][data-theme] #login-form .input-shell input {
  color: var(--ink);
  caret-color: var(--ink);
  border: 0;
  background: transparent;
  box-shadow: none;
}
#login-form .input-shell input::selection {
  color: var(--ink);
  background: color-mix(in srgb, var(--accent) 28%, var(--bg));
}
/* Clip the browser's autofill paint so the shell stays visible behind the text. */
html[data-gorgi-ui][data-theme] #login-form .input-shell input:is(:autofill, :-webkit-autofill) {
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: var(--ink);
}
