/* DataHex Keycloak login theme — light mode, single brand accent */

@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist';
  src: url('../fonts/Geist-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Medium.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('../fonts/GeistMono-Bold.woff2') format('woff2');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --dh-bg: #ffffff;
  --dh-surface: #ffffff;
  --dh-soft: #f6f7f8;
  --dh-border: #e7e7e7;
  --dh-text: #18181b;
  --dh-muted: #6b7280;
  --dh-primary: #002147;     /* logo square, headings emphasis */
  --dh-accent: #2D97BD;      /* brand accent */
  --dh-accent-ink: #ffffff;
  --dh-danger: #b91c1c;
  --dh-danger-bg: #fef2f2;
  --dh-radius: 8px;
  --dh-input-radius: 6px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
}

body.dh-body {
  font-family: 'Geist', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  color: var(--dh-text);
  background: var(--dh-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Split-screen shell */
.dh-shell {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}

/* Hero panel */
.dh-hero {
  background: var(--dh-soft);
  border-right: 1px solid var(--dh-border);
  padding: 56px 48px;
  position: relative;
  overflow: hidden;
}
.dh-hero::after {
  content: '';
  position: absolute;
  top: -30%;
  right: -50%;
  width: 90%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(45,151,189,0.18), transparent 60%);
  pointer-events: none;
}
.dh-hero-inner {
  position: relative;
  max-width: 480px;
}
.dh-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dh-logo {
  width: 32px;
  height: 32px;
  display: block;
}
.dh-wordmark {
  height: 22px;
  display: block;
}
.dh-rule {
  width: 32px;
  height: 2px;
  background: var(--dh-accent);
  margin: 40px 0 16px;
}
.dh-hero-title {
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 12px;
  color: var(--dh-text);
}
.dh-hero-sub {
  font-size: 16px;
  color: var(--dh-muted);
  margin: 0;
  max-width: 36ch;
}

/* Form panel */
.dh-form-panel {
  background: var(--dh-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 48px;
}
.dh-form-inner {
  width: 100%;
  max-width: 360px;
}
.dh-page-title {
  font-size: 22px;
  font-weight: 600;
  margin: 0 0 24px;
  color: var(--dh-text);
}
.dh-attempted-user {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--dh-soft);
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-input-radius);
  padding: 10px 12px;
  margin: 0 0 16px;
  font-size: 14px;
}
.dh-required-legend {
  font-size: 12px;
  color: var(--dh-muted);
  margin: 0 0 12px;
}
.dh-required-star {
  color: var(--dh-danger);
}
.dh-alert {
  border-radius: var(--dh-input-radius);
  padding: 10px 12px;
  margin: 0 0 16px;
  font-size: 14px;
}
.dh-alert-danger {
  background: var(--dh-danger-bg);
  color: var(--dh-danger);
  border-left: 3px solid var(--dh-danger);
}
.dh-alert-success {
  background: rgba(45,151,189,0.08);
  color: var(--dh-primary);
  border-left: 3px solid var(--dh-accent);
}
.dh-alert-info,
.dh-alert-warning {
  background: var(--dh-soft);
  color: var(--dh-text);
  border-left: 3px solid var(--dh-border);
}

/* Footer band (info / social providers) */
.dh-footer-band {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--dh-border);
  font-size: 14px;
  color: var(--dh-muted);
  text-align: center;
}
.dh-footer-band:empty {
  display: none;
  border-top: none;
  margin-top: 0;
  padding-top: 0;
}

/* Social provider buttons (Google, etc.) */
.dh-footer-band ul,
.dh-footer-band ol {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
}
.dh-footer-band li + li {
  margin-top: 6px;
}
.dh-footer-band a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 10px 16px;
  background: #fff;
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-input-radius);
  color: var(--dh-text);
  font-weight: 500;
  text-decoration: none;
  transition: background 120ms, border-color 120ms;
}
.dh-footer-band a:hover {
  background: var(--dh-soft);
  border-color: #d4d4d8;
  text-decoration: none;
}
.dh-footer-band a img,
.dh-footer-band a svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}
.dh-link {
  color: var(--dh-accent);
  text-decoration: none;
  font-weight: 500;
}
.dh-link:hover {
  text-decoration: underline;
}
.dh-link-block {
  display: block;
  text-align: center;
  margin-top: 12px;
}

/* PatternFly v5 overrides — restyle the form fields the parent renders */
.dh-form-body .pf-v5-c-form__group {
  margin-bottom: 14px;
}
.dh-form-body .pf-v5-c-form__group-label,
.dh-form-body .pf-v5-c-form__label {
  font-size: 13px;
  font-weight: 500;
  color: var(--dh-text);
  margin-bottom: 4px;
  padding-bottom: 0;
}
.dh-form-body .pf-v5-c-form-control,
.dh-form-body input[type="text"],
.dh-form-body input[type="email"],
.dh-form-body input[type="password"] {
  width: 100%;
  background: var(--dh-surface);
  border: 1px solid var(--dh-border);
  border-radius: var(--dh-input-radius);
  padding: 10px 12px;
  font-size: 15px;
  font-family: inherit;
  color: var(--dh-text);
  transition: border-color 120ms, box-shadow 120ms;
}
.dh-form-body input[type="text"]:focus,
.dh-form-body input[type="email"]:focus,
.dh-form-body input[type="password"]:focus,
.dh-form-body .pf-v5-c-form-control:focus-within {
  outline: none;
  border-color: var(--dh-accent);
  box-shadow: 0 0 0 3px rgba(45,151,189,0.25);
}

/* Primary submit button */
.dh-form-body input[type="submit"],
.dh-form-body button[type="submit"],
.dh-form-body .pf-v5-c-button.pf-m-primary {
  display: block;
  width: 100%;
  background: var(--dh-accent);
  color: var(--dh-accent-ink);
  border: none;
  border-radius: var(--dh-input-radius);
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  margin-top: 8px;
  transition: background 120ms;
}
.dh-form-body input[type="submit"]:hover,
.dh-form-body button[type="submit"]:hover,
.dh-form-body .pf-v5-c-button.pf-m-primary:hover {
  background: #2387a9;
}
.dh-form-body input[type="submit"]:focus-visible,
.dh-form-body button[type="submit"]:focus-visible {
  outline: 3px solid rgba(45,151,189,0.4);
  outline-offset: 2px;
}

/* "Forgot password" / secondary links inside the form */
.dh-form-body a {
  color: var(--dh-accent);
  text-decoration: none;
  font-weight: 500;
}
.dh-form-body a:hover {
  text-decoration: underline;
}

/* Checkbox (rememberMe) */
.dh-form-body .pf-v5-c-check {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 8px 0;
  font-size: 14px;
  color: var(--dh-muted);
}

/* Mobile: stack hero on top */
@media (max-width: 1023px) {
  .dh-shell {
    grid-template-columns: 1fr;
    grid-template-rows: auto 1fr;
  }
  .dh-hero {
    padding: 20px 24px;
    border-right: none;
    border-bottom: 1px solid var(--dh-border);
  }
  .dh-rule,
  .dh-hero-title,
  .dh-hero-sub {
    display: none;
  }
  .dh-hero::after {
    display: none;
  }
  .dh-form-panel {
    padding: 32px 24px 56px;
    align-items: flex-start;
  }
}
