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

html,
body {
    margin: 0;
    padding: 0;
    height: 100%;
}

body {
    font-family: 'Nunito', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: #ffffff;
    color: #222529;
}

body.pagina {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: 60px;
}

/* =======================
   MENU SUPERIOR
   ======================= */
.menu-superior {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: #ffffff;
    backdrop-filter: blur(2px);
    border-bottom: 1px solid #ecedec;
    z-index: 100;
    display: flex;
    justify-content: center;
}

.menu-superior-inner {
    width: min(100%, 1440px);
    height: 100%;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(1, minmax(0, 1fr));
    align-items: center;
    padding: 12px 48px;
    column-gap: 12px;
    row-gap: 12px;
}

.menu-toggle {
    width: 35px;
    height: 35px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    padding: 0;
}

.menu-toggle .material-symbols-rounded {
    font-size: 24px;
    color: #0057b7;
}

.menu-logo {
    justify-self: center;
    width: 124px;
    height: 36px;
    position: relative;
}

.menu-logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0;
}

.menu-spacer {
    justify-self: end;
    width: 265px;
}

.guest-menu {
    position: fixed;
    top: 64px;
    left: 16px;
    z-index: 150;
    display: none;
    align-items: flex-start;
    justify-content: flex-start;
}

.guest-menu:not([hidden]) {
    display: flex;
}

