/* ============================================================
   SGPP — Sistema de Gestão e Planejamento Pedagógico
   Design System Refinado — Identidade Oficial (Azul Marinho,
   Azul Celeste & Laranja Assinatura da Logo SGPP)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800&family=Plus+Jakarta+Sans:wght@600;700;800&display=swap');

:root {
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-display: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

    /* Paleta Oficial Extraída da Logo SGPP */
    --brand-navy-950: #061838;
    --brand-navy-900: #08224e;
    --brand-navy-800: #003078;
    --brand-navy-700: #0a4296;
    --brand-navy-50: #eef5ff;
    --brand-navy-100: #dbeafe;

    --brand-sky-500: #0098f8;
    --brand-sky-600: #0284c7;
    --brand-sky-50: #eff9ff;
    --brand-sky-200: #bae6fd;

    --brand-orange-400: #ff9224;
    --brand-orange-500: #f87200;
    --brand-orange-600: #ea580c;
    --brand-orange-700: #c2410c;
    --brand-orange-50: #fff7ed;
    --brand-orange-100: #ffedd5;
    --brand-orange-200: #fed7aa;
    --brand-orange-300: #fdba74;

    /* Tokens Semânticos */
    --primary: var(--brand-orange-600);
    --primary-hover: var(--brand-orange-700);
    --primary-light: var(--brand-orange-50);
    --primary-subtle: var(--brand-orange-100);

    --navy: var(--brand-navy-800);
    --navy-hover: var(--brand-navy-900);

    --secondary: #475569;
    --secondary-hover: #334155;

    --dark-slate: var(--brand-navy-950);
    --dark-surface: var(--brand-navy-900);
    --dark-border: rgba(255, 255, 255, 0.12);

    --bg-page: #f6f8fc;
    --bg-surface: #ffffff;
    --bg-subtle: #f1f5f9;

    --border-color: #e2e8f0;
    --border-focus: var(--brand-orange-500);

    --text-primary: #0f172a;
    --text-secondary: #475569;
    --text-muted: #64748b;

    /* Acentos de Status */
    --success: #059669;
    --success-light: #ecfdf5;
    --success-border: #a7f3d0;

    --warning: #d97706;
    --warning-light: #fffbeb;
    --warning-border: #fde68a;

    --danger: #dc2626;
    --danger-light: #fef2f2;
    --danger-border: #fecaca;

    --info: #0284c7;
    --info-light: #f0f9ff;
    --info-border: #bae6fd;

    /* Overrides de Variáveis Bootstrap 5 para alinhar text-primary / bg-primary / links à marca */
    --bs-primary: #003078;
    --bs-primary-rgb: 0, 48, 120;
    --bs-link-color: #003078;
    --bs-link-color-rgb: 0, 48, 120;
    --bs-link-hover-color: #ea580c;
    --bs-link-hover-color-rgb: 234, 88, 12;
    --bs-focus-ring-color: rgba(248, 114, 0, 0.25);

    /* Gradientes da Marca */
    --grad-orange: linear-gradient(135deg, #ff8a1e 0%, #f87200 50%, #ea580c 100%);
    --grad-orange-hover: linear-gradient(135deg, #f87200 0%, #ea580c 50%, #c2410c 100%);
    --grad-navy: linear-gradient(135deg, #061838 0%, #092554 55%, #003078 100%);
    --grad-sky: linear-gradient(135deg, #02528a 0%, #0284c7 55%, #0098f8 100%);
    --grad-bar-accent: linear-gradient(90deg, #ff9224 0%, #f87200 55%, #ea580c 100%);

    /* Dimensões e Efeitos */
    --radius-sm: 9px;
    --radius-md: 13px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 3px 0 rgba(6, 24, 56, 0.05), 0 1px 2px -1px rgba(6, 24, 56, 0.04);
    --shadow-md: 0 6px 16px -3px rgba(6, 24, 56, 0.08), 0 2px 6px -2px rgba(6, 24, 56, 0.04);
    --shadow-lg: 0 14px 28px -6px rgba(6, 24, 56, 0.10), 0 6px 12px -4px rgba(6, 24, 56, 0.05);
    --shadow-xl: 0 24px 40px -10px rgba(6, 24, 56, 0.14), 0 8px 16px -6px rgba(6, 24, 56, 0.06);
    --shadow-orange: 0 4px 14px rgba(234, 88, 12, 0.28);
    --shadow-orange-lg: 0 8px 22px rgba(234, 88, 12, 0.38);
}

/* ============================================================
   RESET & TIPOGRAFIA
   ============================================================ */

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

body {
    font-family: var(--font-sans);
    background-color: var(--bg-page);
    color: var(--text-primary);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.main-content {
    flex: 1 0 auto;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--text-primary);
    font-weight: 700;
    letter-spacing: -0.022em;
}

/* Utilitários da Marca */
.text-brand-orange {
    color: var(--brand-orange-600) !important;
}

.text-brand-navy {
    color: var(--brand-navy-800) !important;
}

.bg-brand-orange {
    background: var(--grad-orange) !important;
    color: #ffffff !important;
}

/* ============================================================
   BARRA DE NAVEGAÇÃO MODERNA (AZUL MARINHO + FILETE LARANJA)
   ============================================================ */

.navbar-senai {
    background: linear-gradient(95deg, #061838 0%, #092554 55%, #003078 100%) !important;
    border-bottom: none;
    box-shadow: 0 6px 24px rgba(6, 24, 56, 0.18);
    padding: 9px 0 11px;
    position: sticky;
    top: 0;
    z-index: 1020;
    backdrop-filter: blur(12px);
}

.navbar-senai::after {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, #ff9224 0%, #f87200 45%, #ea580c 78%, #0098f8 100%);
    pointer-events: none;
}

.navbar-brand-senai {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.15rem;
    color: #ffffff !important;
    text-decoration: none;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.navbar-brand-senai img {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.28));
    transition: transform 0.2s ease;
}

.navbar-brand-senai:hover img {
    transform: scale(1.05);
}

.brand-icon-wrapper {
    width: 38px;
    height: 38px;
    background: var(--grad-orange);
    border-radius: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.2rem;
    box-shadow: 0 6px 14px rgba(234, 88, 12, 0.28);
}

.nav-link-modern {
    color: #cbd5e1 !important;
    font-weight: 500;
    font-size: 0.88rem;
    padding: 6px 10px !important;
    border-radius: var(--radius-sm);
    border: 1px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.nav-link-modern i {
    font-size: 1rem;
    color: #93b4dc;
    transition: color 0.2s ease, transform 0.2s ease;
}

.nav-link-modern:hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.09);
}

.nav-link-modern:hover i {
    color: var(--brand-orange-400);
}

.nav-link-modern.active {
    color: #ffffff !important;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(248, 114, 0, 0.24) 0%, rgba(234, 88, 12, 0.18) 100%);
    border: 1px solid rgba(255, 146, 36, 0.48);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.nav-link-modern.active i {
    color: var(--brand-orange-400);
}

.user-profile-badge {
    background-color: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 9999px;
    padding: 5px 12px;
    color: #f8fafc;
    font-size: 0.85rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 7px;
    transition: all 0.2s ease;
}

.user-profile-badge:hover,
.user-profile-badge:focus {
    background-color: rgba(255, 255, 255, 0.16);
    border-color: rgba(255, 146, 36, 0.45);
    color: #ffffff;
}

.dropdown-menu {
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 6px;
    box-shadow: var(--shadow-lg) !important;
}

.dropdown-item {
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    background-color: var(--brand-orange-50);
    color: var(--brand-orange-700);
}

.btn-logout {
    background-color: rgba(220, 38, 38, 0.14);
    color: #fca5a5 !important;
    border: 1px solid rgba(248, 113, 113, 0.28);
    border-radius: var(--radius-sm);
    padding: 6px 12px;
    font-size: 0.88rem;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
}

.btn-logout:hover {
    background-color: #dc2626;
    color: #ffffff !important;
    border-color: #dc2626;
    box-shadow: 0 3px 10px rgba(220, 38, 38, 0.35);
}

/* ============================================================
   CARDS MODERNOS & SUPERFÍCIES
   ============================================================ */

.card-modern {
    background: var(--bg-surface);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.25s ease;
    overflow: hidden;
}

.card-modern:hover {
    box-shadow: var(--shadow-md);
    border-color: rgba(248, 114, 0, 0.22);
}

.card-header-modern {
    background-color: #ffffff;
    border-bottom: 1px solid var(--border-color);
    padding: 20px 24px;
}

.card-body-modern {
    padding: 24px;
}

/* ============================================================
   DASHBOARD KPI CARDS (TRÍADE OFICIAL DA LOGO SGPP)
   ============================================================ */

.dash-quadrado {
    position: relative;
    border: none;
    border-radius: var(--radius-xl);
    color: #ffffff;
    overflow: hidden;
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s ease;
    box-shadow: 0 12px 28px -6px rgba(6, 24, 56, 0.16);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 274px;
}

.dash-quadrado::before {
    content: '';
    position: absolute;
    top: -45%;
    right: -25%;
    width: 240px;
    height: 240px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 68%);
    pointer-events: none;
}

.dash-quadrado:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 38px -8px rgba(6, 24, 56, 0.25);
}

/* 1. Planejamento Docente — Azul Marinho Institucional da Logo */
.dash-card-planejamento {
    background: linear-gradient(135deg, #061838 0%, #003078 58%, #0a469e 100%);
}

.dash-card-planejamento:hover {
    box-shadow: 0 22px 38px -8px rgba(0, 48, 120, 0.36);
}

/* 2. Planos de Aula — Azul Celeste das Páginas da Logo */
.dash-card-plano {
    background: linear-gradient(135deg, #035388 0%, #0284c7 52%, #0098f8 100%);
}

.dash-card-plano:hover {
    box-shadow: 0 22px 38px -8px rgba(0, 152, 248, 0.34);
}

/* 3. Atividades — Laranja Assinatura da Logo */
.dash-card-atividade {
    background: linear-gradient(135deg, #b83a06 0%, #ea580c 48%, #f87c0a 100%);
}

.dash-card-atividade:hover {
    box-shadow: 0 22px 38px -8px rgba(234, 88, 12, 0.38);
}

.dash-quadrado .text-white-50 {
    color: rgba(255, 255, 255, 0.88) !important;
}

.dash-icon-circle {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.dash-numero {
    font-family: var(--font-display);
    font-size: 3.4rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
}

.dash-action-bar {
    background: rgba(6, 24, 56, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    padding: 14px 22px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.2s ease;
}

.dash-quadrado:hover .dash-action-bar {
    background: rgba(6, 24, 56, 0.28);
}

.dash-action-bar .arrow-icon {
    transition: transform 0.2s ease;
    display: flex;
    align-items: center;
}

.dash-quadrado:hover .dash-action-bar .arrow-icon {
    transform: translateX(4px);
}

/* ============================================================
   TABELAS MODERNAS
   ============================================================ */

.table-modern-wrapper {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.table-modern {
    margin-bottom: 0;
    width: 100%;
}

.table-modern thead th {
    background-color: var(--brand-navy-950);
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 15px 18px;
    border: none;
    border-bottom: 2px solid var(--brand-orange-500);
    vertical-align: middle;
}

.table-modern tbody tr {
    transition: background-color 0.15s ease;
    border-bottom: 1px solid var(--border-color);
}

.table-modern tbody tr:last-child {
    border-bottom: none;
}

.table-modern tbody tr:hover {
    background-color: #fffaf5;
}

.table-modern tbody td {
    padding: 14px 18px;
    vertical-align: middle;
    color: var(--text-primary);
    font-size: 0.92rem;
}

/* Paginação Alinhada ao Laranja */
.pagination .page-link {
    color: var(--brand-navy-800);
    border-color: var(--border-color);
    font-weight: 500;
}

.pagination .page-link:hover {
    color: var(--brand-orange-700);
    background-color: var(--brand-orange-50);
    border-color: var(--brand-orange-200);
}

.pagination .page-item.active .page-link {
    background: var(--grad-orange);
    border-color: var(--brand-orange-600);
    color: #ffffff;
    font-weight: 700;
}

/* ============================================================
   BOTÕES E AÇÕES (LARANJA ASSINATURA + AZUL MARINHO)
   ============================================================ */

.btn {
    font-weight: 600;
    border-radius: var(--radius-sm);
    padding: 8px 16px;
    font-size: 0.92rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: -0.01em;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.82rem;
    border-radius: 7px;
    gap: 5px;
}

.btn-lg {
    padding: 12px 24px;
    font-size: 1.02rem;
    border-radius: var(--radius-md);
    gap: 10px;
}

/* Ação Principal — Laranja Assinatura SGPP */
.btn-primary {
    background: var(--grad-orange);
    border-color: var(--brand-orange-600);
    color: #ffffff;
    box-shadow: var(--shadow-orange);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
    background: var(--grad-orange-hover) !important;
    border-color: var(--brand-orange-700) !important;
    color: #ffffff !important;
    box-shadow: var(--shadow-orange-lg);
    transform: translateY(-1px);
}

.btn-primary:disabled {
    opacity: 0.68;
    transform: none;
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border-color: var(--success);
    color: #ffffff;
    box-shadow: 0 2px 8px rgba(5, 150, 105, 0.24);
}

.btn-success:hover, .btn-success:focus {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    border-color: #047857;
    color: #ffffff;
    box-shadow: 0 5px 14px rgba(5, 150, 105, 0.34);
    transform: translateY(-1px);
}

.btn-danger {
    background-color: var(--danger);
    border-color: var(--danger);
    color: #ffffff;
}

.btn-danger:hover {
    background-color: #b91c1c;
    border-color: #b91c1c;
    transform: translateY(-1px);
}

/* Ação Secundária — Azul Marinho com hover Laranja Quente */
.btn-outline-primary {
    color: var(--brand-navy-800);
    border-color: #cbd5e1;
    background: #ffffff;
}

.btn-outline-primary:hover,
.btn-outline-primary:focus {
    background-color: var(--brand-orange-50);
    border-color: var(--brand-orange-500);
    color: var(--brand-orange-700);
    transform: translateY(-1px);
}

/* Dias da semana selecionados (btn-check) em Laranja SGPP */
.btn-check:checked + .btn-outline-primary,
.btn-outline-primary.active,
.btn-outline-primary:active {
    background: var(--grad-orange) !important;
    border-color: var(--brand-orange-600) !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(234, 88, 12, 0.26);
}

.btn-outline-secondary {
    color: var(--text-secondary);
    border-color: #cbd5e1;
    background: #ffffff;
}

.btn-outline-secondary:hover {
    background-color: var(--bg-subtle);
    border-color: #94a3b8;
    color: var(--brand-navy-950);
    transform: translateY(-1px);
}

.btn-outline-danger {
    color: var(--danger);
    border-color: #fecaca;
    background: #ffffff;
}

.btn-outline-danger:hover {
    background-color: var(--danger);
    border-color: var(--danger);
    color: #ffffff;
    transform: translateY(-1px);
}

/* ============================================================
   CAMPOS DE ENTRADA & FORMULÁRIOS
   ============================================================ */

.form-label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-control, .form-select {
    border: 1px solid #d7e0ea;
    border-radius: var(--radius-sm);
    padding: 10px 14px;
    font-size: 0.95rem;
    color: var(--text-primary);
    background-color: #ffffff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.form-control:focus, .form-select:focus {
    border-color: var(--brand-orange-500);
    box-shadow: 0 0 0 3px rgba(248, 114, 0, 0.16);
    outline: none;
}

.form-control-lg, .form-select-lg {
    padding: 12px 16px;
    font-size: 1.02rem;
    border-radius: var(--radius-md);
}

.form-select {
    padding-right: 2.35rem;
}

.form-select-lg {
    padding-right: 2.6rem;
}

.form-check-input:checked {
    background-color: var(--brand-orange-600);
    border-color: var(--brand-orange-600);
}

.form-check-input:focus {
    border-color: var(--brand-orange-500);
    box-shadow: 0 0 0 0.2rem rgba(248, 114, 0, 0.2);
}

/* Card selecionável (Fonte de Atividades em index.html) */
.source-card {
    transition: all 0.2s ease;
    border-radius: var(--radius-md) !important;
}

.source-card:hover {
    border-color: var(--brand-orange-300) !important;
    background-color: #fffaf5 !important;
}

.source-card.border-primary {
    border-color: var(--brand-orange-500) !important;
    background-color: var(--brand-orange-50) !important;
    box-shadow: 0 0 0 1px rgba(248, 114, 0, 0.25);
}

/* Upload Dropzone estilizado */
.upload-dropzone {
    border: 2px dashed #cbd5e1;
    background: #f8fafc;
    border-radius: var(--radius-md);
    padding: 24px 20px;
    text-align: center;
    transition: all 0.22s ease;
    cursor: pointer;
}

.upload-dropzone:hover {
    border-color: var(--brand-orange-500);
    background: var(--brand-orange-50);
}

.upload-icon-badge {
    width: 52px;
    height: 52px;
    border-radius: 13px;
    background: var(--brand-orange-100);
    color: var(--brand-orange-600);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-bottom: 12px;
    transition: all 0.22s ease;
}

.upload-dropzone:hover .upload-icon-badge {
    background: var(--grad-orange);
    color: #ffffff;
    box-shadow: var(--shadow-orange);
}

/* ============================================================
   BADGES & STATUS
   ============================================================ */

.badge {
    font-weight: 600;
    padding: 5px 10px;
    letter-spacing: 0.01em;
}

.badge-subtle-primary {
    background-color: var(--brand-navy-50);
    color: var(--brand-navy-800);
    border: 1px solid var(--brand-navy-100);
}

.badge-subtle-orange {
    background-color: var(--brand-orange-50);
    color: var(--brand-orange-700);
    border: 1px solid var(--brand-orange-200);
}

.badge-subtle-info {
    background-color: var(--brand-sky-50);
    color: #0369a1;
    border: 1px solid var(--brand-sky-200);
}

.badge-subtle-success {
    background-color: #dcfce7;
    color: #15803d;
    border: 1px solid #bbf7d0;
}

.badge-subtle-warning {
    background-color: #fef3c7;
    color: #b45309;
    border: 1px solid #fde68a;
}

.badge-subtle-danger {
    background-color: #fee2e2;
    color: #b91c1c;
    border: 1px solid #fecaca;
}

/* ============================================================
   TELAS DE AUTENTICAÇÃO (LOGIN, CADASTRO, RECUPERAÇÃO)
   ============================================================ */

/* Usado também em páginas internas (estado vazio) */
.auth-card-icon {
    width: 56px;
    height: 56px;
    border-radius: 15px;
    background: var(--brand-orange-50);
    border: 1px solid var(--brand-orange-200);
    color: var(--brand-orange-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 16px;
}

.sgpp-auth {
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1fr;
    background: #ffffff;
    color: #0f172a;
}

/* Painel lateral (apenas desktop) — Azul Marinho Profundo + Glow Laranja */
.sgpp-aside {
    display: none;
    position: relative;
    overflow: hidden;
    background: linear-gradient(155deg, #051430 0%, #082352 55%, #003482 100%);
    color: #cbd5e1;
    padding: 36px 44px;
    flex-direction: column;
    justify-content: space-between;
    align-items: stretch;
    border-right: 4px solid var(--brand-orange-500);
}

.sgpp-aside::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 65% 45% at 50% 62%, rgba(248, 114, 0, 0.16) 0%, transparent 70%),
        radial-gradient(ellipse 55% 40% at 15% 15%, rgba(0, 152, 248, 0.14) 0%, transparent 65%);
    pointer-events: none;
}

.sgpp-aside > * {
    position: relative;
    z-index: 1;
}

.sgpp-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.08rem;
    letter-spacing: -0.015em;
}

.sgpp-aside .sgpp-brand { color: #ffffff; }
.sgpp-main .sgpp-brand  { color: var(--brand-navy-950); }

.sgpp-aside-text {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 100%;
    margin: auto 0;
    transform: translateY(-16px);
}

.sgpp-aside-text h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.02em;
    max-width: 22ch;
    margin-bottom: 14px;
}

.sgpp-aside-text p {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.6;
    max-width: 40ch;
    margin: 0;
}

.sgpp-login-logo {
    max-width: 470px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.28));
    transition: opacity 0.25s ease, transform 0.25s ease;
}

.sgpp-login-logo:hover {
    opacity: 0.98;
    transform: scale(1.02);
}

.sgpp-aside-foot {
    font-size: 0.82rem;
    color: rgba(203, 213, 225, 0.72);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Área do formulário */
.sgpp-main {
    display: flex;
    flex-direction: column;
    padding: 20px;
    min-width: 0;
    background: linear-gradient(180deg, #ffffff 0%, #fafbfe 100%);
}

.sgpp-main-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.95rem;
    color: #64748b;
}

.sgpp-form-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.sgpp-form {
    width: 100%;
    max-width: 420px;
}

.sgpp-form h1 {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-navy-950);
    letter-spacing: -0.025em;
    margin-bottom: 6px;
}

.sgpp-sub {
    color: #64748b;
    font-size: 0.98rem;
    margin-bottom: 28px;
}

.sgpp-field { margin-bottom: 18px; }

.sgpp-label-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 6px;
}

.sgpp-label-row .sgpp-link {
    font-size: 0.88rem;
}

.sgpp-label {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 6px;
}

.sgpp-label-row .sgpp-label { margin-bottom: 0; }

.sgpp-input {
    width: 100%;
    height: 48px;
    border: 1px solid #d5dbe3;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 1rem;
    color: #0f172a;
    background: #ffffff;
    transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.sgpp-input:focus {
    outline: none;
    border-color: var(--brand-orange-500);
    box-shadow: 0 0 0 3px rgba(248, 114, 0, 0.16);
}

.sgpp-input.is-invalid { border-color: #dc2626; }

.sgpp-pwd { position: relative; }
.sgpp-pwd .sgpp-input { padding-right: 78px; }

.sgpp-pwd-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 8px;
    border-radius: 6px;
    cursor: pointer;
    transition: color 0.15s ease, background-color 0.15s ease;
}

.sgpp-pwd-toggle:hover {
    color: var(--brand-orange-700);
    background: var(--brand-orange-50);
}

.sgpp-btn {
    width: 100%;
    height: 49px;
    border: 0;
    border-radius: 10px;
    background: var(--grad-orange);
    color: #ffffff;
    font-size: 1.02rem;
    font-weight: 700;
    cursor: pointer;
    box-shadow: var(--shadow-orange);
    transition: all 0.2s ease;
    margin-top: 8px;
}

.sgpp-btn:hover, .sgpp-btn:focus-visible {
    background: var(--grad-orange-hover);
    box-shadow: var(--shadow-orange-lg);
    transform: translateY(-1px);
}

.sgpp-btn:disabled { opacity: 0.65; cursor: default; transform: none; }

.sgpp-link {
    color: var(--brand-orange-600);
    font-weight: 600;
    text-decoration: none;
}

.sgpp-link:hover {
    color: var(--brand-orange-700);
    text-decoration: underline;
}

.sgpp-muted-link {
    color: #64748b;
    font-size: 0.92rem;
    text-decoration: none;
    transition: color 0.15s ease;
}

.sgpp-muted-link:hover { color: var(--brand-orange-600); }

.sgpp-alert {
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.925rem;
    margin-bottom: 20px;
    border: 1px solid;
}

.sgpp-alert-error   { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.sgpp-alert-success { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.sgpp-alert-warn    { background: #fff7ed; border-color: #fed7aa; color: #9a3412; }

.sgpp-foot {
    margin-top: 24px;
    font-size: 0.925rem;
    color: #64748b;
    text-align: center;
}

/* Força da senha */
.sgpp-strength {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.sgpp-strength-track {
    flex: 1;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
}

.sgpp-strength-bar {
    height: 100%;
    width: 0;
    background: #e2e8f0;
    transition: width 0.2s, background-color 0.2s;
}

.sgpp-strength-label {
    font-size: 0.78rem;
    color: #64748b;
    min-width: 52px;
    text-align: right;
}

.sgpp-rules {
    list-style: none;
    padding: 0;
    margin: 10px 0 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
    font-size: 0.84rem;
    color: #94a3b8;
}

.sgpp-rules li::before {
    content: "–";
    display: inline-block;
    width: 14px;
}

.sgpp-rules li.ok { color: #15803d; }
.sgpp-rules li.ok::before { content: "✓"; }

.sgpp-hint {
    font-size: 0.85rem;
    margin-top: 6px;
    min-height: 1em;
}

/* Código OTP */
.sgpp-otp {
    display: flex;
    gap: 8px;
}

.sgpp-otp input {
    flex: 1;
    min-width: 0;
    height: 48px;
    text-align: center;
    font-size: 1.25rem;
    font-weight: 700;
    border: 1px solid #d5dbe3;
    border-radius: 10px;
    font-variant-numeric: tabular-nums;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.sgpp-otp input:focus {
    outline: none;
    border-color: var(--brand-orange-500);
    box-shadow: 0 0 0 3px rgba(248, 114, 0, 0.16);
}

.sgpp-otp input.error { border-color: #dc2626; }

.sgpp-step {
    display: inline-block;
    font-size: 0.75rem;
    color: var(--brand-orange-700);
    background: var(--brand-orange-50);
    border: 1px solid var(--brand-orange-200);
    padding: 3px 10px;
    border-radius: 999px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 10px;
}

@media (min-width: 992px) {
    .sgpp-auth { grid-template-columns: 1fr 1fr; }
    .sgpp-aside { display: flex; }
    .sgpp-main { padding: 40px 48px; }
    .sgpp-main-top { justify-content: flex-end; }
    .sgpp-main-top .sgpp-brand { display: none; }
}

@media (max-width: 575.98px) {
    .sgpp-main { padding: 16px; }
    .sgpp-form-wrap { align-items: flex-start; padding: 32px 0 24px; }
    .sgpp-input, .sgpp-otp input { font-size: 16px; } /* evita zoom no iOS */
    .sgpp-rules { grid-template-columns: 1fr; }
    .sgpp-otp { gap: 6px; }
}

/* ============================================================
   LOADING OVERLAY MODERNO
   ============================================================ */

.loading-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(6, 24, 56, 0.78);
    z-index: 9999;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(8px);
}

.loading-overlay.active {
    display: flex;
}

.loading-box {
    background: #ffffff;
    border-radius: var(--radius-xl);
    padding: 40px 45px;
    text-align: center;
    box-shadow: 0 25px 50px -12px rgba(6, 24, 56, 0.42);
    max-width: 460px;
    width: 90%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-top: 4px solid var(--brand-orange-500);
    animation: modal-pop 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modal-pop {
    from { opacity: 0; transform: scale(0.92); }
    to { opacity: 1; transform: scale(1); }
}

.loading-spinner {
    width: 56px;
    height: 56px;
    border: 4px solid #f1f5f9;
    border-top: 4px solid var(--brand-orange-500);
    border-right: 4px solid var(--brand-sky-500);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin: 0 auto 20px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-box h4 {
    color: var(--brand-navy-950);
    font-weight: 800;
    font-size: 1.35rem;
    margin-bottom: 8px;
}

.loading-box p {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

.loading-progress {
    height: 6px;
    background: #f1f5f9;
    border-radius: 999px;
    overflow: hidden;
    margin-bottom: 22px;
}

.loading-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #003078, #0098f8, #f87200, #ff9224);
    border-radius: 999px;
    animation: progress-indeterminate 1.6s ease-in-out infinite;
}

@keyframes progress-indeterminate {
    0% { width: 0%; margin-left: 0; }
    50% { width: 60%; margin-left: 20%; }
    100% { width: 0%; margin-left: 100%; }
}

.loading-steps {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.loading-step {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.88rem;
    font-weight: 500;
}

.loading-step.active {
    color: var(--brand-orange-600);
    font-weight: 600;
}

.loading-step.done {
    color: var(--success);
    font-weight: 600;
}

.loading-step-icon {
    font-size: 1rem;
    width: 20px;
    text-align: center;
}

/* ============================================================
   RODAPÉ DO SISTEMA
   ============================================================ */

.footer-modern {
    background: #ffffff;
    border-top: 1px solid var(--border-color);
    padding: 20px 0;
    margin-top: 50px;
    color: var(--text-muted);
    font-size: 0.88rem;
}

/* Utilitários */
.hover-lift {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
    border-color: var(--brand-orange-200) !important;
}

.fw-extrabold {
    font-weight: 800;
}

.max-w-700 {
    max-width: 700px;
}

/* ============================================================
   LANDING PAGE SGPP (VISUAL PREMIUM — AZUL MARINHO & LARANJA)
   ============================================================ */

.landing-body {
    background-color: #f6f8fc;
    color: #0f172a;
    overflow-x: hidden;
}

.landing-navbar {
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 0;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

.landing-navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 6px 24px -6px rgba(6, 24, 56, 0.10);
}

.landing-logo-img {
    border-radius: 9px;
    transition: transform 0.2s ease;
}

.navbar-brand:hover .landing-logo-img {
    transform: translateY(-1px) scale(1.03);
}

.landing-brand-title {
    font-family: var(--font-display);
    color: var(--brand-navy-950);
    letter-spacing: -0.03em;
}

.landing-brand-divider {
    color: #cbd5e1;
    font-weight: 300;
}

.landing-brand-tag {
    font-size: 0.74rem;
    font-weight: 700;
    color: var(--brand-orange-700);
    background: var(--brand-orange-50);
    border: 1px solid var(--brand-orange-200);
    padding: 2px 9px;
    border-radius: 999px;
    letter-spacing: 0.01em;
}

.landing-brand-subtitle {
    font-size: 0.73rem;
    font-weight: 500;
    color: #64748b;
}

.landing-nav-link {
    color: #475569 !important;
    font-weight: 600;
    font-size: 0.92rem;
    position: relative;
    transition: color 0.2s ease;
}

.landing-nav-link:hover,
.landing-nav-link.active {
    color: var(--brand-orange-600) !important;
}

/* Botões Executivos da Landing */
.btn-landing-primary {
    background: var(--grad-orange);
    color: #ffffff;
    font-weight: 700;
    font-size: 0.92rem;
    border: 1px solid var(--brand-orange-600);
    border-radius: 9px;
    box-shadow: var(--shadow-orange);
    transition: all 0.2s ease;
}

.btn-landing-primary:hover {
    background: var(--grad-orange-hover);
    border-color: var(--brand-orange-700);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-orange-lg);
}

.btn-landing-outline {
    background-color: #ffffff;
    color: var(--brand-navy-950);
    font-weight: 600;
    font-size: 0.92rem;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    transition: all 0.2s ease;
}

.btn-landing-outline:hover {
    background-color: var(--brand-orange-50);
    border-color: var(--brand-orange-400);
    color: var(--brand-orange-700);
}

/* Botão Hero em Destaque Laranja sobre Fundo Azul Marinho */
.btn-hero-accent {
    background: var(--grad-orange);
    color: #ffffff !important;
    border: 1px solid rgba(255, 180, 90, 0.35);
    border-radius: 12px;
    font-weight: 700;
    box-shadow: 0 10px 26px -4px rgba(248, 114, 0, 0.48);
    transition: all 0.22s ease;
}

.btn-hero-accent:hover {
    background: var(--grad-orange-hover);
    transform: translateY(-2px);
    box-shadow: 0 14px 32px -4px rgba(248, 114, 0, 0.62);
    color: #ffffff !important;
}

/* Hero Section com Azul Marinho da Logo + Acentos Quentes em Laranja */
.landing-hero {
    background: linear-gradient(135deg, #051430 0%, #082352 52%, #003482 100%);
    border-bottom: 4px solid var(--brand-orange-500);
}

.landing-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 52% 60% at 82% 24%, rgba(248, 114, 0, 0.19) 0%, transparent 65%),
        radial-gradient(ellipse 46% 52% at 14% 88%, rgba(0, 152, 248, 0.16) 0%, transparent 62%);
    pointer-events: none;
}

.landing-eyebrow {
    background-color: rgba(248, 114, 0, 0.14);
    border: 1px solid rgba(255, 146, 36, 0.35);
    border-radius: 999px;
    padding: 5px 15px;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffedd5;
}

.landing-eyebrow-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: var(--brand-orange-400);
    box-shadow: 0 0 10px rgba(255, 146, 36, 0.85);
    display: inline-block;
}

.landing-hero-title {
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 3.6vw, 3.15rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.landing-hero-highlight {
    background: linear-gradient(90deg, #ffaa3b 0%, #ff8210 55%, #f86800 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.landing-hero-lead {
    font-size: 1.06rem;
    color: #cbd5e1;
    line-height: 1.68;
    font-weight: 400;
}

.landing-hero-lead strong {
    color: #ffffff;
}

.landing-metric-value {
    font-family: var(--font-display);
    font-size: 1.08rem;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
}

.landing-metric-value i {
    color: var(--brand-orange-400);
}

.landing-metric-label {
    font-size: 0.78rem;
    color: #a8bdd8;
}

/* Mockup Estruturado de UI (Coluna Direita) */
.landing-ui-window {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-top: 3px solid var(--brand-orange-500);
    border-radius: 16px;
    box-shadow: 0 28px 56px -14px rgba(4, 15, 38, 0.45), 0 4px 14px -2px rgba(6, 24, 56, 0.12);
    overflow: hidden;
}

.landing-ui-header {
    background: #f8fafc;
    border-bottom: 1px solid #e2e8f0;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.ui-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background-color: #cbd5e1;
    display: inline-block;
}

.ui-dot:nth-child(1) { background-color: #f87200; }
.ui-dot:nth-child(2) { background-color: #0098f8; }
.ui-dot:nth-child(3) { background-color: #003078; }

.landing-status-pill {
    font-size: 0.72rem;
    font-weight: 600;
    color: #065f46;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    padding: 3px 10px;
    border-radius: 999px;
}

.landing-ui-body {
    padding: 20px 22px;
}

.landing-tag-neutral {
    font-size: 0.72rem;
    font-weight: 600;
    color: #475569;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 3px 10px;
    border-radius: 6px;
}

.landing-tag-primary {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-orange-700);
    background: var(--brand-orange-50);
    border: 1px solid var(--brand-orange-200);
    padding: 3px 10px;
    border-radius: 6px;
}

.landing-schedule-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.landing-schedule-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 14px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #f8fafc;
    transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}

.landing-schedule-row:hover {
    background: #ffffff;
    border-color: var(--brand-orange-300);
    transform: translateX(2px);
}

.schedule-date-badge {
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--brand-navy-800);
    background: var(--brand-navy-50);
    border: 1px solid var(--brand-navy-100);
    padding: 4px 10px;
    border-radius: 7px;
    white-space: nowrap;
}

.schedule-bloom-tag {
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--brand-orange-700);
    background: var(--brand-orange-50);
    border: 1px solid var(--brand-orange-200);
    padding: 3px 10px;
    border-radius: 999px;
    white-space: nowrap;
}

.landing-ui-footer {
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.ui-doc-pill {
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--brand-navy-950);
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    padding: 4px 10px;
    border-radius: 7px;
}

/* Seções e Títulos */
.landing-section-white {
    background-color: #ffffff;
}

.landing-section-subtle {
    background-color: #f6f8fc;
}

.landing-section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: var(--brand-orange-600);
}

.landing-section-kicker::before {
    content: '';
    width: 18px;
    height: 3px;
    border-radius: 999px;
    background: var(--grad-orange);
    display: inline-block;
}

.landing-section-title {
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 2.5vw, 2.25rem);
    font-weight: 800;
    color: var(--brand-navy-950);
    letter-spacing: -0.025em;
    line-height: 1.22;
}

/* Cards de Módulos */
.landing-module-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px 24px;
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.landing-module-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--grad-bar-accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.28s ease;
}

.landing-module-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 30px -10px rgba(6, 24, 56, 0.12);
    border-color: var(--brand-orange-200);
}

.landing-module-card:hover::before {
    transform: scaleX(1);
}

.landing-module-number {
    position: absolute;
    top: 22px;
    right: 22px;
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
    color: #cbd5e1;
    transition: color 0.2s ease;
}

.landing-module-card:hover .landing-module-number {
    color: var(--brand-orange-400);
}

.landing-module-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--brand-orange-50);
    border: 1px solid var(--brand-orange-200);
    color: var(--brand-orange-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    margin-bottom: 18px;
    transition: all 0.25s ease;
}

.landing-module-card:hover .landing-module-icon {
    background: var(--grad-orange);
    border-color: var(--brand-orange-600);
    color: #ffffff;
    box-shadow: var(--shadow-orange);
}

/* Cards de Etapas (Fluxo) */
.landing-step-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 24px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.landing-step-card:hover {
    border-color: var(--brand-orange-300);
    box-shadow: 0 10px 22px -8px rgba(234, 88, 12, 0.14);
    transform: translateY(-3px);
}

.landing-step-header {
    display: flex;
    align-items: center;
    gap: 12px;
}

.landing-step-badge {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--brand-orange-700);
    background: var(--brand-orange-50);
    border: 1px solid var(--brand-orange-200);
    padding: 4px 11px;
    border-radius: 999px;
    white-space: nowrap;
}

.landing-step-line {
    height: 2px;
    background: linear-gradient(90deg, var(--brand-orange-300) 0%, #e2e8f0 100%);
    flex-grow: 1;
    border-radius: 2px;
}

/* Lista de Conformidade */
.landing-check-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.landing-check-icon {
    width: 30px;
    height: 30px;
    border-radius: 8px;
    background: var(--brand-orange-50);
    border: 1px solid var(--brand-orange-200);
    color: var(--brand-orange-600);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Painel CTA Final */
.landing-cta-panel {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #061838 0%, #092554 58%, #003482 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 4px solid var(--brand-orange-500);
    border-radius: 16px;
    box-shadow: 0 22px 42px -12px rgba(6, 24, 56, 0.30);
}

.landing-cta-panel::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 55% 60% at 85% 20%, rgba(248, 114, 0, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.landing-cta-panel > * {
    position: relative;
    z-index: 1;
}

/* ============================================================
   ANIMAÇÕES AO DESLIZAR PARA BAIXO (SCROLL REVEAL)
   ============================================================ */

.reveal-on-scroll {
    opacity: 0;
    will-change: opacity, transform;
    transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-up {
    transform: translateY(32px);
}

.reveal-left {
    transform: translateX(-32px);
}

.reveal-right {
    transform: translateX(32px);
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

.delay-100 { transition-delay: 0.08s; }
.delay-200 { transition-delay: 0.16s; }
.delay-300 { transition-delay: 0.24s; }
.delay-400 { transition-delay: 0.32s; }

@media (prefers-reduced-motion: reduce) {
    .reveal-on-scroll {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }
}

/* ============================================================
   RESPONSIVIDADE GLOBAL DO SISTEMA (MOBILE, TABLET & DESKTOP)
   ============================================================ */

@media (min-width: 576px) {
    .border-start-sm {
        border-left: 1px solid rgba(255, 255, 255, 0.14);
    }
}

@media (max-width: 1199.98px) {
    .auth-sidebar {
        padding: 36px 32px;
    }

    .dash-numero {
        font-size: 2.8rem;
    }
}

@media (max-width: 991.98px) {
    .auth-main {
        padding: 32px 20px;
        align-items: center;
    }

    .auth-card {
        padding: 36px 28px;
    }

    .navbar-senai {
        padding: 10px 0 12px;
    }

    .nav-link-modern {
        padding: 10px 12px !important;
    }

    .dash-quadrado {
        min-height: 230px;
    }
}

@media (max-width: 767.98px) {
    .card-header-modern {
        padding: 16px 18px;
    }

    .card-body-modern {
        padding: 18px;
    }

    .table-modern thead th,
    .table-modern tbody td {
        padding: 10px 12px;
        font-size: 0.85rem;
    }

    .landing-ui-body {
        padding: 16px;
    }

    .landing-schedule-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .loading-box {
        padding: 28px 22px;
    }

    .footer-modern {
        text-align: center;
        margin-top: 32px;
    }
}

@media (max-width: 575.98px) {
    .auth-main {
        padding: 24px 14px;
    }

    .auth-card {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .auth-card-icon {
        width: 50px;
        height: 50px;
        font-size: 22px;
        margin-bottom: 14px;
    }

    .btn-lg {
        padding: 11px 18px;
        font-size: 0.96rem;
    }

    .dash-numero {
        font-size: 2.4rem;
    }

    .landing-hero-title {
        font-size: 1.85rem;
    }

    .landing-hero-lead {
        font-size: 0.96rem;
    }

    .landing-module-card,
    .landing-step-card {
        padding: 20px 18px;
    }
}
