/* ============================================
   Curso de Acessibilidade Arquitetônica
   Estilos globais — WCAG AA
   ============================================ */

:root {
  --bg-main: #1a1a2e;
  --bg-card: #1e293b;
  --bg-card-hover: #243044;
  --primary: #f5a623;
  --secondary: #4a90d9;
  --green: #2ecc71;
  --text: #e8edf4;
  --text-muted: #94a3b8;
  --border: #334155;
  --danger: #e74c3c;
  --sidebar-width: 280px;
  --topbar-height: 48px;
  --transition: 0.3s ease;
  --focus-ring: 0 0 0 3px rgba(245, 166, 35, 0.6);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-main);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.3;
}

a {
  color: var(--secondary);
  text-decoration: none;
  transition: color var(--transition);
}

a:hover, a:focus-visible {
  color: var(--primary);
}

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

/* ---- Barra de progresso superior ---- */
.progress-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--topbar-height);
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  z-index: 1000;
  display: flex;
  align-items: center;
  padding: 0 1rem;
  gap: 1rem;
}

.progress-topbar__bar {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
}

.progress-topbar__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--secondary), var(--primary));
  border-radius: 3px;
  transition: width var(--transition);
  width: 0%;
}

.progress-topbar__label {
  font-size: 0.8rem;
  color: var(--text-muted);
  white-space: nowrap;
  min-width: 80px;
  text-align: right;
}

/* ---- Sidebar ---- */
.sidebar {
  position: fixed;
  top: var(--topbar-height);
  left: 0;
  width: var(--sidebar-width);
  height: calc(100vh - var(--topbar-height));
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  z-index: 900;
  transform: translateX(0);
  transition: transform var(--transition);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.sidebar.collapsed {
  transform: translateX(-100%);
}

.sidebar__header {
  padding: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.sidebar__header h2 {
  font-size: 0.95rem;
  color: var(--primary);
}

.sidebar__header a {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.sidebar__nav {
  flex: 1;
  padding: 0.75rem 0;
  list-style: none;
}

.sidebar__nav > li > a {
  display: block;
  padding: 0.6rem 1.25rem;
  color: var(--text);
  font-size: 0.85rem;
  border-left: 3px solid transparent;
  transition: all var(--transition);
}

.sidebar__nav > li > a:hover,
.sidebar__nav > li > a.active {
  background: rgba(74, 144, 217, 0.15);
  border-left-color: var(--secondary);
  color: var(--primary);
}

.sidebar__topics {
  list-style: none;
  padding-left: 1rem;
}

.sidebar__topics a {
  display: block;
  padding: 0.35rem 1.25rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  cursor: pointer;
}

.sidebar__topics a:hover,
.sidebar__topics a.active {
  color: var(--primary);
}

.sidebar__footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* ---- Conteúdo principal ---- */
.main-content {
  margin-left: var(--sidebar-width);
  margin-top: var(--topbar-height);
  min-height: calc(100vh - var(--topbar-height));
  transition: margin-left var(--transition);
  position: relative;
}

.main-content.fullwidth {
  margin-left: 0;
}

/* ---- Container de slides ---- */
.slides-container {
  position: relative;
  width: 100%;
  min-height: calc(100vh - var(--topbar-height) - 70px);
  overflow: hidden;
}

.slide {
  display: none;
  width: 100%;
  min-height: calc(100vh - var(--topbar-height) - 70px);
  padding: 2.5rem 3rem;
  animation: slideIn 0.4s ease;
}

/* Garante que apenas o slide ativo seja visível */
.slide:not(.active) {
  display: none !important;
}

.slide.active {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

/* Layouts só aplicam display quando o slide está ativo */
.slide.active.slide-conceito,
.slide.active.slide-two-panel {
  display: grid;
}

.slide.active.slide-cover {
  display: flex;
  align-items: center;
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* ---- Controles de navegação ---- */
.slide-controls {
  position: fixed;
  bottom: 0;
  left: var(--sidebar-width);
  right: 0;
  height: 70px;
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 1.5rem;
  z-index: 800;
  transition: left var(--transition);
}

.slide-controls.fullwidth {
  left: 0;
}

.slide-controls__group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--bg-main);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition);
}

.btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--secondary);
}

