/* ============================================================
   KENTUCKY EDUCATION AND LABOR CABINET — DESIGN SYSTEM
   ------------------------------------------------------------
   Single source of truth for color, type, and layout chrome
   across all Cabinet applications.

   Do not edit per-application. To customize an app, override
   ONLY the CSS variables under :root in your page <style> block
   or supply per-app overrides via ky-app-config.js.
   ============================================================ */

:root {
  /* --- Brand palette (Team Kentucky / ELC) --- */
  --ky-navy:        #002855;
  --ky-navy-dark:   #001a3a;
  --ky-navy-light:  #003c7e;
  --ky-gold:        #FFC72C;
  --ky-gold-dark:   #E0A800;

  /* --- Neutrals --- */
  --ky-gray-50:     #f5f7fa;
  --ky-gray-100:    #eaeef2;
  --ky-gray-200:    #d6dde5;
  --ky-gray-400:    #8a96a3;
  --ky-gray-600:    #4a5562;
  --ky-gray-800:    #1f2937;

  /* --- Semantic --- */
  --ky-red:         #b91c1c;
  --ky-green:       #15803d;

  /* --- Typography --- */
  --ky-font-sans:   'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --ky-font-serif:  'Merriweather', Georgia, serif;

  /* --- Layout --- */
  --ky-max-width:   1280px;
  --ky-radius:      6px;
  --ky-radius-lg:   10px;
  --ky-shadow-sm:   0 2px 6px rgba(0, 40, 85, 0.25);
  --ky-shadow-lg:   0 20px 60px rgba(0, 0, 0, 0.35);
}

/* ===== Reset ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: var(--ky-font-sans);
    color: var(--ky-gray-800);
    background: var(--ky-gray-50);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    line-height: 1.5;    
    /*  height: 100vh;
    overflow: hidden;*/
}

/* ============================================================
   1. UTILITY BAR (top — ky.gov compliance strip)
   ============================================================ */
