/* ============================================================
   Página welcome — branding UNGRD / SNIGRD (PatternFly v5)
   ============================================================ */

@font-face {
  font-family: 'Nunito Sans Variable';
  font-style: normal; font-display: swap; font-weight: 200 900;
  src: url('../fonts/nunito-sans-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Nunito Sans Variable';
  font-style: normal; font-display: swap; font-weight: 200 900;
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
  src: url('../fonts/nunito-sans-latin-ext-wght-normal.woff2') format('woff2-variations');
}

:root {
  --ungrd-navy: #0f2d5b;
  --ungrd-navy-dark: #0b2349;
  --ungrd-gold: #ffc300;
  --ungrd-font: 'Nunito Sans Variable', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body, .pf-v5-c-title, h1, h2, h3 { font-family: var(--ungrd-font); }

/* Fondo institucional navy (reemplaza la imagen de fondo por defecto) */
.pf-v5-c-background-image {
  background-image: none !important;
  background: linear-gradient(150deg, #0f2d5b 0%, #0b2349 55%, #081a37 100%) !important;
}

/* Brand (símbolo SNIGRD blanco, centrado) */
.pf-v5-c-login__header .pf-v5-c-brand,
img.kc-brand {
  width: 132px;
  height: 132px;
  max-width: 132px;
  margin: 0 auto 12px;
  display: block;
}

.pf-v5-c-login__main {
  border-top: 4px solid var(--ungrd-gold);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(15, 45, 91, 0.25);
}

.pf-v5-c-title { color: var(--ungrd-navy); }

/* Botón primario navy */
.pf-v5-c-button.pf-m-primary {
  --pf-v5-c-button--m-primary--BackgroundColor: var(--ungrd-navy);
  --pf-v5-c-button--m-primary--hover--BackgroundColor: var(--ungrd-navy-dark);
  --pf-v5-c-button--m-primary--active--BackgroundColor: var(--ungrd-navy-dark);
}

a { color: #0943b5; }

:focus-visible { outline: 2px solid var(--ungrd-gold) !important; outline-offset: 2px !important; }

/* ============================================================
   Encabezado institucional (GOV.CO bar + lockup SNIGRD/UNGRD)
   ============================================================ */
.ungrd-govco-bar {
  position: relative; z-index: 10;
  display: flex; align-items: center;
  height: 32px; padding-inline: 1rem;
  background: var(--cobalt, #0943b5);
}
.ungrd-govco-brand { display: inline-flex; align-items: center; opacity: .95; }
.ungrd-govco-brand img { display: block; height: 18px; width: auto; }
.ungrd-instheader {
  position: relative; z-index: 10;
  display: flex; align-items: center; gap: 1.25rem;
  height: 68px; padding-inline: 1.5rem;
  background: #fff; border-bottom: 1px solid #e3e7ee;
}
.ungrd-lockup { display: inline-flex; align-items: center; gap: 1.1rem; text-decoration: none; }
.ungrd-lockup-snigrd { height: 44px; width: auto; display: block; }
.ungrd-lockup-ungrd  { height: 44px; width: auto; display: block; }
.ungrd-lockup-div { width: 1px; height: 42px; background: #c9d0da; }

/* El fondo navy queda detrás del encabezado; la tarjeta se centra debajo */
.pf-v5-c-background-image { z-index: 0; }
.ungrd-welcome-login {
  position: relative; z-index: 5;
  min-height: calc(100vh - 100px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: clamp(2rem, 6vh, 4.5rem) 1rem 2rem;
}
.ungrd-welcome-container { display: block; width: 100%; max-width: 760px; }

/* ============================================================
   Hero de bienvenida (estado normal)
   ============================================================ */
.ungrd-hero { padding: clamp(1.75rem, 4vw, 2.75rem) clamp(1.5rem, 4vw, 2.5rem); }
.ungrd-hero__body { text-align: left; }

.ungrd-hero__eyebrow {
  margin: 0 0 .75rem;
  font-size: .8rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ungrd-navy);
  display: inline-block;
  padding-bottom: .35rem;
  border-bottom: 3px solid var(--ungrd-gold);
}
.ungrd-hero__title { margin: 0 0 1rem; line-height: 1.15; }
.ungrd-hero__desc {
  margin: 0 0 1rem;
  color: #3f4d63; font-size: 1.05rem; line-height: 1.65;
}
.ungrd-hero__desc strong { color: var(--ungrd-navy); }
.ungrd-hero__hint {
  margin: 0 0 1.75rem;
  color: #62708a; font-size: .92rem; line-height: 1.55;
}

.ungrd-hero__actions {
  display: flex; flex-wrap: wrap; gap: .75rem;
}
.ungrd-hero__btn {
  width: auto; padding-inline: 1.4rem;
  font-weight: 700;
}
/* Botón secundario: contorno navy */
.pf-v5-c-button.pf-m-secondary.ungrd-hero__btn {
  --pf-v5-c-button--m-secondary--Color: var(--ungrd-navy);
  --pf-v5-c-button--m-secondary--BorderColor: var(--ungrd-navy);
  --pf-v5-c-button--m-secondary--hover--Color: var(--ungrd-navy-dark);
  --pf-v5-c-button--m-secondary--hover--BorderColor: var(--ungrd-navy-dark);
  color: var(--ungrd-navy); border: 1px solid var(--ungrd-navy);
  background: transparent;
}
.pf-v5-c-button.pf-m-secondary.ungrd-hero__btn:hover { background: rgba(15, 45, 91, .06); }

.ungrd-hero__foot {
  margin: 1.25rem 0 0;
  text-align: center;
  color: rgba(255, 255, 255, .72);
  font-size: .82rem;
}

@media (max-width: 480px) {
  .ungrd-hero__actions { flex-direction: column; }
  .ungrd-hero__btn { width: 100%; text-align: center; }
}