.btn--primary {
  background: var(--primary);
  color: #1a1a2e;
  border-color: var(--primary);
  font-weight: 600;
}

.btn--primary:hover {
  background: #e09510;
  border-color: #e09510;
  color: #1a1a2e;
}

.btn--icon {
  padding: 0.55rem;
  min-width: 40px;
  justify-content: center;
}

.slide-counter {
  font-size: 0.85rem;
  color: var(--text-muted);
  min-width: 100px;
  text-align: center;
}

.timer-display {
  font-family: 'Montserrat', monospace;
  font-size: 0.9rem;
  color: var(--green);
  min-width: 70px;
  text-align: center;
}

.timer-display.warning { color: var(--primary); }
.timer-display.danger { color: var(--danger); }

/* ---- Layouts de slides ---- */

/* Capa */
.slide-cover {
  text-align: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(74, 144, 217, 0.15), rgba(245, 166, 35, 0.1));
  border-radius: 16px;
  padding: 3rem;
}

.slide-cover__icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 1.5rem;
  color: var(--primary);
}

.slide-cover h1 {
  font-size: clamp(2rem, 5vw, 3.2rem);
  color: var(--text);
  margin-bottom: 0.75rem;
}

.slide-cover__subtitle {
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--secondary);
  margin-bottom: 1rem;
}

.slide-cover__meta {
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Conceito */
.slide-conceito {
  grid-template-columns: 1fr 300px;
  gap: 2rem;
  align-items: start;
}

.slide-conceito__quote {
  background: var(--bg-card);
  border-left: 4px solid var(--primary);
  padding: 1.5rem;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  font-size: 1.05rem;
}

.slide-conceito__quote cite {
  display: block;
  margin-top: 0.75rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Dois painéis */
.slide-two-panel {
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.slide-two-panel__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border-radius: 16px;
  padding: 2rem;
  min-height: 280px;
}

.slide-two-panel__visual svg {
  width: 120px;
  height: 120px;
  color: var(--secondary);
}

/* Lista animada */
.animated-list {
  list-style: none;
  max-width: 700px;
}

.animated-list li {
  padding: 0.85rem 1.25rem;
  margin-bottom: 0.5rem;
  background: var(--bg-card);
  border-radius: 8px;
  border-left: 3px solid var(--secondary);
  opacity: 0;
  transform: translateX(-20px);
  transition: all 0.4s ease;
}

.animated-list li.visible {
  opacity: 1;
  transform: translateX(0);
}

.animated-list__hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 1rem;
}

/* Cards grid */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
}

.card-grid__item {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 1.5rem;
  text-align: center;
  border: 1px solid var(--border);
  transition: transform var(--transition), border-color var(--transition);
}

.card-grid__item:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.card-grid__icon {
  width: 48px;
  height: 48px;
  margin: 0 auto 1rem;
  color: var(--primary);
}

.card-grid__item h3 {
  font-size: 1rem;
  margin-bottom: 0.5rem;
  color: var(--primary);
}

.card-grid__item p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Tabela comparativa */
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  border-radius: 12px;
  overflow: hidden;
}

.comparison-table th,
.comparison-table td {
  padding: 1rem 1.25rem;
  text-align: left;
  border: 1px solid var(--border);
}

.comparison-table thead th {
  font-family: 'Montserrat', sans-serif;
  font-size: 1rem;
}

.comparison-table .col-certo {
  background: rgba(46, 204, 113, 0.12);
}

.comparison-table .col-certo th {
  background: rgba(46, 204, 113, 0.25);
  color: var(--green);
}

.comparison-table .col-errado {
  background: rgba(231, 76, 60, 0.08);
}