.ky-utility-bar {
  background: var(--ky-navy-dark);
  color: #cfd6e0;
  font-size: 12px;
  padding: 6px 0;
}
.ky-utility-bar__inner {
  max-width: var(--ky-max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ky-utility-bar a {
  color: var(--ky-gold);
  text-decoration: none;
  font-weight: 600;
}
.ky-utility-bar a:hover { text-decoration: underline; }
.ky-utility-bar__sep { color: #4a5e7a; }

/* ============================================================
   2. CABINET BANNER (the constant — same on every app)
   ============================================================ */
.ky-cabinet-banner {
  background: linear-gradient(135deg, var(--ky-navy) 0%, var(--ky-navy-light) 100%);
  color: white;
  border-bottom: 4px solid var(--ky-gold);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.ky-cabinet-banner__inner {
  max-width: var(--ky-max-width);
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 18px;
}
.ky-seal {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  background: var(--ky-gold);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  border: 3px solid white;
}
.ky-seal svg { width: 38px; height: 38px; }
.ky-cabinet-banner__text { flex: 1; }
.ky-cabinet-banner__eyebrow {
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ky-gold);
  font-weight: 700;
  margin-bottom: 2px;
}
.ky-cabinet-banner__title {
  font-family: var(--ky-font-serif);
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}
.ky-cabinet-banner__aux {
  text-align: right;
  font-size: 13px;
  line-height: 1.4;
}
.ky-cabinet-banner__aux strong { color: var(--ky-gold); }

/* ============================================================
   3. AGENCY SUB-BANNER (the variable — set per app)
   ============================================================ */
.ky-agency-banner {
  background: white;
  border-bottom: 1px solid var(--ky-gray-200);
}
.ky-agency-banner__inner {
  max-width: var(--ky-max-width);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ky-agency-banner__left {
  display: flex;
  align-items: center;
  gap: 14px;
}
.ky-agency-icon {
  width: 42px;
  height: 42px;
  background: var(--ky-navy);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ky-agency-icon svg {
  width: 24px;
  height: 24px;
  fill: var(--ky-gold);
}
.ky-agency-banner__name {
  font-size: 20px;
  font-weight: 600;
  color: var(--ky-navy);
}
.ky-agency-banner__sub {
  font-size: 12px;
  color: var(--ky-gray-600);
  margin-top: 1px;
}
.ky-agency-nav {
  display: flex;
  gap: 22px;
  font-size: 14px;
}
.ky-agency-nav a {
  color: var(--ky-gray-600);
  text-decoration: none;
  font-weight: 500;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  transition: all 0.15s;
}
.ky-agency-nav a:hover {
  color: var(--ky-navy);
  border-bottom-color: var(--ky-gold);
}

/* ============================================================
   4. MAIN CONTENT WRAPPER
   ============================================================ */
.ky-main {
   flex: 1;
   height: 100vh;
  /*  max-height: 100vh;      */  
    padding: 8px 4px;
    /*display: flex;*/
    /*flex-direction: column;*/
    /*overflow: hidden;*/ /* This kills the outer window scrollbar */
}


/*TODO:This selector is new. move to another file*/
.ky-main > .rz-layout {
    height: 100% !important;
}
.rz-body {
    /*height: 100vh !important;*/
    min-height: calc(100vh - 3.5rem);
}
 /*******end of new selectors*/

.ky-main--hero {
  /*display: flex;*/
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(rgba(0, 40, 85, 0.92), rgba(0, 40, 85, 0.85)),
    repeating-linear-gradient(45deg, transparent, transparent 60px, rgba(255,255,255,0.02) 60px, rgba(255,255,255,0.02) 120px);
  background-color: var(--ky-navy);
}
.ky-container {
  max-width: var(--ky-max-width);
  margin: 0 auto;
}

/* ============================================================
   5. LOGIN / SPLIT-CARD LAYOUT
   ============================================================ */
.ky-login {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: white;
  border-radius: var(--ky-radius-lg);
  overflow: hidden;
  box-shadow: var(--ky-shadow-lg);
}
.ky-login__info {
  background: linear-gradient(160deg, var(--ky-navy) 0%, var(--ky-navy-light) 100%);
  color: white;
  padding: 44px 40px;
  position: relative;
  overflow: hidden;
}
.ky-login__info::before {
  content: '';
  position: absolute;
  top: -80px;
  right: -80px;
  width: 240px;
  height: 240px;
  background: var(--ky-gold);
  opacity: 0.08;
  border-radius: 50%;
}
.ky-login__info::after {
  content: '';
  position: absolute;
  bottom: -60px;
  left: -60px;
  width: 180px;
  height: 180px;
  background: var(--ky-gold);
  opacity: 0.05;
  border-radius: 50%;
}
.ky-login__eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ky-gold);
  font-weight: 700;
  margin-bottom: 12px;
  position: relative;
}
.ky-login__heading {
  font-family: var(--ky-font-serif);
  font-size: 28px;
  line-height: 1.25;
  margin-bottom: 16px;
  position: relative;
}
.ky-login__body {
  font-size: 15px;
  line-height: 1.6;
  color: #d8e1ec;
  margin-bottom: 28px;
  position: relative;
}
.ky-feature-list {
  list-style: none;
  position: relative;
}
.ky-feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 0;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.ky-feature-list li:first-child { border-top: none; }
.ky-feature-list__check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  background: var(--ky-gold);
  color: var(--ky-navy);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 13px;
}
.ky-login__form {
  padding: 44px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ky-login__title {
  font-family: var(--ky-font-serif);
  font-size: 24px;
  color: var(--ky-navy);
  margin-bottom: 6px;
}
.ky-login__subtitle {
  color: var(--ky-gray-600);
  font-size: 14px;
  margin-bottom: 28px;
}

/* ============================================================
   6. FORM CONTROLS
   ============================================================ */
.ky-field { margin-bottom: 18px; }
.ky-field__label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ky-gray-800);
  margin-bottom: 6px;
}
.ky-input-wrap { position: relative; }
.ky-input-wrap > svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  fill: var(--ky-gray-400);
}
.ky-input {
  width: 100%;
  padding: 11px 12px 11px 38px;
  font-size: 15px;
  font-family: inherit;
  border: 1.5px solid var(--ky-gray-200);
  border-radius: var(--ky-radius);
  background: white;
  transition: all 0.15s;
}
.ky-input:focus {
  outline: none;
  border-color: var(--ky-navy);
  box-shadow: 0 0 0 3px rgba(0, 40, 85, 0.12);
}
.ky-toggle-pw {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ky-gray-600);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 8px;
}
.ky-toggle-pw:hover { color: var(--ky-navy); }
.ky-form-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  font-size: 13px;
}
.ky-form-row label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ky-gray-600);
  cursor: pointer;
}
.ky-link {
  color: var(--ky-navy);
  text-decoration: none;
  font-weight: 600;
}
.ky-link:hover {
  text-decoration: underline;
  color: var(--ky-navy-light);
}

