/* SEAES Authentik Theme — injected via nginx sub_filter
   Targets PatternFly 4 CSS custom properties (cascade through Shadow DOM)
   Brand: Inter font, #1a5eb4 blue, light background
*/

/* === CSS Custom Properties (cascade into Shadow DOM) === */
:root {
  --ak-accent: #1a5eb4;

  /* PatternFly 4 global overrides */
  --pf-global--primary-color--100: #1a5eb4;
  --pf-global--primary-color--200: #15508a;
  --pf-global--link--Color: #1a5eb4;
  --pf-global--link--Color--hover: #15508a;
  --pf-global--link--Color--visited: #15508a;
  --pf-global--active-color--100: #1a5eb4;
  --pf-global--Color--100: #111827;
  --pf-global--Color--200: #374151;
  --pf-global--Color--300: #6b7280;
  --pf-global--Color--400: #9ca3af;
  --pf-global--BackgroundColor--100: #ffffff;
  --pf-global--BackgroundColor--200: #f8f9fa;
  --pf-global--BackgroundColor--300: #f3f4f6;
  --pf-global--BorderColor--100: #e5e7eb;
  --pf-global--BorderColor--200: #d1d5db;
  --pf-global--FontFamily--sans-serif:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* === Force light body background === */
html, body {
  background: #f8f9fa !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif !important;
  color: #374151 !important;
  min-height: 100vh !important;
}

/* Remove dark background image */
.pf-c-background-image {
  background-image: none !important;
  background-color: #f8f9fa !important;
}

.pf-c-background-image::before,
.pf-c-background-image::after {
  display: none !important;
}

/* === Login layout === */
.pf-c-login {
  background: transparent !important;
  min-height: 100vh !important;
}

@media (min-width: 1100px) {
  .pf-c-login {
    width: 600px !important;
    max-width: 600px !important;
  }

  .pf-c-login__container {
    margin-left: 0 !important;
    margin-right: auto !important;
  }
}

/* Login card */
.pf-c-login__main {
  background: #ffffff !important;
  border-radius: 12px !important;
  box-shadow: 0 4px 24px rgba(26, 94, 180, 0.10) !important;
  border: 1px solid #e5e7eb !important;
}

/* Header text */
.pf-c-login__header .pf-c-title,
.pf-c-login__header h1 {
  color: #111827 !important;
}

.pf-c-login__header p,
.pf-c-login__main-header-desc,
.pf-c-login__footer p {
  color: #6b7280 !important;
}

/* === Inter font for body text === */
body, p, span, label, div, input, button, a,
.pf-c-form__label, .pf-c-form__label-text,
.pf-c-title {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto,
    sans-serif !important;
}

/* === Primary buttons === */
.pf-c-button.pf-m-primary {
  background-color: #1a5eb4 !important;
  border-color: #1a5eb4 !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
}

.pf-c-button.pf-m-primary:hover,
.pf-c-button.pf-m-primary:focus {
  background-color: #15508a !important;
  border-color: #15508a !important;
}

/* Secondary / control buttons (Google, Microsoft, etc.) */
.pf-c-button.pf-m-control,
.pf-c-button.pf-m-secondary {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #374151 !important;
  border-radius: 8px !important;
}

.pf-c-button.pf-m-control:hover,
.pf-c-button.pf-m-secondary:hover {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
}

/* === Links === */
a {
  color: #1a5eb4 !important;
}

a:hover {
  color: #15508a !important;
}

/* === Form inputs === */
.pf-c-form-control {
  background: #ffffff !important;
  border-color: #d1d5db !important;
  color: #111827 !important;
  border-radius: 6px !important;
}

.pf-c-form-control:focus {
  border-color: #1a5eb4 !important;
  box-shadow: 0 0 0 2px rgba(26, 94, 180, 0.15) !important;
}

/* === Alerts === */
.pf-c-alert.pf-m-danger {
  border-left-color: #dc2626 !important;
  background: #fef2f2 !important;
  color: #991b1b !important;
}

.pf-c-alert.pf-m-success {
  border-left-color: #16a34a !important;
  background: #f0fdf4 !important;
}

.pf-c-alert.pf-m-info {
  border-left-color: #1a5eb4 !important;
  background: #e8f0fb !important;
}

/* === Dividers === */
.pf-c-divider,
hr {
  border-color: #e5e7eb !important;
}

/* === Navigation in footer === */
.pf-c-login__footer-nav-item a {
  color: #6b7280 !important;
}

.pf-c-login__footer-nav-item a:hover {
  color: #1a5eb4 !important;
}

/* === SEAES SSO Product Showcase === */
#s-sso-showcase {
  display: none;
}

