/* =============================================================
   Nessie – custom Keycloak login theme
   Dark navy + dot-grid, NASA blue header, red accent bar.
   Appended after keycloak/login/css/login.css – overrides only.
   ============================================================= */

/* Fonts -------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --nasa-blue:      #0B3D91;
  --nasa-blue-dark: #061F4A;
  --nasa-red:       #FC3D21;
  --nasa-red-dark:  #DD361C;
  --navy:           #07111E;
  --alt-blue:       #02BFE7;
}

html, body,
.login-pf,
.login-pf-page {
  font-family: 'Inter', 'Public Sans', 'Open Sans', sans-serif !important;
}

/* Full-page background ----------------------------------------- */
.login-pf-page {
  background-color: var(--navy) !important;
  background-image: radial-gradient(circle, rgba(11,61,145,0.22) 1px, transparent 1px) !important;
  background-size: 28px 28px !important;
  min-height: 100vh;
}

/* NASA header bar ---------------------------------------------- */
.login-pf-page-header {
  width: 100%;
  background: var(--nasa-blue) !important;
  padding: 0 !important;
  margin: 0 0 0 0 !important;
  border-bottom: 4px solid var(--nasa-red) !important;
  text-align: left !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

#kc-header-wrapper {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex !important;
  align-items: center;
  gap: 16px;
  color: #fff !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  text-shadow: none !important;
  background: transparent !important;
}

.nessie-logo-bar {
  display: flex;
  align-items: center;
  gap: 16px;
}

.nessie-logo-bar img.nessie-meatball {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
}

.nessie-logo-bar .nessie-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  display: block;
  line-height: 1.2;
}

.nessie-logo-bar .nessie-subtitle {
  color: rgba(255, 255, 255, 0.70);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  display: block;
  margin-top: 2px;
}

/* Form card ---------------------------------------------------- */
.card-pf {
  background: #fff !important;
  border-radius: 8px !important;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5) !important;
  margin-top: 36px !important;
  margin-bottom: 28px !important;
  border: none !important;
}

/* Page / form title -------------------------------------------- */
.login-pf-header h1,
#kc-page-title {
  color: var(--nasa-blue) !important;
  font-weight: 700 !important;
  font-size: 1.2rem !important;
}

/* Primary button ----------------------------------------------- */
.pf-c-button.pf-m-primary,
#kc-login {
  background-color: var(--nasa-blue) !important;
  border-color: var(--nasa-blue) !important;
  font-weight: 600 !important;
}
.pf-c-button.pf-m-primary:hover,
#kc-login:hover {
  background-color: var(--nasa-blue-dark) !important;
  border-color: var(--nasa-blue-dark) !important;
}

/* Links -------------------------------------------------------- */
#kc-content a,
#kc-info a,
.login-pf-signup a {
  color: var(--nasa-blue) !important;
}
#kc-content a:hover,
#kc-info a:hover {
  color: var(--nasa-blue-dark) !important;
  text-decoration: underline;
}

/* ---- MFA notice card ----------------------------------------- */
.nessie-mfa-notice {
  background: #fff8e1;
  border: 1px solid #f9a825;
  border-left: 5px solid #f9a825;
  border-radius: 6px;
  padding: 14px 16px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #3d2800;
  line-height: 1.5;
}

.nessie-mfa-notice .mfa-notice-title {
  font-weight: 700;
  font-size: 0.92rem;
  color: #6d4200;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.nessie-mfa-notice .mfa-notice-title .fa {
  font-size: 1rem;
  color: #c97000;
}

.nessie-mfa-notice ul {
  margin: 6px 0 0 0;
  padding-left: 18px;
}

.nessie-mfa-notice ul li {
  margin-bottom: 4px;
}