.comparison-table .col-errado th {
  background: rgba(231, 76, 60, 0.2);
  color: var(--danger);
}

/* Citação de norma */
.norma-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 5px solid var(--secondary);
  border-radius: 0 12px 12px 0;
  padding: 1.5rem 2rem;
  margin: 1rem 0;
}

.norma-block__ref {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  padding: 0.2rem 0.75rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.norma-block p {
  font-size: 1.05rem;
  line-height: 1.7;
}

/* Checklist interativo */
.checklist {
  list-style: none;
  max-width: 750px;
}

.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  margin-bottom: 0.5rem;
  background: var(--bg-card);
  border-radius: 8px;
  cursor: pointer;
  transition: background var(--transition);
  border: 1px solid transparent;
}

.checklist-item:hover {
  background: var(--bg-card-hover);
}

.checklist-item.checked {
  border-color: var(--green);
  opacity: 0.75;
}

.checklist-item input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: var(--green);
  margin-top: 2px;
  flex-shrink: 0;
  cursor: pointer;
}

.checklist-item label {
  cursor: pointer;
  flex: 1;
}

.checklist-item.checked label {
  text-decoration: line-through;
  color: var(--text-muted);
}

/* Fluxograma */
.flowchart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 1rem;
}

.flowchart__step {
  background: var(--bg-card);
  border: 2px solid var(--secondary);
  border-radius: 12px;
  padding: 1rem 2rem;
  text-align: center;
  min-width: 260px;
  max-width: 400px;
  position: relative;
}

.flowchart__step--highlight {
  border-color: var(--primary);
  background: rgba(245, 166, 35, 0.1);
}

.flowchart__step h4 {
  color: var(--primary);
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
}

.flowchart__arrow {
  width: 2px;
  height: 30px;
  background: var(--secondary);
  position: relative;
}

.flowchart__arrow::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid var(--secondary);
}

/* Estudo de caso */
.case-study {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 2rem;
  align-items: start;
}

.case-study__image {
  background: var(--bg-card);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 250px;
}

.case-study__image svg {
  width: 100px;
  height: 100px;
  color: var(--secondary);
}

.case-study__points {
  list-style: none;
}

