/* Shared RFT authentication and authorization UI */
.rft-auth-widget{
  display:flex;
  align-items:center;
  gap:.55rem;
  margin-left:auto;
  padding:.35rem .45rem .35rem .7rem;
  border:1px solid rgba(11,18,32,.12);
  border-radius:999px;
  background:rgba(255,255,255,.94);
  box-shadow:0 1px 8px rgba(11,18,32,.06);
  color:#0b1220;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
}
.rft-auth-identity{display:flex;flex-direction:column;min-width:0;line-height:1.15}
.rft-auth-user{max-width:260px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.78rem;font-weight:900}
.rft-auth-role{font-size:.68rem;color:#5b6475;font-weight:800;margin-top:.1rem}
.rft-auth-action{
  display:inline-flex;align-items:center;justify-content:center;
  border:0;border-radius:999px;padding:.48rem .7rem;
  background:#2563eb;color:#fff!important;text-decoration:none!important;
  font-size:.75rem;font-weight:900;white-space:nowrap;cursor:pointer;
}
.rft-auth-action:hover{background:#1d4ed8}
.rft-auth-local{background:#fff8d8;border-color:rgba(183,121,31,.25)}
.rft-auth-local .rft-auth-action{background:#5b6475}
[data-rft-hidden="true"]{display:none!important}
.rft-auth-accountWrap{position:relative}
.rft-auth-trigger{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:999px;border:1px solid rgba(11,18,32,.14);background:#fff;color:#5b6475;cursor:pointer;padding:0}
.rft-auth-trigger:hover{border-color:#2563eb;color:#2563eb}
.rft-auth-trigger:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}
.rft-auth-trigger[aria-expanded="true"]{background:#eaf2ff;color:#1d4ed8;border-color:#1d4ed8}
.rft-auth-menu{position:absolute;top:calc(100% + 8px);right:0;min-width:180px;background:#fff;border:1px solid rgba(11,18,32,.12);border-radius:9px;box-shadow:0 8px 22px rgba(11,18,32,.14);padding:.35rem;z-index:70}
.rft-auth-menuitem{display:block;width:100%;text-align:left;border:0;background:transparent!important;color:#0b1220!important;font:inherit;font-weight:800!important;font-size:.82rem;border-radius:6px;padding:.5rem .6rem;cursor:pointer;text-decoration:none!important}
.rft-auth-menuitem:hover{background:#f2f6ff!important}
.rft-auth-menudivider{height:1px;background:rgba(11,18,32,.1);margin:.3rem .2rem}
.rft-auth-menunote{padding:.45rem .6rem;font-size:.74rem;color:#5b6475;font-weight:700;line-height:1.4}
.rft-chart-empty{
  min-height:100%;display:grid;place-items:center;text-align:center;
  color:#667085;font-weight:850;font-size:.9rem;padding:1rem;
}
.rft-legend-empty{color:rgba(255,255,255,.78);font-size:.82rem;font-weight:800;padding:.45rem 0}

/* Sign-in and access-denied pages */
.rft-auth-page{
  min-height:100vh;margin:0;display:grid;place-items:center;padding:1.25rem;
  font-family:system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,sans-serif;
  color:#0b1220;
  background:#f8fafc;
}
.rft-auth-shell{width:min(1040px,100%);display:grid;grid-template-columns:1.05fr .95fr;overflow:hidden;border:1px solid rgba(11,18,32,.10);border-radius:12px;background:#fff;box-shadow:0 4px 14px rgba(11,18,32,.09)}
.rft-auth-hero{padding:clamp(1.5rem,5vw,3.5rem);background:#1d4ed8;color:#fff;position:relative;overflow:hidden;display:flex;flex-direction:column}
.rft-auth-mark{width:58px;height:58px;border-radius:10px;background:#fff;display:grid;place-items:center;box-shadow:0 3px 12px rgba(0,0,0,.1);padding:7px;flex:none}
.rft-auth-mark img{width:100%;height:100%;object-fit:contain;display:block}
.rft-auth-kicker{margin:2.2rem 0 .4rem;text-transform:uppercase;letter-spacing:.12em;font-size:.72rem;font-weight:900;opacity:.82}
.rft-auth-hero h1{font-size:clamp(2rem,5vw,3.25rem);line-height:1.05;letter-spacing:-.045em;margin:0;max-width:560px}
.rft-auth-hero p{font-size:1rem;line-height:1.6;max-width:560px;opacity:.9}
.rft-auth-hero .rft-auth-lead{font-size:1.05rem;font-weight:600;opacity:.96;margin-top:1rem}
.rft-auth-hero .rft-auth-sub{font-size:.88rem;line-height:1.6;opacity:.78;margin-top:.6rem;max-width:480px}
.rft-auth-seal{margin-top:auto;padding-top:2.2rem;display:flex;align-items:center;gap:.65rem;opacity:.85}
.rft-auth-seal img{width:34px;height:34px;object-fit:contain;flex:none}
.rft-auth-seal span{font-size:.7rem;line-height:1.35;font-weight:650;letter-spacing:.01em;max-width:300px}
.rft-auth-panel{padding:clamp(1.5rem,5vw,3.5rem);display:flex;flex-direction:column;justify-content:center}
.rft-auth-panel h2{font-size:1.55rem;letter-spacing:-.03em;margin:0 0 .55rem}
.rft-auth-panel h3{font-size:.78rem;text-transform:uppercase;letter-spacing:.07em;color:#667085;font-weight:850;margin:0 0 .6rem}
.rft-auth-panel p{color:#5b6475;line-height:1.55;margin:.25rem 0 1.15rem}
.rft-auth-helper{color:#5b6475;line-height:1.55;margin:.25rem 0 1.3rem;font-size:.92rem}
.rft-signin-button{display:flex;align-items:center;justify-content:center;gap:.65rem;width:100%;padding:.85rem 1rem;border-radius:8px;background:#2563eb;color:#fff!important;text-decoration:none;font-weight:950;box-shadow:0 3px 10px rgba(37,99,235,.1)}
.rft-signin-button:hover{background:#1d4ed8}
.rft-signin-button:focus-visible{outline:2px solid #1d4ed8;outline-offset:3px}
.rft-ms-icon{width:18px;height:18px;display:grid;grid-template-columns:1fr 1fr;gap:2px;flex:none}
.rft-ms-icon i{display:block;background:#fff;border-radius:1px}
.rft-auth-divider{display:flex;align-items:center;gap:.6rem;margin:1.1rem 0;color:#98a2b3;font-size:.7rem;font-weight:800;text-transform:uppercase;letter-spacing:.08em}
.rft-auth-divider::before,.rft-auth-divider::after{content:"";flex:1;height:1px;background:rgba(11,18,32,.10)}
.rft-public-cta{margin:0 0 1.3rem}
.rft-public-cta p{margin:0 0 .55rem;font-size:.85rem;font-weight:700;color:#475467}
.rft-public-form-button{display:flex;align-items:center;justify-content:center;width:100%;padding:.72rem 1rem;border-radius:8px;border:1.5px solid rgba(37,99,235,.35);background:#fff;color:#1d4ed8!important;text-decoration:none!important;font-weight:850;font-size:.9rem}
.rft-public-form-button:hover{background:#f5f9ff;border-color:#1d4ed8}
.rft-public-form-button:focus-visible{outline:2px solid #1d4ed8;outline-offset:3px}
.rft-access-section{margin:1.5rem 0 0}
.rft-access-list{list-style:none;padding:0;margin:0;display:grid;gap:.4rem}
.rft-access-list li{padding:.55rem .7rem;border:1px solid rgba(11,18,32,.08);border-radius:7px;background:#f8faff;display:flex;flex-wrap:wrap;align-items:baseline;gap:.35rem}
.rft-access-list strong{font-size:.8rem;color:#0b1220}
.rft-access-list span{color:#667085;font-size:.76rem}
.rft-trust-panel{margin:1.2rem 0 0;padding:.9rem 1rem;border-radius:8px;background:#f4f8ff;border:1px solid rgba(37,99,235,.12)}
.rft-trust-panel h3{color:#1d4ed8}
.rft-trust-list{list-style:none;margin:0;padding:0;display:grid;gap:.4rem;font-size:.82rem;color:#344054;font-weight:600}
.rft-trust-list li{display:flex;align-items:flex-start;gap:.5rem}
.rft-trust-list li::before{content:"\2713";color:#16a34a;font-weight:1000;flex:none;line-height:1.4}
.rft-dev-notice{margin-top:1.1rem;padding:.7rem .8rem;border:1px dashed rgba(183,121,31,.4);border-radius:7px;background:#fff8d8;color:#7a5210;font-size:.74rem;font-weight:700;line-height:1.5}
.rft-dev-notice::before{content:"Developer notice — ";text-transform:uppercase;letter-spacing:.03em;font-size:.68rem}
.rft-auth-status{margin-top:1rem;padding:.72rem .8rem;border-radius:7px;background:#f2f4f7;color:#475467;font-size:.8rem;font-weight:750}
.rft-auth-status.error{background:#fff0f0;color:#dc2626}
.rft-auth-foot{margin-top:1rem;color:#667085;font-size:.75rem;line-height:1.45}
.rft-denied-code{font-size:4.5rem;line-height:1;font-weight:1000;letter-spacing:-.08em;color:#2563eb;margin:0 0 .7rem}
@media(max-width:980px) and (min-width:761px){.rft-auth-shell{grid-template-columns:.85fr 1.15fr}}
@media(max-width:760px){.rft-auth-shell{grid-template-columns:1fr}.rft-auth-hero{padding:1.5rem}.rft-auth-seal{margin-top:1.4rem;padding-top:0}.rft-auth-kicker{margin-top:1.25rem}.rft-auth-panel{padding:1.5rem}.rft-auth-widget{width:100%;justify-content:space-between;margin-left:0}.rft-auth-user{max-width:170px}}


/* Public request route */

.rft-public-notice{
  margin:0 0 1rem;padding:.8rem .95rem;border:1px solid rgba(37,99,235,.18);
  border-radius:8px;background:#fff;color:#344054;font-weight:750;
}
.rft-public-notice strong{color:#1d4ed8}
.rft-manual-entry-note{
  margin:.2rem 0 .85rem;padding:.72rem .82rem;border-radius:7px;
  background:#f8faff;border:1px solid rgba(11,18,32,.09);color:#5b6475;font-size:.82rem;font-weight:750;
}

.rft-public-form-link{display:inline-block;margin-top:1rem;color:#1d4ed8;font-weight:900;text-decoration:none}.rft-public-form-link:hover{text-decoration:underline}
.rft-public-form-link:focus-visible{outline:2px solid #1d4ed8;outline-offset:2px}

/* Simple clean RFT login screen */

.rft-login-simple,
.rft-login-simple * {
  box-sizing: border-box;
}

.rft-login-simple {
  min-height: 100vh;
  margin: 0;
  padding: 1.5rem;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    /* dark gradient overlay — top-to-bottom, heavier at bottom */
    linear-gradient(
      160deg,
      rgba(10, 18, 40, 0.52) 0%,
      rgba(10, 18, 40, 0.38) 45%,
      rgba(10, 18, 40, 0.62) 100%
    ),
    /* LA skyline photo */
    url('img/la-skyline.jpg') center center / cover no-repeat;
}

/* subtle animated light sweep across the photo for polish */
.rft-login-simple::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 60% at 30% 20%,
    rgba(255, 200, 100, 0.10),
    transparent 65%
  );
  pointer-events: none;
}

.rft-login-simple .rft-auth-shell-simple {
  width: min(520px, 100%);
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(28px) saturate(1.6);
  -webkit-backdrop-filter: blur(28px) saturate(1.6);
  box-shadow:
    0 32px 80px rgba(10, 18, 40, 0.38),
    0 0 0 1px rgba(255, 255, 255, 0.14) inset;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

.rft-login-simple .rft-auth-panel-simple {
  width: 100%;
  padding: 3rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.rft-login-simple .rft-auth-mark-simple {
  width: 90px;
  height: 90px;
  margin: 0 auto 1.5rem;
  border-radius: 22px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.10);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.18), 0 0 0 1px rgba(255,255,255,0.6) inset;
  padding: 10px;
}

.rft-login-simple .rft-auth-mark-simple img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.rft-login-simple .rft-auth-kicker {
  margin: 0 0 0.75rem;
  color: #5b7cfa;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.rft-login-simple h1 {
  width: 100%;
  max-width: 440px;
  margin: 0;
  color: #0f172a;
  font-size: clamp(2.35rem, 6vw, 3.35rem);
  line-height: 1.05;
  letter-spacing: -0.065em;
  font-weight: 950;
}

.rft-login-simple .rft-auth-helper {
  width: 100%;
  max-width: 420px;
  margin: 1.4rem auto 2rem;
  color: #64748b;
  font-size: 1.12rem;
  line-height: 1.45;
  font-weight: 750;
}

.rft-login-simple .rft-signin-button {
  width: 100%;
  max-width: 420px;
  min-height: 62px;
  margin: 0 auto;
  border-radius: 16px;
  background: #2563eb;
  color: #ffffff !important;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border: 0;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 950;
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.24);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.rft-login-simple .rft-signin-button:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(37, 99, 235, 0.28);
}

.rft-login-simple .rft-signin-button:focus-visible {
  outline: 3px solid rgba(37, 99, 235, 0.28);
  outline-offset: 4px;
}

.rft-login-simple .rft-ms-icon {
  width: 20px;
  height: 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  flex: none;
}

.rft-login-simple .rft-ms-icon i {
  display: block;
  background: #ffffff;
  border-radius: 2px;
}

.rft-login-simple .rft-auth-status,
.rft-login-simple .rft-dev-notice,
.rft-login-simple .rft-auth-divider,
.rft-login-simple .rft-public-cta,
.rft-login-simple .rft-public-form-button,
.rft-login-simple .rft-auth-foot,
.rft-login-simple .rft-access-section,
.rft-login-simple .rft-trust-panel,
.rft-login-simple .rft-auth-hero,
.rft-login-simple .rft-auth-sub,
.rft-login-simple .rft-auth-seal {
  display: none !important;
}

@media (max-width: 560px) {
  .rft-login-simple {
    padding: 1rem;
  }

  .rft-login-simple .rft-auth-panel-simple {
    padding: 2.25rem 1.5rem;
  }

  .rft-login-simple .rft-auth-mark-simple {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }

  .rft-login-simple h1 {
    font-size: 2.35rem;
  }

  .rft-login-simple .rft-auth-helper {
    font-size: 1rem;
  }

  .rft-login-simple .rft-signin-button {
    min-height: 58px;
    font-size: 1.05rem;
  }
}
