:root{
  /* JET Design System — paleta unificada (azul / laranja / roxo), tema claro */
  --blue:#2f7ef0;      /* azul claro — foco, gradiente, ativo */
  --blue-2:#1f63d6;    /* azul vibrante — links, acoes */
  --blue-3:#123f7a;    /* azul profundo — titulos e marca */
  --ink:#172033;
  --muted:#667085;
  --faint:#98a2b3;
  --line:#e6ebf4;
  --bg:#f4f7fc;
  --card:#fff;
  --surface-2:#f7f9fd;
  --green:#0a8a5a;
  --green-2:#12b76a;
  --purple:#6b46d9;
  --purple-2:#8f6fe8;
  --orange:#e07d0e;
  --orange-2:#f59e0b;
  --shadow:0 1px 2px rgba(16,32,64,.04),0 10px 30px rgba(16,40,90,.07);
  --shadow-lg:0 24px 54px rgba(16,40,90,.16);
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,Helvetica,sans-serif;
  background:
    radial-gradient(1000px 460px at 6% -12%, rgba(47,126,240,.07) 0%, rgba(47,126,240,0) 60%),
    radial-gradient(900px 420px at 108% 0%, rgba(107,70,217,.06) 0%, rgba(107,70,217,0) 55%),
    var(--bg);
  color:var(--ink);
  -webkit-font-smoothing:antialiased;
}
a{color:var(--blue-2);text-decoration:none}
.container{width:min(1180px,calc(100% - 32px));margin:40px auto 60px}

.jet-loadbar{position:fixed;top:0;left:0;height:3px;width:0;background:linear-gradient(90deg,var(--blue-2),var(--orange));z-index:9999;opacity:0;transition:width 3s cubic-bezier(.1,.6,.2,1),opacity .2s ease}
.jet-loadbar.active{opacity:1;width:80%}

/* ===== Topbar ===== */
.topbar{
  position:sticky;top:0;z-index:20;
  background:rgba(255,255,255,.86);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
  border-bottom:1px solid var(--line);
  padding:14px 28px;
  display:flex;justify-content:space-between;gap:16px;align-items:center;
}
.topbar .brand{display:flex;align-items:center;gap:12px}
.topbar .brand-logo{height:34px;width:auto;display:block}
.topbar .brand strong{display:block;color:var(--blue-3);font-size:1rem;font-weight:800;letter-spacing:-.01em}
.topbar .brand span{color:var(--muted);font-size:.84rem}
.topbar .who{display:flex;align-items:center;gap:12px}
.topbar .who-text{text-align:right;line-height:1.25}
.topbar .who-text b{display:block;font-size:.88rem;color:var(--ink)}
.topbar .who-text small{color:var(--muted);font-size:.78rem}
.topbar .av{
  width:38px;height:38px;border-radius:50%;
  background:linear-gradient(135deg,var(--blue),var(--purple-2));
  color:#fff;font-weight:800;font-size:.85rem;
  display:flex;align-items:center;justify-content:center;
  box-shadow:0 6px 16px rgba(47,126,240,.32);
  flex:none;
}
.btn-ghost{
  border:1px solid var(--line);border-radius:10px;padding:8px 14px;
  font-weight:700;color:var(--ink);font-size:.86rem;background:#fff;
  transition:background .15s ease, border-color .15s ease, color .15s ease;
}
.btn-ghost:hover{background:#eef4ff;border-color:#c7d7fe;color:var(--blue-2);text-decoration:none}

/* ===== Page head ===== */
.page-head{margin-bottom:34px}
.page-head .eyebrow{
  display:inline-block;color:var(--blue-2);font-weight:800;font-size:.78rem;
  letter-spacing:.08em;text-transform:uppercase;margin-bottom:10px;
}
.page-head h1{margin:0 0 8px;color:var(--blue-3);letter-spacing:-.04em;font-size:clamp(1.9rem,3.4vw,2.7rem);font-weight:800}
.page-head p{margin:0;color:var(--muted);font-size:1.02rem}

/* ===== Module cards ===== */
.modules-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px}
.module-card{
  position:relative;overflow:hidden;
  background:var(--card);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:28px 26px;
  display:flex;flex-direction:column;gap:12px;
  transition:transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s ease, border-color .2s ease;
}
.module-card::before{
  content:"";position:absolute;inset:0 0 auto 0;height:4px;
  background:linear-gradient(90deg,var(--blue),var(--blue-2));
}
.module-card:hover{
  transform:translateY(-6px);
  box-shadow:var(--shadow-lg);
  border-color:#c7d7fe;
  text-decoration:none;
}
.module-icon{
  width:48px;height:48px;border-radius:14px;
  display:flex;align-items:center;justify-content:center;
  background:#eef4ff;
  color:var(--blue-2);
  margin-bottom:4px;
}
.module-icon svg{width:24px;height:24px}
.module-card h2{margin:0;color:var(--blue-3);font-size:1.2rem;font-weight:800;letter-spacing:-.02em}
.module-card p{margin:0;color:var(--muted);flex:1;font-size:.92rem;line-height:1.5}
.module-card .module-cta{
  display:inline-flex;align-items:center;gap:6px;
  font-weight:800;color:var(--blue-2);font-size:.9rem;margin-top:6px;
}
.module-card .module-cta svg{width:16px;height:16px;transition:transform .2s ease}
.module-card:hover .module-cta svg{transform:translateX(4px)}

