/* 
  MOBILE OPTIMIZATIONS - VERSÃO SEGURA
  Apenas ajustes essenciais de espaçamento e tamanho de fonte.
  NÃO altera estrutura de grid ou visibilidade de seções críticas.
*/

@media (max-width: 768px) {

    /* --- GERAL --- */
    :root {
        --header-height: 60px !important;
    }

    /* Ajuste leve de fontes para não quebrar layout */
    h1 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }

    h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    /* --- PÁGINA DE LOGIN/ACESSO --- */
    
    .auth-section {
        padding: 40px 20px !important;
    }

    .auth-card {
        padding: 32px 20px !important;
    }

    .auth-card__header h2 {
        font-size: 22px !important;
    }

    .auth-card__header p {
        font-size: 14px !important;
    }

    .auth-form__legend {
        font-size: 13px !important;
    }

    .form-field label {
        font-size: 14px !important;
    }

    .form-field input {
        font-size: 15px !important;
        padding: 12px 14px !important;
        min-height: 48px !important;
    }

    .auth-form__actions .button {
        font-size: 15px !important;
        padding: 14px 24px !important;
        min-height: 50px !important;
    }

    .auth-card__cta {
        gap: 14px !important;
        margin-top: 16px !important;
    }

    .auth-card__cta .button {
        font-size: 15px !important;
        padding: 14px 24px !important;
        min-height: 50px !important;
        width: 100% !important;
    }

    .auth-card__link {
        font-size: 14px !important;
        padding: 12px 0 !important;
        margin-top: 8px !important;
    }

    /* --- LANDING PAGE --- */

    /* Hero Section - Apenas espaçamento */
    .hero {
        padding-top: 100px !important;
        padding-bottom: 40px !important;
    }

    /* Newsletter - Garantir visibilidade do input */
    .newsletter-form {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
    }

    .newsletter-form input {
        width: 100% !important;
        min-height: 48px !important;
        opacity: 1 !important;
        visibility: visible !important;
        background: rgba(255, 255, 255, 0.05) !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
        color: #fff !important;
        padding: 12px !important;
        margin-bottom: 12px !important;
    }

    .newsletter-form .button {
        width: 100% !important;
    }

    /* --- PORTAL DO ALUNO --- */

    .app-sidebar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: auto;
        top: auto;
        border-right: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        background: #0b0d18;
        z-index: 1000;
        padding: 8px 16px;
        display: flex;
        flex-direction: row;
        justify-content: space-around;
        align-items: center;
    }

    .sidebar__brand,
    .sidebar__footer,
    .nav-button__copy {
        display: none !important;
    }

    .sidebar__nav {
        display: flex;
        flex-direction: row;
        width: 100%;
        justify-content: space-between;
        gap: 0 !important;
    }

    .nav-button {
        flex-direction: column;
        padding: 8px !important;
        background: transparent !important;
        border: none !important;
        width: auto !important;
    }

    .app-main {
        padding-bottom: 80px !important;
    }
}