/* Govexa sign-in — the same palette and type as the workspace behind it, so the
   first screen and the first page after it read as one product. */

/* Keycloak's own reset does not set this, and the workspace's does — without it
   the horizontal padding is added to a 100% width and the whole layout sits
   64px off the left edge. */
*, *::before, *::after { box-sizing: border-box; }

:root {
  --bg:        #eef6fc;
  --surface:   #ffffff;
  --surface-2: #f6fbfe;
  --line:      #d6e7f4;
  --line-soft: #e6f1f9;
  --ink:       #12334f;
  --ink-2:     #3f6480;
  --muted:     #7595ae;
  --brand:     #0b4f8a;
  --brand-2:   #1276c7;
  --brand-ink: #083b68;
  --brand-wash:#e2f0fb;
  --warn:      #b4700a;  --warn-bg: #fdf0da;  --warn-line:#f3dcb0;
  --bad:       #cf3239;  --bad-bg:  #fdeaec;  --bad-line: #f6cdd1;
  --ok:        #0f8a4a;  --ok-bg:   #e0f6ea;  --ok-line:  #bfe9d1;
  --radius:    14px;
  --shadow:    0 1px 2px rgba(11,60,100,.05), 0 10px 26px -18px rgba(11,60,100,.35);
}

/* Keycloak's own background and card chrome, removed. */
html, body, .login-pf, .login-pf body, #kc-container, #kc-container-wrapper {
  background: none !important; height: auto !important;
}

body.gx-body {
  margin: 0; min-height: 100vh; color: var(--ink);
  font: 400 15px/1.55 "IBM Plex Sans", system-ui, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
  background:
    radial-gradient(1100px 520px at 10% -12%, #dcecfa 0%, transparent 60%),
    radial-gradient(900px 480px at 94% 6%, #e6f4fc 0%, transparent 62%),
    var(--bg);
  display: flex; flex-direction: column;
}

/* Information on the left, the form on the right, as asked. */
.gx-split {
  flex: 1; width: min(1180px, 100%); margin: 0 auto; padding: 48px 32px 24px;
  display: grid; gap: 56px; align-items: center;
  grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr);
}

/* ── left ── */
.gx-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.gx-mark { width: 34px; height: 34px; }
.gx-wordmark {
  font-size: 23px; font-weight: 700; letter-spacing: -.02em; color: var(--brand);
}
.gx-dept {
  margin: 8px 0 0; font-size: 13px; color: var(--muted);
}
.gx-lede {
  margin: 26px 0 22px; font-size: 32px; line-height: 1.16; font-weight: 700;
  letter-spacing: -.018em; color: var(--brand); max-width: 17ch;
}
.gx-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 15px; }
.gx-points li {
  font-size: 14.5px; line-height: 1.55; color: var(--ink-2); max-width: 54ch;
  padding-left: 15px; border-left: 2px solid var(--line);
}
.gx-points strong { color: var(--ink); font-weight: 600; }
.gx-synthetic {
  margin: 26px 0 0; padding: 13px 15px; font-size: 12.5px; line-height: 1.5;
  color: var(--ink-2); background: var(--warn-bg);
  border: 1px solid var(--warn-line); border-radius: 10px; max-width: 58ch;
}
.gx-synthetic strong { color: var(--warn); }

/* ── right ── */
.gx-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow); padding: 30px 32px 32px;
}
.gx-card-head h1, .gx-card-head #kc-page-title {
  margin: 0 0 22px; font-size: 21px; font-weight: 700; color: var(--brand);
  letter-spacing: -.012em;
}
.gx-required { display: block; font-size: 12px; color: var(--muted); margin-bottom: 12px; }

.gx-message {
  display: flex; gap: 9px; align-items: flex-start; margin-bottom: 18px;
  padding: 11px 13px; border-radius: 9px; font-size: 13.5px; line-height: 1.45;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
}
.gx-message.gx-error   { background: var(--bad-bg);  border-color: var(--bad-line);  color: var(--bad); }
.gx-message.gx-warning { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.gx-message.gx-success { background: var(--ok-bg);   border-color: var(--ok-line);   color: var(--ok); }

/* Keycloak's markup, restyled in place. */
.gx-card label, .gx-card .pf-c-form__label, .gx-card .control-label {
  display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.gx-card input[type="text"], .gx-card input[type="password"], .gx-card input[type="email"],
.gx-card .pf-c-form-control, .gx-card select {
  width: 100%; box-sizing: border-box; padding: 11px 13px; margin-bottom: 4px;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 9px;
  height: auto; box-shadow: none;
}
.gx-card input:focus, .gx-card select:focus {
  outline: none; border-color: var(--brand-2); background: var(--surface);
  box-shadow: 0 0 0 3px rgba(18,118,199,.14);
}
.gx-card .pf-c-form__group, .gx-card .form-group { margin-bottom: 17px; }

.gx-card input[type="submit"], .gx-card button[type="submit"],
.gx-card .pf-c-button.pf-m-primary, .gx-card #kc-login {
  width: 100%; padding: 12px 18px; margin-top: 4px;
  font: inherit; font-size: 15px; font-weight: 600; color: #fff;
  background: var(--brand); border: 0; border-radius: 9px; cursor: pointer;
}
.gx-card input[type="submit"]:hover, .gx-card button[type="submit"]:hover,
.gx-card #kc-login:hover { background: var(--brand-ink); }

.gx-card a { color: var(--brand-2); }
.gx-card .checkbox, .gx-card #kc-form-options { font-size: 13.5px; color: var(--ink-2); }
.gx-card #kc-form-options label { display: inline; font-weight: 400; }
.gx-card input[type="checkbox"] { width: auto; margin-right: 7px; }

.gx-info, .gx-another {
  margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft);
  font-size: 13.5px; color: var(--ink-2);
}
.gx-another { background: none; border: 0; color: var(--brand-2); cursor: pointer; padding: 16px 0 0; }

/* Keycloak renders a password-reveal button; keep it inside the field. */
.gx-card .pf-c-input-group { display: flex; align-items: stretch; gap: 6px; }
.gx-card .pf-c-input-group button {
  flex: none; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 9px; color: var(--muted); cursor: pointer; padding: 0 12px;
}

/* ── the copyright, bottom and centred ── */
.gx-footer {
  padding: 8px 32px 28px; text-align: center; font-size: 12.5px; color: var(--muted);
}
.gx-footer p { margin: 0; }

@media (max-width: 900px) {
  .gx-split {
    grid-template-columns: minmax(0, 1fr); gap: 32px; padding: 30px 18px 18px;
    align-items: start;
  }
  .gx-lede { font-size: 26px; max-width: none; }
  .gx-card { padding: 24px 20px 26px; }
  /* The form first on a phone: someone on a small screen is usually returning,
     not reading the pitch. */
  .gx-signin { order: -1; }
}