.guest-menu__content {
    min-width: 220px;
    padding: 20px;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 20px 45px -25px rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.guest-menu__title {
    margin: 0;
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #1d1b20;
}

.guest-menu__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.guest-menu__item {
    margin: 0;
    padding: 0;
}

.guest-menu__link {
    display: block;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 15px;
    font-weight: 500;
    color: #1d1b20;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.guest-menu__link:hover,
.guest-menu__link:focus-visible {
    background-color: rgba(0, 87, 183, 0.08);
    color: rgba(29, 27, 32, 0.7);
    outline: none;
}

.guest-menu__link--external::after {
    content: '';
}

@media (max-width: 640px) {
    .guest-menu {
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 32px);
    }

    .guest-menu__content {
        width: 100%;
    }
}

/* =======================
   MAIN CONTAINER
   ======================= */
.pagina-main {
    display: flex;
    padding: 10px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 48px;
    flex: 1 0 0;
    align-self: stretch;
    background: var(--Fundo-Sistema, #f5f7fa);
}

.frame {
    flex: 1 1 auto;
    width: 100%;
    min-height: 0;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
}

.frame--orange-soft {
    background-color: rgba(255, 165, 0, 0.3);
}

.frame--blue-soft {
    background-color: rgba(0, 87, 183, 0.3);
}

.frame--student {
    background-color: #dfe9fb;
}

.frame--teacher,
.frame--school {
    background-color: #ffe6c4;
}

.frame--gray-soft {
    background-color: #f5f7fa;
}

.frame__content {
    width: min(100%, 960px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 10px;
}

.frame__content--wide {
    width: min(100%, 1200px);
}

/* =======================
   CARDS BASE
   ======================= */
.card-login {
    position: relative;
    background-color: #ffffff;
    border-radius: 8px;
    padding: 24px;
    width: min(100%, 360px);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
    box-shadow: 4px 4px 4px -2px rgba(0, 0, 0, 0.04);
    border: 1px solid rgba(217, 217, 217, 0.19);
}

.card-login--wide {
    width: min(100%, 420px);
}

.card-login--small {
    width: min(100%, 249px);
}

.card-login--stacked {
    gap: 24px;
}

.card-login__header {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    text-align: center;
}

.card-login__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 48px;
    line-height: 48px;
    color: #0057B7;
}

.card-login__icon--blue {
    color: #0057b7;
}

.card-login__icon--orange {
    color: #f5a000;
}

.card-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.card-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

.card-title {
    margin: 0;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 700;
    font-size: 22px;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.card-title--blue {
    color: #0057b7;
}

.card-title--orange {
    color: #ffa500;
}

.card-subtitle {
    margin: 0;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.1px;
    text-align: center;
    color: #000000;
}

.card-login__description {
    margin: 0;
    text-align: center;
    color: #49454f;
    font-size: 14px;
    line-height: 20px;
}

.card-login__form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.card-login__actions {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.card-login__actions form {
    width: 100%;
    margin: 0;
}

.card-login__footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

/* =======================
   CAMPOS DE FORMULÁRIO
   ======================= */
.field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: flex-start;
    width: 100%;
}

.field-label {
    margin: 0;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    color: #222529;
}

.field-control {
    position: relative;
    width: 100%;
    min-width: 240px;
    min-height: 40px;
    border-radius: 8px;
    background-color: #ffffff;
}

.field-control::before {
    content: '';
    position: absolute;
    inset: -0.5px;
    border-radius: 8.5px;
    border: 1px solid #d9d9d9;
    pointer-events: none;
}

.field-control-inner {
    display: flex;
    align-items: center;
    height: 100%;
    padding: 12px 12px 12px 16px;
    border-radius: 8px;
}

.field-input {
    width: 100%;
    border: none;
    outline: none;
    font: inherit;
    color: inherit;
    background: transparent;
}

.field-input::placeholder {
    color: #9aa0a6;
}

.field-error {
    margin: 0;
    font-size: 12px;
    color: #dc2626;
}

.field-checkbox {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'Nunito', system-ui, sans-serif;
    font-size: 14px;
    color: #222529;
}

.field-checkbox input {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    border: 1px solid #d9d9d9;
    accent-color: #0057b7;
}

.field-group-inline {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

/* =======================
   "ESQUECI A SENHA"
   ======================= */
.forgot-password {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 32px;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 500;
    font-size: 14px;
    letter-spacing: 0.1px;
    color: #49454f;
    text-decoration: none;
}

.forgot-password:hover,
.forgot-password:focus-visible {
    color: #0057b7;
    outline: none;
}

.forgot-password-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
}

.forgot-password-icon svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* =======================
   BOTÕES
   ======================= */
.btn {
    position: relative;
    width: 100%;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    border: 1px solid transparent;
    cursor: pointer;
    text-decoration: none;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 700;
    font-size: 16px;
    white-space: nowrap;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn a {
    
    text-decoration: inherit;
}

.btn:hover,
.btn:focus-visible {
    transform: translateY(-1px);
    box-shadow: 0 10px 20px rgba(0, 87, 183, 0.2);
    outline: none;
}

.btn--sm {
    min-height: 40px;
}

.btn--lg {
    min-height: 61px;
}


.btn--orange {
    background-color: #ffc107;
    border-color: #ffc107;
    color: #000000 !important;
}

.btn--orange:hover,
.btn--orange:focus-visible {
    background-color: #b38604;
    border-color: #b38604;
    color: #000000 !important;
}

.btn--blue {
    background-color: #0057b7;
    border-color: #0057b7;
    color: #ffffff !important;
}

.btn--blue:hover,
.btn--blue:focus-visible {
    background-color: #003d80;
    border-color: #003d80;
    color: #ffffff !important;
}

.btn--outline {
    background: transparent;
    border-color: #0057b7;
    color: #0057b7;
}

.btn--ghost {
    background: transparent;
    border-color: transparent;
    color: #0057b7;
}

.btn--full {
    width: 100%;
}

/* =======================
   TELA "BEM-VINDO"
   ======================= */
.welcome-section {
    max-width: 900px;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 48px;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
}

.welcome-title {
    margin: 0;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #0057b7;
    white-space: nowrap;
}

.welcome-text {
    margin: 0;
    font-family: 'Nunito', system-ui, sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #1e1e1e;
    max-width: 546px;
}

.welcome-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    align-items: center;
    justify-content: center;
}

/* =======================
   UTILS SIMPLES
   ======================= */
.text-center {
    text-align: center;
}

.mt-16 {
    margin-top: 16px;
}

.link {
    color: #0057b7;
    font-weight: 600;
    text-decoration: none;
}

.link:hover,
.link:focus-visible {
    text-decoration: underline;
    outline: none;
}

.flash-messages {
    width: min(100%, 420px);
}

@media (max-width: 768px) {
    .menu-superior-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .menu-spacer {
        width: auto;
    }

    .frame__content {
        gap: 32px;
    }

    .card-login {
        width: 100%;
    }
}
/* ====== Cursos do aluno ====== */

.aluno-courses-grid {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-lg);
}

/* Link envolvendo o card, sem sublinhado e herdando cor */
.aluno-course-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* Card específico da lista de cursos do aluno */
.aluno-course-card {
    width: 300px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    padding: var(--space-md);
}

/* Wrapper da imagem "comendo" o padding do card */
.aluno-course-card__image-wrapper {
    margin: calc(-1 * var(--space-md));
    margin-bottom: var(--space-md);
    overflow: hidden;
}

/* Imagem com largura total do card e altura limitada */
.aluno-course-card__image {
    display: block;
    width: 300px;
    max-width: 300px;
    height: 200px;
    max-height: 200px;
    object-fit: cover;
}

/* Título dentro do card */
.aluno-course-card__title {
    margin-bottom: var(--space-xs);
}

/* Descrição curta do curso (se tiver) */
.aluno-course-card__description {
    font-size: 0.875rem;
}

/* Meta (ex: data de matrícula) no rodapé do card */
.aluno-course-card__meta {
    font-size: 0.75rem;
    margin-top: auto;
}

.aluno-course-card__footer {
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
    margin-top: auto;
}

.aluno-course-card__action {
    white-space: nowrap;
}


/* ====== Lista de atividades do curso (aluno) ====== */

.course-activities-list {
	display: flex;
	padding: 8px;
	flex-direction: column;
	justify-content: center;
	align-items: flex-start;
	gap: 8px;
	align-self: stretch;
	border-radius: var(--raius-item, 8px);
	background: #ECEDEC;
}

/* Card individual de atividade */
.aluno-activity-item {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    gap: 8px;

    height: 109px;
    padding: 8px;
    align-self: stretch;
    width: 100%;

    border-radius: var(--raius-item, 8px); /* mantive o token que você passou */
    background: #ECEDEC;
}

/* Linha com ícone + título + botão */
.aluno-activity-item__top {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    width: 100%;
}

/* Bloco de texto da atividade (título + info) */
.aluno-activity-item__info {
    flex: 1;
}

/* Container das ações (botão, status, etc.) */
.aluno-activity-item__actions {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

/* Linha de metadados (tipo, data, etc.) */
.aluno-activity-item__meta {
    font-size: 0.875rem;
}