@media (min-width: 1100px) {
  #s-sso-showcase {
    position: fixed;
    inset: 0 0 0 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 42px 56px;
    overflow: hidden;
    pointer-events: none;
    background:
      radial-gradient(circle at 18% 22%, rgba(26, 94, 180, 0.12), transparent 28%),
      radial-gradient(circle at 84% 76%, rgba(246, 119, 31, 0.14), transparent 30%),
      linear-gradient(135deg, #f8fbff 0%, #eef5ff 52%, #fff7f1 100%);
  }

  #s-sso-showcase::before {
    content: "";
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(26, 94, 180, 0.12);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.54);
    box-shadow: 0 30px 90px rgba(26, 94, 180, 0.12);
  }

  #s-sso-showcase::after {
    content: "";
    position: absolute;
    width: 76%;
    height: 220px;
    left: 8%;
    bottom: 12%;
    background: linear-gradient(90deg, rgba(26, 94, 180, 0.08), rgba(246, 119, 31, 0.10), rgba(37, 211, 102, 0.08));
    filter: blur(42px);
  }

  .s-showcase-inner {
    position: relative;
    z-index: 1;
    width: min(980px, 100%);
    display: grid;
    grid-template-columns: minmax(260px, 0.86fr) minmax(420px, 1.24fr);
    gap: 24px;
    align-items: center;
  }

  .s-showcase-copy {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(26, 94, 180, 0.12);
    box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  }

  .s-showcase-kicker {
    color: #1a5eb4;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    margin-bottom: 14px;
  }

  .s-showcase-copy h2 {
    color: #0f172a;
    font-size: clamp(28px, 3vw, 48px);
    line-height: 1.02;
    letter-spacing: 0;
    margin: 0 0 16px;
    font-weight: 850;
  }

  .s-showcase-copy p {
    color: #475569;
    font-size: 16px;
    line-height: 1.58;
    margin: 0;
    max-width: 420px;
  }

  .s-showcase-visual {
    min-width: 0;
    border-radius: 28px;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(26, 94, 180, 0.14);
    box-shadow: 0 28px 70px rgba(15, 23, 42, 0.16);
  }

  .s-showcase-visual img {
    display: block;
    width: 100%;
    height: clamp(420px, 54vh, 650px);
    object-fit: cover;
    object-position: center;
  }

  .s-showcase-grid {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
  }

  .s-product-card {
    min-height: 92px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
  }

  .s-product-card span {
    font-size: 13px;
    font-weight: 850;
    letter-spacing: 0;
  }

  .s-product-card strong {
    color: #334155;
    font-size: 13px;
    line-height: 1.28;
    font-weight: 650;
  }

  .s-ping span { color: #16a34a; }
  .s-vox span { color: #7c3aed; }
  .s-rank span { color: #1a5eb4; }
  .s-erp span { color: #f6771f; }
}

@media (min-width: 1100px) and (max-width: 1340px) {
  #s-sso-showcase {
    padding: 28px;
  }

  .s-showcase-inner {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .s-showcase-copy {
    padding: 22px;
  }

  .s-showcase-copy h2 {
    font-size: 30px;
  }

  .s-showcase-visual img {
    height: 360px;
  }
}