.module-purple::before{background:linear-gradient(90deg,var(--purple-2),var(--purple))}
.module-purple .module-icon{background:#f1edfd;color:var(--purple)}
.module-purple h2{color:#3f2f78}
.module-purple .module-cta{color:var(--purple)}
.module-purple:hover{border-color:#dcd2f8}

.module-orange::before{background:linear-gradient(90deg,var(--orange-2),var(--orange))}
.module-orange .module-icon{background:#fdf3e2;color:var(--orange)}
.module-orange h2{color:#8a4c07}
.module-orange .module-cta{color:var(--orange)}
.module-orange:hover{border-color:#f6d9a6}

.module-green::before{background:linear-gradient(90deg,var(--green-2),var(--green))}
.module-green .module-icon{background:#e7f9f1;color:var(--green)}
.module-green h2{color:#0a6b46}
.module-green .module-cta{color:var(--green)}
.module-green:hover{border-color:#abefc6}

/* ===== Login ===== */
.login-body{min-height:100vh}
.login-shell{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;
  background:linear-gradient(135deg,#123f7a,#1f63d6 60%,#2f7ef0)}
.auth-card{
  background:var(--card);
  border:1px solid var(--line);
  border-radius:24px;
  box-shadow:var(--shadow-lg);
  width:100%;max-width:420px;
  padding:38px 34px;
  text-align:center;
}
.auth-logo{height:40px;width:auto;margin:0 auto 20px;display:block}
.auth-card h1{margin:0 0 8px;color:var(--blue-3);font-size:1.4rem;letter-spacing:-.02em}
.auth-card p{color:var(--muted);margin:0 0 24px;font-size:.92rem}
.form-stack{display:grid;gap:16px;text-align:left}
label{display:grid;gap:7px;font-weight:700;color:#344054;font-size:.88rem}
.pw-field{position:relative}
.pw-field input{padding-right:2.75rem}
.pw-toggle{position:absolute;top:50%;right:.6rem;transform:translateY(-50%);background:none;border:none;cursor:pointer;font-size:1.05rem;line-height:1;padding:4px;color:var(--muted)}
.pw-toggle:hover{opacity:.75}
input{
  width:100%;border:1px solid #d7deec;border-radius:12px;padding:12px 14px;
  font:inherit;color:var(--ink);background:#fff;
  transition:border-color .15s ease, box-shadow .15s ease;
}
input:focus{
  outline:none;border-color:var(--blue);background:#fff;
  box-shadow:0 0 0 4px rgba(47,126,240,.16);
}
.btn{
  display:inline-flex;align-items:center;justify-content:center;
  border:1px solid var(--line);border-radius:12px;padding:12px 16px;
  font-weight:800;line-height:1;cursor:pointer;text-decoration:none;
  background:#fff;color:var(--ink);font-size:.95rem;
  transition:background .15s ease, transform .1s ease, box-shadow .15s ease;
}
.btn-primary{
  background:linear-gradient(135deg,var(--blue-2),var(--blue));
  border-color:transparent;color:white;
  box-shadow:0 10px 24px rgba(31,99,214,.32);
}
.btn-primary:hover{transform:translateY(-1px);box-shadow:0 14px 28px rgba(31,99,214,.4)}
.btn-primary:active{transform:translateY(0)}
.alert{border-radius:14px;padding:12px 14px;margin:0 0 16px;font-weight:700;text-align:left;font-size:.88rem}
.alert-error{background:#fdecec;color:#b42318;border:1px solid #f6cccb}

@media (max-width:900px){
  .modules-grid{grid-template-columns:1fr}
  .topbar{flex-direction:column;align-items:flex-start;gap:10px}
  .topbar .who{width:100%;justify-content:space-between}
}
