/* ============================================================================
   CS Bootcamp — Legacy Staff Portal
   Styled with the official CSYC brand kit.

   The kit ships as a Tailwind v4 / shadcn theme (src/styles.css + semantic
   utility classes). This portal is server-rendered Flask + plain CSS, so the
   TOKENS are ported rather than the framework — same palette, same gradients,
   same shadow, same typeface. Rebuilding a deliberately-vulnerable legacy
   portal as a React SPA would add a build step and a bundle for no benefit.

   Artwork constraint that drives the whole layout: csyc-wordmark.png,
   nca-logo.png and ncsa-logo.png are PURE WHITE on transparent. They are only
   legible on dark surfaces — hence the dark header, dark sign-in panel and dark
   footer. csyc-shield.png is full-colour and works anywhere.
   ========================================================================= */

@import url("/static/fonts/inter.css");

:root{
  /* --- CSYC raw brand, verbatim from the kit ---------------------------- */
  --csyc-midnight-navy:#0a1e3a;
  --csyc-deep-blue:#295b98;
  --csyc-teal:#00b1d5;
  --csyc-aqua:#35d1ec;
  --csyc-steel:#B5C5CB;
  --csyc-off-white:#F4F8F7;
  --csyc-ink:#061428;
  --csyc-gradient-main:linear-gradient(110deg,#00b1d5 0%,#295b98 55%,#0a1e3a 100%);
  --csyc-gradient-dark:linear-gradient(135deg,#061428 0%,#0a1e3a 55%,#295b98 100%);
  --csyc-shadow-soft:0 18px 45px rgba(10,30,58,.28);

  /* --- derived surface tokens ------------------------------------------ */
  --bg:var(--csyc-off-white);
  --surface:#ffffff;
  --text:var(--csyc-ink);
  --text-muted:#5b6b7c;
  --border:#dbe3ea;
  --radius:.75rem;              /* kit --radius */

  --font-sans:"Inter","IBM Plex Sans Arabic",system-ui,-apple-system,"Segoe UI",sans-serif;
  --font-mono:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

*,*::before,*::after{box-sizing:border-box}
body{
  margin:0;background:var(--bg);color:var(--text);
  font:15px/1.6 var(--font-sans);
  -webkit-font-smoothing:antialiased;
}
.wrap{max-width:1080px;margin:0 auto;padding:0 22px}
a{color:var(--csyc-deep-blue);text-decoration:none}
a:hover{text-decoration:underline}

/* ---------------------------------------------------------------- header */
.topbar{
  background:var(--csyc-gradient-dark);
  color:#fff;
  border-bottom:1px solid rgba(0,177,213,.28);
}
.topbar-in{display:flex;align-items:center;justify-content:space-between;min-height:64px;gap:20px}
.brand{display:flex;align-items:center;gap:13px;color:#fff}
.brand:hover{text-decoration:none}
.brand img.shield{height:38px;width:auto;display:block}   /* kit: 32-40px */
.brand-divider{width:1px;height:30px;background:rgba(181,197,203,.32)}
.brand-text{display:flex;flex-direction:column;line-height:1.2}
.brand-text b{font-size:14.5px;font-weight:700;letter-spacing:.3px}
.brand-text small{font-size:11.5px;font-weight:400;color:var(--csyc-steel);letter-spacing:.3px}
.topnav{display:flex;gap:22px;font-size:14px;align-items:center}
.topnav a{color:#dbe7f0;font-weight:500}
.topnav a:hover{color:var(--csyc-aqua);text-decoration:none}
.topnav a.muted{color:#8ea3b8}

/* --------------------------------------------------------------- notice */
.notice{
  background:#fff6e0;border-bottom:1px solid #f0dcaa;color:#6d5310;font-size:13.5px;
}
.notice .wrap{padding:10px 22px}
.notice a{color:#8a5a00;text-decoration:underline}

main.wrap{padding-top:28px;padding-bottom:48px}

/* ---------------------------------------------------------------- cards */
.card{
  background:var(--surface);border:1px solid var(--border);
  border-radius:var(--radius);padding:24px 26px;margin-bottom:20px;
  box-shadow:0 1px 2px rgba(10,30,58,.05);
}
.page-h{font-size:22px;font-weight:700;margin:2px 0 5px;letter-spacing:-.2px}
.crumb{color:var(--text-muted);font-size:13.5px;margin:0 0 20px}
.sub{color:var(--text-muted);font-size:13.5px;margin:.2rem 0 1rem}
h2{font-size:16px;font-weight:650;margin:0 0 15px}
h3{font-size:13.5px;font-weight:650;margin:24px 0 9px;color:#3d4f61;
   text-transform:uppercase;letter-spacing:.6px}

/* -------------------------------------------------------------- sign-in */
.signin-wrap{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start;margin-top:16px}
.signin h1{font-size:21px;font-weight:700;margin:0}

/* The dark panel exists so the white wordmark has a legible surface. */
.hero{
  border-radius:var(--radius);overflow:hidden;margin-bottom:20px;
  background:var(--csyc-gradient-main);
  box-shadow:var(--csyc-shadow-soft);
  position:relative;
}
.hero::after{
  content:"";position:absolute;inset:0;pointer-events:none;
  background-image:url("/static/branding/circuit-bg.png");
  background-size:cover;background-position:center;opacity:.16;mix-blend-mode:screen;
}
.hero-in{position:relative;z-index:1;padding:30px 28px;display:flex;align-items:center;gap:22px}
.hero img.wordmark{height:44px;width:auto;display:block}   /* white-on-transparent */
.hero-copy{color:#eaf6fb}
.hero-copy strong{display:block;font-size:15px;font-weight:650;letter-spacing:.2px}
.hero-copy span{font-size:13px;color:#bfe4f2}

label{display:block;font-size:13px;font-weight:600;color:#3d4f61;margin:16px 0 6px}
input[type=text],input[type=password]{
  width:100%;padding:10px 12px;border:1px solid #c8d4de;border-radius:9px;
  font:14.5px var(--font-sans);background:#fff;color:var(--text);
}
input:focus{outline:2px solid var(--csyc-teal);outline-offset:-1px;border-color:var(--csyc-teal)}
button{
  margin-top:20px;width:100%;padding:11px;border:0;border-radius:9px;
  background:var(--csyc-gradient-main);background-size:150% 100%;
  color:#fff;font:600 14.5px var(--font-sans);cursor:pointer;
  transition:background-position .25s ease,box-shadow .25s ease;
}
button:hover{background-position:30% 0;box-shadow:0 6px 18px rgba(41,91,152,.32)}
.err{background:#fdecec;border:1px solid #f3c6c6;color:#96222a;
     padding:10px 13px;border-radius:9px;font-size:13.5px;margin-top:16px}
.help{color:#7d8d9c;font-size:12.5px;margin-top:20px;line-height:1.55}

.side ul.status{list-style:none;margin:0;padding:0;font-size:13.5px}
.side li{display:flex;align-items:center;gap:10px;padding:6px 0}
.side small{color:#8b9aa8}
.dot{width:8px;height:8px;border-radius:50%;flex:0 0 8px}
.dot.ok{background:#2e9e5b}.dot.warn{background:#d69e2e}.dot.off{background:var(--csyc-steel)}
.tiny{color:#8b9aa8;font-size:12px;margin-top:15px}

/* --------------------------------------------------------------- tables */
.grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(330px,1fr));gap:20px}
table{width:100%;border-collapse:collapse}
.kv th{text-align:left;font-weight:500;color:var(--text-muted);padding:8px 18px 8px 0;
       width:155px;font-size:13.5px;vertical-align:top}
.kv td{padding:8px 0;font-size:14px}
.tbl th{text-align:left;font-size:11.5px;text-transform:uppercase;letter-spacing:.6px;
        color:#8b9aa8;border-bottom:1px solid var(--border);padding:0 12px 9px 0}
.tbl td{padding:10px 12px 10px 0;border-bottom:1px solid #eef2f6;font-size:14px}
.mono{font-family:var(--font-mono);font-size:13px}

.pill{display:inline-block;padding:2px 10px;border-radius:11px;font-size:11.5px;font-weight:650}
.pill.ok,.pill.success{background:#e3f5ea;color:#1f7a45}
.pill.failed{background:#fdecec;color:#96222a}
.pill.warn,.pill.degraded{background:#fff2d6;color:#8a6410}
.btn{display:inline-block;margin-top:16px;padding:8px 16px;border:1px solid #c8d4de;
     border-radius:9px;font-size:13.5px;color:var(--text);background:#fff}
.btn:hover{background:var(--csyc-off-white);border-color:var(--csyc-teal);text-decoration:none}

/* -------------------------------------------------------------- profile */
.prof-head{display:flex;align-items:center;gap:18px;margin-bottom:22px}
.avatar{
  width:54px;height:54px;border-radius:50%;flex:0 0 54px;
  background:var(--csyc-gradient-main);color:#fff;
  display:grid;place-items:center;font-size:21px;font-weight:700;
  box-shadow:0 4px 12px rgba(41,91,152,.28);
}
.prof-head h2{margin:0}
.notes{
  background:#f6fafc;border:1px solid #e2eaf0;border-left:3px solid var(--csyc-teal);
  padding:14px 16px;border-radius:8px;white-space:pre-wrap;
  font-family:var(--font-mono);font-size:12.8px;color:#3d4f61;line-height:1.65;overflow-x:auto;
}

/* --------------------------------------------------------------- footer */
/* Dark so the white partner logos are legible — kit says footer strip,
   NCSA left, NCA right, 40-48px tall, ~70% opacity is fine. */
.foot{background:var(--csyc-midnight-navy);color:#9fb3c4;font-size:12.5px;margin-top:8px}
.foot .wrap{padding:22px}
.foot-top{display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap}
.partners{display:flex;align-items:center;gap:26px}
.partners img{height:42px;width:auto;opacity:.75;display:block}
.foot-meta{text-align:right;line-height:1.7}
.foot-meta .ver{color:#6d8298;font-family:var(--font-mono);font-size:11.5px}
.foot hr{border:0;border-top:1px solid rgba(181,197,203,.16);margin:18px 0 14px}
.foot-legal{display:flex;justify-content:space-between;gap:16px;flex-wrap:wrap;color:#6d8298}

@media(max-width:820px){
  .signin-wrap{grid-template-columns:1fr}
  .topnav{gap:14px;font-size:13px}
  .hero-in{flex-direction:column;align-items:flex-start;gap:16px}
  .foot-top{flex-direction:column;align-items:flex-start}
  .foot-meta{text-align:left}
}
