/* The demo's sign-in look: the brand (まるマルDX AXマイグレーション) and the demo's colours (TailAdmin-like) over PatternFly 5.
   Pages: sign-in, one-time password, set up the one-time password, new password, errors and notices. */
:root {
  --demo-brand: #465fff;
  --demo-brand-hover: #3641f5;
  --demo-green: #0b5e38;
  --demo-ink: #101828;
  --demo-sub: #667085;
  --demo-line: #e4e7ec;
  --demo-bg: #f9fafb;
  --demo-card: #ffffff;
  --pf-v5-global--primary-color--100: var(--demo-brand);
  --pf-v5-global--primary-color--200: var(--demo-brand-hover);
  --pf-v5-global--link--Color: var(--demo-brand);
  --pf-v5-global--link--Color--hover: var(--demo-brand-hover);
  --demo-input: #d0d5dd;
  --demo-ring: rgba(70, 95, 255, 0.12);
  /* the same type as the demo's pages */
  --pf-v5-global--FontFamily--text: "Outfit", "Hiragino Sans", "Noto Sans JP", "Yu Gothic UI", "Meiryo", sans-serif;
  --pf-v5-global--FontFamily--heading: var(--pf-v5-global--FontFamily--text);
}
.pf-v5-theme-dark {
  --pf-v5-global--primary-color--100: var(--demo-brand);
  --pf-v5-global--primary-color--200: var(--demo-brand-hover);
  --pf-v5-global--link--Color: #7592ff;
  --demo-input: #344054;
  --demo-ink: #f2f4f7;
  --demo-sub: #98a2b3;
  --demo-line: #1d2939;
  --demo-bg: #0c111d;
  --demo-card: #101828;
}
/* background: plain, no product artwork */
.pf-v5-c-login, body, .login-pf body { background: var(--demo-bg) !important; background-image: none !important; }
.pf-v5-c-login__container { max-width: 460px; padding-inline: 16px; grid-template-columns: 1fr !important; }
/* header: the brand logo instead of the realm's name in large letters */
.pf-v5-c-login__header { padding: 0 0 20px; display: flex; justify-content: center; }
#kc-header, #kc-header-wrapper, .pf-v5-c-brand { display: flex; justify-content: center; }
#kc-header-wrapper { font-size: 0 !important; color: transparent !important; }
#kc-header-wrapper::before {
  content: ""; display: block; width: 200px; height: 52px;
  background: url("../img/logo.webp") center / contain no-repeat;
}
.pf-v5-theme-dark #kc-header-wrapper::before { filter: brightness(0) invert(1); }
/* the card */
.pf-v5-c-login__main {
  background: var(--demo-card) !important; border: 1px solid var(--demo-line); border-radius: 16px;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.06); grid-column: 1 / -1 !important;
}
.pf-v5-c-login__main-header { padding-top: 28px; }
.pf-v5-c-title { color: var(--demo-ink); font-size: 20px !important; font-weight: 700; }
.pf-v5-c-login__main-body, .pf-v5-c-form__label-text, .pf-v5-c-helper-text, #kc-info-message, .instruction { color: var(--demo-sub); }
.pf-v5-c-form-control { border-radius: 10px; }
.pf-v5-c-form-control > input { font-size: 15px; }
.pf-v5-c-button.pf-m-primary { border-radius: 10px; font-weight: 600; padding-block: 10px; }
.pf-v5-c-alert { border-radius: 10px; }
/* the language switch and anything that names the product */
.pf-v5-c-login__main-header-utilities, #kc-locale, .kc-dropdown { display: none !important; }
/* the little line under the card */
.pf-v5-c-login__main-footer-band { border-top: 1px solid var(--demo-line); }
.demo-foot { margin: 16px 0 0; text-align: center; font-size: 12px; color: var(--demo-sub); }

/* ---- the same details as the demo's own pages (TailAdmin) ---- */
body, .pf-v5-c-login { font-family: var(--pf-v5-global--FontFamily--text) !important; }
/* the card: no coloured bar on top */
.pf-v5-c-login__main { border-top: 1px solid var(--demo-line) !important; }
.pf-v5-c-login__main::before { display: none !important; }
.pf-v5-c-title, h1#kc-page-title { font-weight: 700 !important; color: var(--demo-ink) !important; }
/* fields: a full rounded border and a soft focus ring (not PatternFly's underline) */
.pf-v5-c-form-control { background: transparent !important; border-radius: 10px; }
.pf-v5-c-form-control::after { border-width: 0 !important; }
.pf-v5-c-form-control::before { border: 1px solid var(--demo-input) !important; border-radius: 10px; }
.pf-v5-c-form-control:focus-within::before { border-color: var(--demo-brand) !important; box-shadow: 0 0 0 3px var(--demo-ring); }
.pf-v5-c-form-control > input { color: var(--demo-ink); min-height: 44px; }
.pf-v5-c-input-group { gap: 8px; }
.pf-v5-c-button.pf-m-control { border-radius: 10px; }
.pf-v5-c-button.pf-m-control::after { border: 1px solid var(--demo-input) !important; border-radius: 10px; }
/* the main button: the demo's blue in light and dark */
.pf-v5-c-button.pf-m-primary { background-color: var(--demo-brand) !important; min-height: 44px; }
.pf-v5-c-button.pf-m-primary:hover, .pf-v5-c-button.pf-m-primary:focus { background-color: var(--demo-brand-hover) !important; }
.pf-v5-c-form__label-text { color: var(--demo-ink) !important; font-weight: 500; }
/* the parent theme's coloured bar over the card header, and the browser's own focus outline (the ring above is ours) */
.pf-v5-c-login__main-header { border-top: 0 !important; }
.pf-v5-c-login__main { overflow: hidden; }
.pf-v5-c-form-control > input:focus, .pf-v5-c-form-control > input:focus-visible { outline: none !important; box-shadow: none !important; }
.pf-v5-theme-dark .pf-v5-c-button.pf-m-control { background: transparent !important; color: var(--demo-sub); }
/* 「GitHub でログイン」: the same outlined button as the demo's secondary buttons */
#kc-social-providers { margin-top: 20px; }
#kc-social-providers hr, #kc-social-providers .pf-v5-c-divider { border-color: var(--demo-line); }
#kc-social-providers a.pf-v5-c-button, #kc-social-providers .pf-v5-c-button {
  border: 1px solid var(--demo-input) !important; border-radius: 10px; min-height: 44px; color: var(--demo-ink) !important;
  background: transparent !important; font-weight: 600; justify-content: center;
}
#kc-social-providers .pf-v5-c-button::after { border: 0 !important; }
/* the way on from an information page (the end of the invitation's steps, a used link): a button, not a small link */
#kc-info-message a, #kc-error-message a {
  display: flex; align-items: center; justify-content: center; margin-top: 20px; min-height: 44px; border-radius: 10px;
  border: 1px solid var(--demo-input); color: var(--demo-ink); font-weight: 600; text-decoration: none;
}
#kc-info-message a:hover, #kc-error-message a:hover { background: rgba(70, 95, 255, 0.06); }
#kc-info-message a.demo-primary { background: #465fff; border-color: #465fff; color: #fff; }
#kc-info-message a.demo-primary:hover { background: #3641f5; }
#kc-info-message .instruction { line-height: 1.8; }
