/* Same visual language as iendustria.com (IE-Optimizer-Tasarim-Dili.md): IBM Plex, teal, flat, 1px lines. */
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

@font-face { font-family: 'IBM Plex Sans Condensed'; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-condensed-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'IBM Plex Sans Condensed'; font-weight: 600; font-display: swap; src: url(../fonts/ibm-plex-sans-condensed-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+20AC, U+2122; }
@font-face { font-family: 'IBM Plex Mono'; font-weight: 500; font-display: swap; src: url(../fonts/ibm-plex-mono-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --ie-bg: #f3f6f5; --ie-surface: #ffffff; --ie-ink: #12201d; --ie-ink-2: #5a6a67;
  --ie-line: #dfe6e4; --ie-grid: #e8eeec; --ie-teal: #0d6b5e; --ie-teal-h: #094d44; --ie-teal-soft: #e2efec; --ie-brick: #9a372d;
  --pf-v5-global--FontFamily--text: 'IBM Plex Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --pf-v5-global--FontFamily--heading: 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif;
  --pf-v5-global--primary-color--100: var(--ie-teal);
  --pf-v5-global--primary-color--200: var(--ie-teal-h);
  --pf-v5-global--link--Color: var(--ie-teal);
  --pf-v5-global--link--Color--hover: var(--ie-teal-h);
  --pf-v5-global--BorderRadius--sm: 8px;
  --pf-v5-global--danger-color--100: var(--ie-brick);
}

html, body, .pf-v5-c-login { background: var(--ie-bg) !important; color: var(--ie-ink); }
.pf-v5-c-login__container { max-width: 440px; }

/* Header: the IENDUSTRIA wordmark instead of the realm name */
#kc-header-wrapper {
  font-size: 0; color: transparent; height: 40px; width: 168px; margin: 0 auto;
  background: url(../img/iendustria-wordmark.svg) center / contain no-repeat;
}

/* Card: flat, 1px line, 12px radius — no shadow (design language rule) */
.pf-v5-c-login__main {
  background: var(--ie-surface); border: 1px solid var(--ie-line); border-radius: 12px; box-shadow: none;
}
.pf-v5-c-login__main-header .pf-v5-c-title { font-weight: 600; letter-spacing: -0.01em; }

.pf-v5-c-button.pf-m-primary { background: var(--ie-teal); border-radius: 10px; font-weight: 500; }
.pf-v5-c-button.pf-m-primary:hover { background: var(--ie-teal-h); }

/* Keycloak draws a 4px blue bar on the card header; the design language has no accent bars */
.pf-v5-c-login__main-header { border-top: 0 !important; }
.pf-v5-c-login__header { margin-bottom: 20px; }

/* ---- Layout: brand panel + form. Wide (≥ 860 px): side by side. Narrower: the brand is a dark band on top
        and the form card sits right under it — the brand is visible at every width. ---- */
body#keycloak-bg { margin: 0; }
.ie-split { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.ie-brand { display: flex; flex-direction: column; gap: 18px; padding: 24px 20px 64px;
  color: #e6ecea; background-color: #0c1312;
  background-image: linear-gradient(rgba(87,198,171,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(87,198,171,.07) 1px, transparent 1px);
  background-size: 32px 32px; }
.ie-side { min-width: 0; background: var(--ie-bg);
  background-image: linear-gradient(var(--ie-grid) 1px, transparent 1px), linear-gradient(90deg, var(--ie-grid) 1px, transparent 1px);
  background-size: 32px 32px; }
.ie-side #kc-header { display: none; }                 /* the brand band / panel carries the logo */
.ie-side .pf-v5-c-login { background: transparent !important; min-height: 0; padding: 0 16px 32px; box-sizing: border-box;
  display: flex; justify-content: center; }
.ie-side .pf-v5-c-login__container { width: 100%; max-width: 440px; margin: -40px 0 0; display: block; padding: 0; }
.ie-brand__points, .ie-brand__foot { display: none; }
@media (min-width: 600px) {
  .ie-brand { padding: 32px 40px 72px; align-items: center; text-align: center; }
  .ie-brand__body { margin: 0 auto; }
  .ie-brand__kicker { justify-content: center; }
  .ie-brand__logo img { margin: 0 auto; }
}
@media (min-width: 860px) {
  .ie-split { grid-template-columns: minmax(360px, 0.9fr) minmax(460px, 1.1fr); }
  .ie-brand { justify-content: space-between; align-items: stretch; text-align: left; gap: 40px; padding: 48px 56px; }
  .ie-brand__body { margin: 0; }
  .ie-brand__kicker { justify-content: flex-start; }
  .ie-brand__logo img { margin: 0; }
  .ie-brand__points { display: flex; }
  .ie-brand__foot { display: block; }
  .ie-side .pf-v5-c-login { min-height: 100vh; padding: 32px 16px; align-items: center; }
  .ie-side .pf-v5-c-login__container { margin: 0; }
}
.ie-brand__logo img { display: block; height: 32px; width: auto; }
.ie-brand__body { max-width: 30rem; }
.ie-brand__kicker { margin: 0 0 14px; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 500; font-size: 12px;
  letter-spacing: .12em; color: #57c6ab; display: flex; align-items: center; gap: 10px; }
.ie-brand__kicker::before { content: ''; width: 8px; height: 8px; border-radius: 2px; background: #57c6ab; }
.ie-brand__title { margin: 0 0 16px; font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif; font-weight: 600;
  font-size: clamp(30px, 3.4vw, 48px); line-height: 1.04; letter-spacing: -0.01em; color: #ffffff; }
.ie-brand__lead { margin: 0 0 24px; font-size: 16px; line-height: 1.55; color: #b8c6c3; }
.ie-brand__points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.ie-brand__points li { position: relative; padding-left: 28px; font-size: 14.5px; line-height: 1.45; color: #e6ecea; }
.ie-brand__points li::before { content: ''; position: absolute; left: 2px; top: 6px; width: 12px; height: 7px;
  border-left: 2px solid #57c6ab; border-bottom: 2px solid #57c6ab; transform: rotate(-45deg); }
.ie-brand__foot { margin: 0; font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 12px; color: #92a3a0; }

/* ---- Form card ---- */
.ie-side .pf-v5-c-login__main { padding: 8px 4px 4px; }
.ie-side .pf-v5-c-login__main-header { padding: 28px 32px 8px; }
.ie-side .pf-v5-c-login__main-body { padding: 8px 32px 8px; }
.ie-side .pf-v5-c-login__main-footer { padding: 0 32px 24px; }
.pf-v5-c-login__main-header .pf-v5-c-title { font-family: 'IBM Plex Sans Condensed', 'Arial Narrow', sans-serif; font-size: 30px; line-height: 1.1; }
.pf-v5-c-button.pf-m-primary { min-height: 44px; font-size: 15px; }
.pf-v5-c-button.pf-m-primary:focus-visible { outline: 2px solid var(--ie-teal); outline-offset: 2px; }
.pf-v5-c-login__main-footer-band { border-top: 1px solid var(--ie-line); background: transparent; }
#kc-info-wrapper, #kc-registration { font-size: 14px; color: var(--ie-ink-2); }
#kc-info-wrapper a, #kc-registration a { font-weight: 500; }
.pf-v5-c-helper-text__item-text, .subtitle { color: var(--ie-ink-2); font-size: 12.5px; }
@media (max-width: 480px) {
  .ie-side .pf-v5-c-login__main-header, .ie-side .pf-v5-c-login__main-body, .ie-side .pf-v5-c-login__main-footer { padding-left: 20px; padding-right: 20px; }
}

/* ---- Fields: one clean box (like the platform's forms) instead of PatternFly's hairline + underline ---- */
.ie-side .pf-v5-c-form { gap: 18px; }
.ie-side .pf-v5-c-form__group { gap: 0; }
.ie-side .pf-v5-c-form__group-label { padding-bottom: 6px !important; }
.ie-side .pf-v5-c-form__label-text { font-size: 13px; font-weight: 500; color: var(--ie-ink); }
.ie-side .pf-v5-c-form__label-required { color: var(--ie-brick); }
.ie-side .pf-v5-c-form-control {
  --pf-v5-c-form-control--before--BorderStyle: none; --pf-v5-c-form-control--after--BorderStyle: none;
  display: flex; align-items: center; width: 100%; min-height: 46px; box-sizing: border-box;
  background: #fff; border: 1px solid #cdd8d5; border-radius: 10px; transition: border-color .14s, box-shadow .14s;
}
.ie-side .pf-v5-c-form-control::before, .ie-side .pf-v5-c-form-control::after { display: none !important; }
.ie-side .pf-v5-c-form-control > input, .ie-side .pf-v5-c-form-control > select {
  width: 100%; height: 44px; padding: 0 14px; border: 0; outline: 0; background: transparent;
  font: 400 15px/1.2 'IBM Plex Sans', ui-sans-serif, system-ui, sans-serif; color: var(--ie-ink);
}
.ie-side .pf-v5-c-form-control > input::placeholder { color: #8c9a97; }
.ie-side .pf-v5-c-form-control:hover { border-color: #b4c2bf; }
.ie-side .pf-v5-c-form-control:focus-within { border-color: var(--ie-teal); box-shadow: 0 0 0 3px var(--ie-teal-soft); }
.ie-side .pf-v5-c-form-control:has(> input[aria-invalid="true"]) { border-color: var(--ie-brick); box-shadow: 0 0 0 3px #f9eae8; }
.ie-side .pf-v5-c-form-control.pf-m-readonly, .ie-side .pf-v5-c-form-control:has(> input[readonly]) { background: #f8faf9; }
/* password: the field and the eye button are one box */
.ie-side .pf-v5-c-input-group { display: flex; align-items: stretch; background: #fff; border: 1px solid #cdd8d5; border-radius: 10px;
  transition: border-color .14s, box-shadow .14s; }
.ie-side .pf-v5-c-input-group:hover { border-color: #b4c2bf; }
.ie-side .pf-v5-c-input-group:focus-within { border-color: var(--ie-teal); box-shadow: 0 0 0 3px var(--ie-teal-soft); }
.ie-side .pf-v5-c-input-group:has(input[aria-invalid="true"]) { border-color: var(--ie-brick); box-shadow: 0 0 0 3px #f9eae8; }
.ie-side .pf-v5-c-input-group .pf-v5-c-form-control { border: 0; box-shadow: none !important; min-height: 44px; border-radius: 10px 0 0 10px; }
.ie-side .pf-v5-c-input-group .pf-v5-c-button.pf-m-control { border: 0; background: transparent; color: var(--ie-ink-2); width: 46px;
  border-radius: 0 10px 10px 0; --pf-v5-c-button--after--BorderWidth: 0; }
.ie-side .pf-v5-c-input-group .pf-v5-c-button.pf-m-control::after { display: none; }
.ie-side .pf-v5-c-input-group .pf-v5-c-button.pf-m-control:hover { color: var(--ie-teal); }
/* language selector in the card header: same box, smaller */
.ie-side .pf-v5-c-login__main-header-utilities .pf-v5-c-form-control { min-height: 36px; border-radius: 8px; }
.ie-side .pf-v5-c-login__main-header-utilities .pf-v5-c-form-control > select { height: 34px; padding: 0 30px 0 10px; font-size: 13.5px;
  appearance: none; -webkit-appearance: none; }
.ie-side .pf-v5-c-login__main-header-utilities .pf-v5-c-form-control__utilities { position: absolute; right: 10px; pointer-events: none; color: var(--ie-ink-2); }
.ie-side .pf-v5-c-login__main-header-utilities .pf-v5-c-form-control { position: relative; }
/* helper and error text */
.ie-side .pf-v5-c-form__helper-text { margin-top: 6px; }
.ie-side .pf-v5-c-helper-text__item-text a { font-size: 13px; font-weight: 500; }
.ie-side [id^="input-error"] .pf-v5-c-helper-text__item-text, .ie-side .pf-v5-c-helper-text__item.pf-m-error { color: var(--ie-brick); font-size: 12.5px; margin-top: 6px; }
.ie-side .pf-v5-c-alert { border-radius: 10px; border: 1px solid #ecc9c4; background: #f9eae8; box-shadow: none; }
.ie-side .pf-v5-c-alert__title { font-weight: 500; color: var(--ie-ink); }
/* checkbox ("remember me") and primary button */
.ie-side .pf-v5-c-check__input { accent-color: var(--ie-teal); width: 16px; height: 16px; }
.ie-side .pf-v5-c-form__actions { margin-top: 6px; }
.ie-side .pf-v5-c-button.pf-m-primary { width: 100%; min-height: 46px; border-radius: 10px; font-size: 15px; font-weight: 500; }
.ie-side .pf-v5-c-button.pf-m-primary::after { display: none; }