.case-study__points li {
  padding: 0.6rem 0;
  padding-left: 1.5rem;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.case-study__points li::before {
  content: '!';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* Caixas de destaque */
.highlight-box {
  background: rgba(245, 166, 35, 0.12);
  border: 1px solid var(--primary);
  border-radius: 12px;
  padding: 1.25rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 1rem 0;
}

.highlight-box__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.medidas-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.25rem;
  margin: 0.75rem 0;
}

.medidas-box dt {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.medidas-box dd {
  margin-left: 0;
  margin-bottom: 0.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Títulos de slide */
.slide h2 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  color: var(--primary);
  margin-bottom: 1.25rem;
}

.slide h3 {
  font-size: 1.2rem;
  color: var(--secondary);
  margin-bottom: 0.75rem;
}

.slide p {
  margin-bottom: 0.75rem;
  max-width: 800px;
}

.slide ul:not(.animated-list):not(.checklist):not(.case-study__points) {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}

.slide ul:not(.animated-list):not(.checklist):not(.case-study__points) li {
  margin-bottom: 0.4rem;
}

/* ---- Página inicial ---- */
.home-page {
  margin-left: 0;
  margin-top: 0;
  padding: 0;
}

.home-header {
  text-align: center;
  padding: 4rem 2rem 3rem;
  background: linear-gradient(180deg, rgba(74, 144, 217, 0.2), transparent);
}

.home-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin-bottom: 0.5rem;
}

.home-header__professor {
  color: var(--secondary);
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.home-header__subtitle {
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.course-progress {
  max-width: 600px;
  margin: 2rem auto 0;
  padding: 0 1rem;
}

.course-progress__label {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.course-progress__bar {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.course-progress__fill {
  height: 100%;
  background: linear-gradient(90deg, var(--green), var(--primary));
  border-radius: 4px;
  transition: width var(--transition);
}

.lessons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
}

.lesson-card {
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
}

.lesson-card:hover {
  transform: translateY(-4px);
  border-color: var(--primary);
}

.lesson-card__number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--primary);
  color: #1a1a2e;
  border-radius: 50%;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.lesson-card h2 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}

.lesson-card__duration {
  font-size: 0.8rem;
  color: var(--green);
  margin-bottom: 1rem;
}

.lesson-card__topics {
  list-style: none;
  flex: 1;
  margin-bottom: 1.25rem;
}

.lesson-card__topics li {
  font-size: 0.82rem;
  color: var(--text-muted);
  padding: 0.25rem 0;
  padding-left: 1rem;
  position: relative;
}

.lesson-card__topics li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.home-footer {
  text-align: center;
  padding: 2rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}

.home-footer strong {
  color: var(--primary);
}

/* ---- Modo apresentação ---- */
body.presentation-mode .sidebar {
  transform: translateX(-100%);
}

body.presentation-mode .main-content {
  margin-left: 0;
}

body.presentation-mode .slide-controls {
  left: 0;
  opacity: 0.3;
  transition: opacity var(--transition);
}

body.presentation-mode .slide-controls:hover {
  opacity: 1;
}

/* ---- Timeline (Aula 10) ---- */
.timeline {
  position: relative;
  padding-left: 2rem;
  max-width: 700px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 8px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--secondary);
}

.timeline__item {
  position: relative;
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
}

.timeline__item::before {
  content: '';
  position: absolute;
  left: -1.65rem;
  top: 6px;
  width: 12px;
  height: 12px;
  background: var(--primary);
  border-radius: 50%;
  border: 2px solid var(--bg-main);
}

.timeline__year {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.9rem;
}

/* ---- Responsivo ---- */
@media (max-width: 1024px) {
  .slide-conceito,
  .slide-two-panel,
  .case-study {
    grid-template-columns: 1fr;
  }

  .slide {
    padding: 2rem 1.5rem;
  }
}

@media (max-width: 768px) {
  .sidebar {
    width: 100%;
    transform: translateX(-100%);
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .main-content,
  .slide-controls {
    margin-left: 0;
    left: 0;
  }

  .lessons-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }

  .slide-controls {
    padding: 0 0.75rem;
  }

  .btn span.btn-text {
    display: none;
  }
}

/* Skip link para acessibilidade */
.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--primary);
  color: #1a1a2e;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  z-index: 9999;
  font-weight: 600;
}

.skip-link:focus {
  top: 0.5rem;
}

/* Overlay mobile menu */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 850;
}

.sidebar-overlay.visible {
  display: block;
}
/* Portal de cursos â€” pÃ¡gina inicial */

.portal-header {
  padding: 4.5rem 2rem 2.5rem;
}

.portal-header__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  padding: 1.5rem 2rem 3rem;
  max-width: 1100px;
  margin: 0 auto;
}

.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: transform var(--transition), border-color var(--transition);
}

.course-card:hover {
  transform: translateY(-4px);
  border-color: var(--secondary);
}

.course-card--accent:hover {
  border-color: var(--primary);
}

.course-card__icon {
  width: 56px;
  height: 56px;
  margin-bottom: 1.25rem;
  color: var(--secondary);
}

.course-card--accent .course-card__icon {
  color: var(--primary);
}

.course-card__icon svg {
  width: 100%;
  height: 100%;
}

.course-card h2 {
  font-size: 1.35rem;
  margin-bottom: 0.35rem;
  color: var(--text);
}

.course-card__tag {
  font-size: 0.85rem;
  color: var(--primary);
  font-weight: 600;
  margin-bottom: 0.85rem;
}

.course-card__desc {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  line-height: 1.55;
}

.course-card__topics {
  list-style: none;
  flex: 1;
  margin-bottom: 1.5rem;
}

