/* ======================================================================
   Magister Up - identidade visual da plataforma
   A identidade da escola continua reservada aos documentos institucionais.
   ====================================================================== */

:root {
    --primary: #0b2a57;
    --primary-dark: #061a38;
    --primary-light: #eef3ff;
    --secondary: #315fbe;
    --accent: #6d4aff;
    --magister-purple: #6d4aff;
    --magister-purple-soft: #eeeaff;
    --magister-navy: #061a38;
    --magister-blue: #0b2a57;
    --background: #f4f7fc;
    --surface: #ffffff;
    --text: #14213d;
    --text-soft: #66758f;
    --border: #dfe6f1;
    --shadow: 0 16px 42px rgba(7, 28, 61, 0.09);
}

body {
    background: var(--background);
}

.button {
    border-radius: 12px;
}

.button-primary {
    background: linear-gradient(135deg, var(--primary), #224d91);
    box-shadow: 0 10px 24px rgba(11, 42, 87, 0.18);
}

.button-primary:hover {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
}

.button-outline:hover,
.button-secondary:hover {
    border-color: rgba(109, 74, 255, 0.38);
    background: var(--magister-purple-soft);
}

/* Página pública ------------------------------------------------------- */

.magister-public-body {
    background:
        radial-gradient(circle at 86% 8%, rgba(109, 74, 255, 0.14), transparent 28%),
        radial-gradient(circle at 8% 32%, rgba(49, 95, 190, 0.12), transparent 27%),
        #f7f9fd;
}

.magister-public-header {
    min-height: 98px;
}

.magister-brand-link {
    display: inline-flex;
    align-items: center;
}

.magister-header-logo {
    display: block;
    width: min(340px, 53vw);
    height: auto;
}

.magister-hero {
    min-height: 640px;
    padding-top: 48px;
    padding-bottom: 72px;
}

.magister-hero-content h1 {
    background: linear-gradient(135deg, #071b3b 12%, #194a91 72%, #6d4aff 112%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.magister-hero-panel {
    padding: 0 24px 24px;
    overflow: hidden;
    border: 1px solid rgba(30, 63, 112, 0.12);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 28px 70px rgba(7, 28, 61, 0.13);
}

.magister-hero-brand {
    margin: 0 -24px 24px;
    overflow: hidden;
    border-radius: 23px 23px 0 0;
    background: var(--magister-navy);
}

.magister-hero-brand img {
    display: block;
    width: 100%;
    max-height: 330px;
    object-fit: cover;
}

.magister-hero-panel .preview-card {
    border-color: #e3e8f2;
    background: linear-gradient(180deg, #ffffff, #f7f9fd);
}

.magister-hero-panel .preview-card strong {
    color: var(--primary);
}

.feature-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    border-color: rgba(109, 74, 255, 0.24);
    box-shadow: var(--shadow);
}

.feature-number {
    color: var(--magister-purple);
}

/* Autenticação -------------------------------------------------------- */

.magister-auth-body {
    background: #f2f5fb;
}

.magister-auth-presentation {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 75% 18%, rgba(109, 74, 255, 0.38), transparent 30%),
        linear-gradient(145deg, #04142e, #0a2b5b 72%, #163e7a);
}

.magister-auth-presentation::after {
    position: absolute;
    right: -140px;
    bottom: -180px;
    width: 500px;
    height: 500px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
    content: "";
}

.magister-login-brand,
.magister-auth-presentation .auth-message,
.magister-auth-presentation .auth-footer {
    position: relative;
    z-index: 1;
}

.magister-login-brand img {
    display: block;
    width: min(470px, 84%);
    height: auto;
    border-radius: 16px;
}

.magister-auth-card {
    border-color: rgba(19, 54, 102, 0.1);
    box-shadow: 0 28px 70px rgba(7, 28, 61, 0.12);
}

.magister-auth-symbol {
    display: inline-block;
    width: 82px;
    height: 82px;
    margin-bottom: 14px;
    object-fit: cover;
    border-radius: 22px;
    box-shadow: 0 12px 28px rgba(7, 28, 61, 0.18);
}

.auth-form input {
    min-height: 50px;
    border-radius: 12px;
    background: #fbfcff;
}

.auth-form input:focus {
    border-color: var(--magister-purple);
    box-shadow: 0 0 0 4px rgba(109, 74, 255, 0.1);
}

/* Painel -------------------------------------------------------------- */

.sidebar {
    width: 270px;
    padding: 22px 16px;
    background:
        radial-gradient(circle at 40% 0%, rgba(109, 74, 255, 0.2), transparent 25%),
        linear-gradient(180deg, #071b3b 0%, #04142d 100%);
    box-shadow: 12px 0 34px rgba(4, 20, 45, 0.12);
}

.main-content {
    margin-left: 270px;
}

.magister-sidebar-brand {
    display: block;
    margin-bottom: 8px;
    padding: 4px 5px 18px;
}

.magister-sidebar-logo {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.nav-section-title {
    color: rgba(255, 255, 255, 0.4);
}

.nav-item {
    border: 1px solid transparent;
    border-radius: 12px;
    color: rgba(255, 255, 255, 0.72);
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.nav-item:hover {
    transform: translateX(2px);
    border-color: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    background: rgba(255, 255, 255, 0.07);
}

.nav-item.active {
    border-color: rgba(151, 128, 255, 0.28);
    background: linear-gradient(135deg, rgba(109, 74, 255, 0.38), rgba(49, 95, 190, 0.2));
    box-shadow: inset 3px 0 0 #8c72ff;
}

.nav-icon {
    background: rgba(255, 255, 255, 0.1);
}

.topbar {
    min-height: 92px;
    border-bottom-color: #e3e8f1;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 6px 24px rgba(7, 28, 61, 0.035);
}

.topbar-label {
    color: #6c7890;
}

.user-avatar {
    background: linear-gradient(135deg, var(--primary), var(--magister-purple));
    box-shadow: 0 9px 20px rgba(26, 52, 101, 0.18);
}

.dashboard-content {
    max-width: 1680px;
    margin: 0 auto;
}

.magister-welcome-panel {
    min-height: 210px;
    background:
        radial-gradient(circle at 86% 20%, rgba(136, 111, 255, 0.46), transparent 26%),
        linear-gradient(130deg, #061a38, #0c3268 68%, #204b91);
    box-shadow: 0 22px 52px rgba(7, 28, 61, 0.18);
}

.magister-welcome-symbol {
    width: 155px;
    height: 155px;
    object-fit: cover;
    border-radius: 32px;
    box-shadow: 0 20px 44px rgba(2, 13, 31, 0.3);
}

.indicator-card,
.content-card,
.quick-action {
    border-color: #e1e7f0;
    box-shadow: 0 10px 30px rgba(7, 28, 61, 0.045);
}

.indicator-card-link:hover,
.quick-action-link:hover {
    border-color: rgba(109, 74, 255, 0.25);
    box-shadow: 0 16px 36px rgba(7, 28, 61, 0.09);
}

.indicator-icon {
    color: #ffffff;
    background: linear-gradient(135deg, var(--primary), var(--magister-purple));
}

/* Cabeçalhos internos ------------------------------------------------- */

.magister-standard-header-band {
    background:
        linear-gradient(180deg, #ffffff, #fbfcff);
    border-bottom: 1px solid #e2e8f2;
}

.magister-standard-header {
    max-width: 1680px;
}

.magister-standard-header__brand {
    display: inline-flex;
    width: 235px;
    min-width: 235px;
    align-items: center;
}

.magister-standard-header__logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    max-height: 76px;
    padding: 0;
    object-fit: contain;
    border-radius: 0;
    background: transparent;
}

.magister-page-brand {
    gap: 12px;
}

.magister-page-brand .institutional-page-brand__logo {
    width: 54px;
    height: 54px;
    padding: 0;
    object-fit: cover;
    border-radius: 15px;
    background: var(--magister-navy);
}

.magister-page-brand .institutional-page-brand__text small {
    max-width: 250px;
    line-height: 1.25;
}

.magister-operations-logo {
    padding: 0;
    object-fit: cover;
    border-radius: 16px;
    background: var(--magister-navy);
}

/* Páginas de situação ------------------------------------------------- */

.magister-status-brand {
    display: block;
    width: min(310px, 100%);
    margin: 0 auto 28px;
}

.magister-status-brand img {
    display: block;
    width: 100%;
    height: auto;
}

/* Responsividade ------------------------------------------------------ */

@media (max-width: 1000px) {
    .magister-hero {
        gap: 42px;
    }

    .magister-standard-header__brand {
        width: 190px;
        min-width: 190px;
    }

    .magister-standard-header__logo {
        width: 180px;
    }
}

@media (max-width: 800px) {
    .sidebar {
        width: 100%;
        padding: 18px;
    }

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

    .magister-sidebar-brand {
        max-width: 360px;
        margin-right: auto;
        margin-left: auto;
    }

    .magister-welcome-symbol {
        display: none;
    }

    .magister-standard-header__brand {
        width: 190px;
        min-width: 0;
    }
}

@media (max-width: 600px) {
    .magister-header-logo {
        width: 230px;
    }

    .magister-hero-content h1 {
        font-size: 42px;
    }

    .magister-hero-panel {
        padding-right: 16px;
        padding-left: 16px;
    }

    .magister-hero-brand {
        margin-right: -16px;
        margin-left: -16px;
    }

    .magister-standard-header__brand {
        width: 100%;
    }

    .magister-standard-header__logo {
        width: 210px;
    }
}