/* ============================================================
   7. BUTTONS
   ============================================================ */
.ky-btn {
  font-family: inherit;
  font-weight: 700;
  border-radius: var(--ky-radius);
  cursor: pointer;
  transition: all 0.15s;
  letter-spacing: 0.3px;
}
.ky-btn--primary {
  width: 100%;
  padding: 12px;
  background: var(--ky-navy);
  color: white;
  border: none;
  font-size: 15px;
  box-shadow: var(--ky-shadow-sm);
}
.ky-btn--primary:hover {
  background: var(--ky-navy-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(0, 40, 85, 0.3);
}
.ky-btn--primary:active { transform: translateY(0); }
.ky-btn--secondary {
  width: 100%;
  padding: 11px;
  background: white;
  color: var(--ky-navy);
  border: 1.5px solid var(--ky-navy);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.ky-btn--secondary:hover { background: var(--ky-gray-50); }
.ky-btn--secondary svg { width: 16px; height: 16px; }

/* ============================================================
   8. DIVIDER + MISC
   ============================================================ */
.ky-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 22px 0;
  color: var(--ky-gray-400);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.ky-divider::before, .ky-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ky-gray-200);
}
.ky-prompt {
  text-align: center;
  margin-top: 22px;
  font-size: 13px;
  color: var(--ky-gray-600);
}
.ky-notice {
  background: #fff8e1;
  border-left: 3px solid var(--ky-gold);
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ky-gray-800);
  border-radius: 4px;
  margin-bottom: 22px;
  line-height: 1.5;
}
.ky-notice strong { color: var(--ky-navy); }
.ky-notice--info {
  background: #e8f0fa;
  border-left-color: var(--ky-navy);
}
.ky-notice--warn {
  background: #fff8e1;
  border-left-color: var(--ky-gold);
}
.ky-notice--error {
  background: #fef2f2;
  border-left-color: var(--ky-red);
}

/* ============================================================
   9. FOOTER
   ============================================================ */
.ky-footer {
  background: var(--ky-navy-dark);
  color: #cfd6e0;
  padding: 24px;
  font-size: 13px;
}
.ky-footer__inner {
  max-width: var(--ky-max-width);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ky-footer a {
  color: var(--ky-gold);
  text-decoration: none;
  margin: 0 8px;
}
.ky-footer a:hover { text-decoration: underline; }

/* ============================================================
   10. RESPONSIVE
   ============================================================ */
@media (max-width: 820px) {
  .ky-login { grid-template-columns: 1fr; }
  .ky-login__info { padding: 32px 28px; }
  .ky-login__form { padding: 32px 28px; }
  .ky-agency-nav { display: none; }
  .ky-cabinet-banner__aux { display: none; }
  .ky-cabinet-banner__title { font-size: 18px; }
}