.course-card__topics li {
  font-size: 0.85rem;
  color: var(--text-muted);
  padding: 0.3rem 0 0.3rem 1rem;
  position: relative;
}

.course-card__topics li::before {
  content: '\2022';
  position: absolute;
  left: 0;
  color: var(--secondary);
}

.course-card .btn {
  align-self: center;
}

.back-to-portal {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.back-to-portal:hover,
.back-to-portal:focus-visible {
  color: var(--primary);
}

.placeholder-page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2rem;
  text-align: center;
}

.placeholder-page h2 {
  color: var(--primary);
  margin-bottom: 1rem;
}

.placeholder-page p {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

@media (max-width: 768px) {
  .courses-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}

/* ---- Auth: login / cadastro ---- */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
  background:
    radial-gradient(ellipse at top, rgba(74, 144, 217, 0.18), transparent 55%),
    var(--bg-main);
}

.auth-shell {
  width: 100%;
  max-width: 420px;
}

.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 2rem;
}

.auth-card__eyebrow {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 0.75rem;
}

.auth-card h1 {
  font-size: 1.75rem;
  margin-bottom: 0.5rem;
}

.auth-card__subtitle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

.auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.auth-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 0.4rem;
  color: var(--text);
}

.auth-field input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  transition: border-color var(--transition);
}

.auth-field input:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: var(--focus-ring);
}

.auth-field select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
}

.auth-field select:focus {
  outline: none;
  border-color: var(--secondary);
  box-shadow: var(--focus-ring);
}

.auth-submit {
  width: 100%;
  justify-content: center;
  margin-top: 0.5rem;
  padding: 0.75rem 1.1rem;
}

.auth-submit:disabled {
  opacity: 0.7;
  cursor: wait;
}

.auth-switch {
  margin-top: 1.5rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.auth-demo {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 10px;
  border: 1px dashed var(--border);
  background: rgba(74, 144, 217, 0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.auth-demo strong {
  display: block;
  color: var(--secondary);
  margin-bottom: 0.5rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.auth-demo p {
  margin: 0.25rem 0;
}

.auth-demo code {
  color: var(--primary);
  font-family: 'Inter', monospace;
  font-size: 0.9rem;
}

.auth-message {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.auth-message--error {
  background: rgba(231, 76, 60, 0.15);
  border: 1px solid rgba(231, 76, 60, 0.4);
  color: #f5b7b1;
}

.auth-message--success {
  background: rgba(46, 204, 113, 0.15);
  border: 1px solid rgba(46, 204, 113, 0.4);
  color: #a9dfbf;
}

/* Barra de usuário logado */
.auth-bar {
  position: sticky;
  top: 0;
  z-index: 1100;
  background: rgba(30, 41, 59, 0.95);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(8px);
}

.auth-bar__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.auth-bar__brand {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
}

.auth-bar__brand:hover {
  color: var(--primary);
}

.auth-bar__user {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.auth-bar__name {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 180px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.auth-bar__role {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 0.2rem 0.5rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.auth-bar__role--admin {
  color: var(--primary);
  border-color: rgba(245, 166, 35, 0.45);
  background: rgba(245, 166, 35, 0.12);
}

.auth-bar__role--comum {
  color: var(--text-muted);
  background: var(--bg-main);
}

.auth-bar__gear {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--bg-main);
  color: var(--text-muted);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.auth-bar__gear:hover,
.auth-bar__gear:focus-visible {
  color: var(--primary);
  border-color: var(--primary);
  background: rgba(245, 166, 35, 0.1);
  box-shadow: var(--focus-ring);
}

.auth-bar__logout {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
  min-width: auto;
}

body.has-auth-bar.aula-page .progress-topbar {
  top: 48px;
}

body.has-auth-bar.aula-page .sidebar {
  top: calc(var(--topbar-height) + 48px);
  height: calc(100vh - var(--topbar-height) - 48px);
}

body.has-auth-bar.aula-page .main-content {
  margin-top: calc(var(--topbar-height) + 48px);
}
