:root{
  --txt:#e5e7eb;
  --mut:#9ca3af;
  --line:rgba(255,255,255,.10);
  --card:rgba(15,23,42,.70);
  --card2:rgba(2,6,23,.75);
  --glass: blur(14px);
}

*{ box-sizing:border-box; font-family:'Inter',system-ui,-apple-system,Segoe UI,Roboto,Arial; }
html,body{ height:100%; }
body{ margin:0; color:var(--txt); }

body.bg{
  background:
    radial-gradient(1200px 700px at 20% 10%, rgba(37,99,235,.22), rgba(2,6,23,0)),
    radial-gradient(900px 600px at 80% 0%, rgba(147,51,234,.16), rgba(2,6,23,0)),
    radial-gradient(900px 600px at 60% 90%, rgba(34,197,94,.10), rgba(2,6,23,0)),
    linear-gradient(180deg, #05070c 0%, #020617 100%);
}

/* Glow flutuante */
.glow{
  position:fixed;
  width:520px; height:520px;
  border-radius:999px;
  filter: blur(60px);
  opacity:.35;
  pointer-events:none;
}
.glow.g1{ left:-140px; top:-180px; background:rgba(37,99,235,.55); }
.glow.g2{ right:-180px; bottom:-220px; background:rgba(147,51,234,.45); }

/* Layout */
.login-wrap{
  min-height:100vh;
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:40px;
  align-items:center;
  max-width:1160px;
  margin:0 auto;
  padding:42px 22px;
}

@media(max-width:980px){
  .login-wrap{
    grid-template-columns:1fr;
    padding:26px 18px;
    gap:18px;
  }
}

/* Brand block */
.brand-pill{
  display:inline-flex;
  align-items:center;
  gap:10px;
  padding:10px 14px;
  border:1px solid var(--line);
  border-radius:999px;
  background:rgba(2,6,23,.35);
  backdrop-filter: var(--glass);
  color:var(--mut);
  font-size:12px;
}
.brand-pill .dot{
  width:8px;height:8px;border-radius:50%;
  background:rgba(34,197,94,.9);
  box-shadow: 0 0 0 6px rgba(34,197,94,.12);
}

.title{
  margin:18px 0 10px;
  font-size:56px;
  line-height:1.05;
  letter-spacing:-1.2px;
  font-weight:800;
}
.title span{
  display:block;
  font-weight:700;
  color:#c7d2fe;
}

@media(max-width:980px){
  .title{ font-size:42px; }
}

.subtitle{
  margin:0;
  color:var(--mut);
  font-size:15px;
  line-height:1.6;
  max-width:520px;
}

.bullets{
  margin-top:18px;
  display:grid;
  gap:10px;
  max-width:520px;
}
.b{
  padding:12px 14px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(2,6,23,.35);
  backdrop-filter: var(--glass);
  color:#cbd5e1;
  font-size:13px;
}

/* Card premium */
.premium-card{
  padding:26px;
  border-radius:22px;
  border:1px solid var(--line);
  background: linear-gradient(180deg, var(--card), var(--card2));
  backdrop-filter: var(--glass);
  box-shadow:
    0 50px 120px rgba(0,0,0,.55),
    inset 0 1px 0 rgba(255,255,255,.06);
}

.card-head{ margin-bottom:14px; }
.card-title{ font-size:16px; font-weight:700; letter-spacing:.2px; }
.card-sub{ font-size:12px; color:var(--mut); margin-top:6px; }

/* Form */
.form label{
  display:block;
  margin:14px 0 8px;
  font-size:12px;
  color:var(--mut);
}

.form input{
  width:100%;
  padding:14px 16px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(2,6,23,.55);
  color:var(--txt);
  font-size:14px;
  outline:none;
}
.form input:focus{
  border-color: rgba(99,102,241,.55);
  box-shadow: 0 0 0 5px rgba(99,102,241,.12);
}

.btn-primary{
  width:100%;
  margin-top:18px;
  padding:14px 16px;
  border-radius:14px;
  border:none;
  cursor:pointer;
  color:white;
  font-weight:700;
  letter-spacing:.2px;
  background: linear-gradient(135deg, rgba(37,99,235,1), rgba(29,78,216,1));
  box-shadow: 0 18px 40px rgba(37,99,235,.22);
}
.btn-primary:hover{
  filter: brightness(1.06);
}

.seal{
  margin-top:14px;
  text-align:center;
  font-size:12px;
  color:var(--mut);
}

/* Alert */
.alert{
  margin:14px 0;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(239,68,68,.22);
  background: rgba(127,29,29,.20);
}
.alert-title{ font-weight:700; font-size:13px; }
.alert-msg{ color:#fecaca; font-size:12px; margin-top:4px; }


/* bullets em etapas (mais "método") */
.bullets-steps .b strong{
  color:#c7d2fe;
  margin-right:6px;
}

/* mini note acadêmica */
.mini-note{
  margin-top:16px;
  max-width:520px;
  color:#94a3b8;
  font-size:13px;
  line-height:1.6;
  padding:12px 14px;
  border:1px solid rgba(255,255,255,.08);
  border-radius:14px;
  background:rgba(2,6,23,.30);
  backdrop-filter: blur(12px);
}

/* selo mais forte (cara de plataforma de aprovação) */
.seal-strong{
  margin-top:16px;
  padding-top:14px;
  border-top:1px dashed rgba(255,255,255,.12);
  font-size:12px;
  color:#c7d2fe;
  text-align:center;
}

/* ===== DASHBOARD ===== */

.topbar{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:18px 28px;
  border-bottom:1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(14px);
}

.user{ color:#cbd5e1; margin-right:18px; }
.link-exit{
  color:#93c5fd;
  text-decoration:none;
  font-size:13px;
}

.dash-wrap{
  max-width:1180px;
  margin:0 auto;
  padding:36px 22px;
}

.resume{
  display:grid;
  grid-template-columns:1.3fr .7fr;
  gap:28px;
  margin-bottom:42px;
}

@media(max-width:980px){
  .resume{ grid-template-columns:1fr; }
}

.resume-main h1{
  font-size:34px;
  margin:0 0 10px;
}

.resume-main p{
  color:#94a3b8;
  max-width:520px;
}

.btn-primary.big{
  display:inline-block;
  margin-top:20px;
  padding:16px 26px;
  font-size:15px;
}

.resume-kpis{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px;
}

.kpi{
  padding:18px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(2,6,23,.45);
}

.kpi-label{
  font-size:12px;
  color:#94a3b8;
}

.kpi-value{
  font-size:32px;
  font-weight:800;
  margin-top:6px;
}

.kpi-sub{
  font-size:12px;
  color:#9ca3af;
}

/* trilha */
.trail h2{
  margin-bottom:16px;
}

.trail-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.trail-item{
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px 20px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(2,6,23,.40);
  text-decoration:none;
  color:inherit;
  transition:.25s;
}

.trail-item:hover{
  transform:translateY(-2px);
  background:rgba(15,23,42,.65);
}

.trail-index{
  width:42px;
  height:42px;
  border-radius:12px;
  background:#1e293b;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:#93c5fd;
}

.trail-title{
  font-weight:700;
}

.trail-desc{
  font-size:13px;
  color:#94a3b8;
  margin-top:4px;
}

.trail-action{
  margin-left:auto;
  font-size:13px;
  color:#93c5fd;
}

/* ===== MÓDULO ===== */

.module-wrap{
  max-width:980px;
  margin:0 auto;
  padding:40px 22px;
}

.module-head h1{
  font-size:32px;
  margin-bottom:8px;
}

.module-head p{
  color:#94a3b8;
  max-width:640px;
  margin-bottom:16px;
}

.btn-outline{
  display:inline-block;
  padding:12px 18px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.15);
  color:#c7d2fe;
  text-decoration:none;
  font-size:14px;
}

.module-lessons{
  margin-top:40px;
}

.lesson-list{
  display:flex;
  flex-direction:column;
  gap:14px;
}

.lesson-item{
  display:flex;
  align-items:center;
  gap:18px;
  padding:18px 20px;
  border-radius:18px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(2,6,23,.45);
  text-decoration:none;
  color:inherit;
  transition:.25s;
}

.lesson-item:hover{
  transform:translateY(-2px);
  background:rgba(15,23,42,.65);
}

.lesson-item.done{
  border-color:rgba(34,197,94,.35);
}

.lesson-index{
  width:40px;
  height:40px;
  border-radius:12px;
  background:#1e293b;
  display:flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:#93c5fd;
}

.lesson-item.done .lesson-index{
  background:#16a34a;
  color:#ecfeff;
}

.lesson-title{
  font-weight:600;
}

.lesson-status{
  font-size:12px;
  color:#94a3b8;
  margin-top:4px;
}

.lesson-item.done .lesson-status{
  color:#86efac;
}

.lesson-action{
  margin-left:auto;
  font-size:13px;
  color:#93c5fd;
}

/* ===== AULA ===== */

.aula-wrap{
  max-width:980px;
  margin:0 auto;
  padding:34px 22px 60px;
}

.crumbs{
  color:#94a3b8;
  font-size:12px;
  margin-bottom:18px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.crumbs a{ color:#93c5fd; text-decoration:none; }
.crumbs .cur{ color:#cbd5e1; }

.aula-head{
  padding:22px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(2,6,23,.45);
  margin-bottom:18px;
}

.aula-meta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
}

.chip{
  padding:8px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.12);
  background:rgba(2,6,23,.35);
  font-size:12px;
  color:#cbd5e1;
}
.chip.ok{
  border-color:rgba(34,197,94,.30);
  color:#86efac;
}
.chip.warn{
  border-color:rgba(251,191,36,.22);
  color:#fde68a;
}

.aula-head h1{
  margin:8px 0 8px;
  font-size:30px;
  letter-spacing:-.3px;
}

.aula-sub{
  margin:0;
  color:#94a3b8;
  font-size:14px;
  line-height:1.6;
  max-width:720px;
}

.toast{
  margin-top:14px;
  padding:12px 14px;
  border-radius:14px;
  border:1px solid rgba(255,255,255,.10);
  background:rgba(2,6,23,.35);
  font-size:13px;
}
.toast.ok{
  border-color:rgba(34,197,94,.25);
  color:#bbf7d0;
}

.aula-content{
  margin-top:16px;
  padding:26px;
  border-radius:20px;
  border:1px solid rgba(255,255,255,.08);
  background:rgba(15,23,42,.55);
}

/* modo leitura */
.reading{
  color:#e5e7eb;
  line-height:1.85;
  font-size:15px;
}
.reading h2{
  margin-top:22px;
  margin-bottom:10px;
  font-size:18px;
}
.reading h3{
  margin-top:18px;
  margin-bottom:8px;
  font-size:16px;
  color:#c7d2fe;
}
.reading p{
  margin:10px 0;
  color:#cbd5e1;
}
.reading ul{
  margin:10px 0 10px 20px;
}
.reading li{
  margin:6px 0;
  color:#cbd5e1;
}
.reading blockquote{
  margin:14px 0;
  padding:14px 16px;
  border-left:3px solid rgba(99,102,241,.55);
  background:rgba(2,6,23,.35);
  border-radius:14px;
  color:#cbd5e1;
}

.aula-actions{
  margin-top:18px;
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
}

.done-note{
  color:#86efac;
  font-size:13px;
  padding:10px 12px;
  border-radius:14px;
  border:1px solid rgba(34,197,94,.25);
  background:rgba(2,6,23,.35);
}

