@charset "UTF-8";
/* FUNPAR – Portal de Cursos | identidade institucional */
/* Referência visual: site institucional funpar.ufpr.br (azul FUNPAR).
   Os ajustes deste arquivo preservam os componentes e os fluxos de autenticação. */

:root {
    --funpar-blue: #0c4b8b;
    --funpar-blue-dark: #083b70;
    --funpar-blue-footer: #104c84;
    --funpar-ice: #e5f2ff;
    --funpar-text-light: #e5f1ff;
}

/* Cabeçalho: faixa de contexto + navegação principal */
.funpar-topbar {
    background: #093c72;
    color: #d9eafb;
    font-size: 12px;
    line-height: 1.4;
    letter-spacing: .012em;
}
.funpar-topbar-inner {
    min-height: 34px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px 22px;
}
.funpar-topbar-context,
.funpar-topbar-links {
    display: flex;
    align-items: center;
    gap: 10px;
}
.funpar-topbar-context > i { color: #b5dfff; font-size: 12px; }
.funpar-topbar-links { gap: 22px; }
.funpar-topbar-links a {
    color: #e3f0ff;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    transition: color .18s ease;
}
.funpar-topbar-links a:hover,
.funpar-topbar-links a:focus-visible { color: #fff; text-decoration: underline; }
.funpar-topbar-institutional { font-weight: 600; }
.funpar-topbar-institutional i { font-size: 9px; }

.funpar-navbar.navbar {
    background: linear-gradient(100deg,#0d4f93 0%,#0a4682 100%) !important;
    min-height: 82px;
    top: 0 !important; /* O main.js antigo define -100px ao rolar a página. */
    box-shadow: 0 4px 16px rgba(6,36,70,.13);
    border-bottom: 1px solid rgba(255,255,255,.13);
    z-index: 1020;
    padding: 9px 16px;
}
.funpar-navbar-inner { display: flex; align-items: center; gap: 17px; }
.funpar-navbar .funpar-brand {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
}
.funpar-navbar .funpar-brand img {
    display: block;
    width: 178px;
    height: auto;
    max-height: 66px;
    object-fit: contain;
}
.funpar-portal-identity {
    border-left: 1px solid rgba(255,255,255,.26);
    padding-left: 19px;
    min-width: 180px;
    flex-direction: column;
    justify-content: center;
    line-height: 1.35;
    gap: 3px;
}
.funpar-portal-identity span {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    letter-spacing: -.02em;
}
.funpar-portal-identity small {
    color: #c2def7;
    font-size: 11px;
    letter-spacing: .045em;
    text-transform: uppercase;
}
.funpar-navbar .navbar-nav { gap: 11px; margin-top: 0; border-top: none; }
.funpar-navbar .navbar-nav .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: #f1f7ff !important;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    text-transform: none;
    white-space: nowrap;
    margin-left: 0;
    padding: 12px 16px;
    border-radius: 9px;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.funpar-navbar .navbar-nav .funpar-courses-link {
    color: #f2f8ff !important;
}
.funpar-navbar .navbar-nav .funpar-courses-link i { font-size: 14px; }
.funpar-navbar .navbar-nav .nav-link:not(.funpar-area-link):hover,
.funpar-navbar .navbar-nav .nav-link:not(.funpar-area-link):focus-visible {
    background: rgba(255,255,255,.12);
    color: #fff !important;
}
.funpar-navbar .navbar-nav .funpar-area-link {
    color: #0a447e !important;
    border: 1px solid #d9edff;
    background: #f0f7ff;
    margin-left: 5px;
    min-height: 43px;
    padding: 11px 18px;
    box-shadow: 0 3px 8px rgba(6,35,65,.09);
}
.funpar-navbar .navbar-nav .funpar-area-link:hover,
.funpar-navbar .navbar-nav .funpar-area-link:focus-visible {
    color: #073769 !important;
    background: #fff;
    border-color: #fff;
}
.funpar-navbar #menuAlunoLogado .dropdown-toggle::after { margin-left: 2px; }
.funpar-navbar .dropdown-menu {
    background: #fff;
    border: 1px solid #e3edf7;
    box-shadow: 0 15px 35px rgba(9,39,77,.17);
    border-radius: 10px;
    overflow: hidden;
}
.funpar-navbar .dropdown-item {
    padding: 11px 18px;
    font-size: 13px;
    color: #1b4770;
    white-space: normal;
}
.funpar-navbar .dropdown-item:hover { background: #eef6ff; color: #07437e; }
.funpar-navbar .funpar-toggler {
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 8px;
    padding: 8px 10px;
    color: #fff;
}
.funpar-navbar .navbar-toggler-icon { filter: brightness(0) invert(1); }
.funpar-navbar .funpar-toggler:focus-visible { box-shadow: 0 0 0 3px #afdbff; }

/* Rodapé: azul institucional mais claro, compacto e legível */
.funpar-footer {
    background: var(--funpar-blue-footer);
    color: #d9eafb;
    line-height: 1.55;
}
.funpar-footer-main { padding-top: 31px; padding-bottom: 29px; }
.funpar-footer-brand { display: inline-block; }
.funpar-footer-brand img {
    display: block;
    width: 151px;
    max-width: 100%;
    height: auto;
    max-height: 56px;
    object-fit: contain;
}
.funpar-footer-description {
    max-width: 265px;
    margin: 11px 0 14px;
    color: #d0e3f5;
    font-size: 12px;
    line-height: 1.65;
}
.funpar-footer h5 {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    margin: 3px 0 18px;
    letter-spacing: .005em;
}
.funpar-footer address { font-style: normal; }
.funpar-footer address p {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 11px;
    font-size: 12.5px;
    line-height: 1.65;
    overflow-wrap: anywhere;
}
.funpar-footer address i {
    color: #b9dfff;
    width: 15px;
    flex: 0 0 15px;
    margin-top: 4px;
    text-align: center;
}
.funpar-footer a { color: #f2f8ff; text-decoration: none; transition: color .18s ease; }
.funpar-footer a:hover,
.funpar-footer a:focus-visible { color: #cde8ff; text-decoration: underline; }
.funpar-social { display: flex; flex-wrap: wrap; gap: 8px; }
.funpar-social a {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 30px;
    height: 30px;
    background: rgba(255,255,255,.10);
    border: 1px solid rgba(255,255,255,.19);
    border-radius: 7px;
    font-size: 12px;
}
.funpar-social a:hover,
.funpar-social a:focus-visible {
    background: rgba(255,255,255,.19);
    border-color: rgba(255,255,255,.5);
    color: #fff;
    text-decoration: none;
}
.funpar-footer-links { display: grid; gap: 0; max-width: 320px; }
.funpar-footer-links a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    min-height: 32px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,.13);
    font-size: 12.5px;
}
.funpar-footer-links a:last-child { border-bottom: 0; }
.funpar-footer-links i { color: #b6dfff; font-size: 10px; }
.funpar-footer-bottom {
    border-top: 1px solid rgba(255,255,255,.15);
    background: #093b70;
}
.funpar-footer-bottom-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 7px 20px;
    padding-top: 13px;
    padding-bottom: 13px;
}
.funpar-footer-bottom small { font-size: 11px; line-height: 1.5; color: #ccdfef; }

@media (max-width: 1199.98px) {
    .funpar-navbar .funpar-brand img { width: 155px; }
    .funpar-portal-identity { padding-left: 14px; min-width: 155px; }
    .funpar-portal-identity span { font-size: 14px; }
}
@media (max-width: 991.98px) {
    .funpar-navbar.navbar { min-height: 73px; }
    .funpar-navbar .funpar-brand img { width: 168px; max-height: 61px; }
    .funpar-navbar .navbar-collapse {
        border-top: 1px solid rgba(255,255,255,.2);
        margin-top: 10px;
        padding-top: 9px;
        padding-bottom: 8px;
    }
    .funpar-navbar .navbar-nav { gap: 5px; margin: 0; padding: 0; border: 0; align-items: stretch !important; }
    .funpar-navbar .navbar-nav .nav-link { justify-content: flex-start; width: 100%; }
    .funpar-navbar .navbar-nav .funpar-area-link { margin-left: 0; }
    .funpar-navbar .dropdown-menu { position: static; margin-top: 5px; }
    .funpar-footer-main { padding-top: 28px; padding-bottom: 25px; }
}
@media (max-width: 575.98px) {
    .funpar-topbar-inner { min-height: 30px; justify-content: center; }
    .funpar-topbar-context { font-size: 10.5px; text-align: center; }
    .funpar-topbar-links { display: none; }
    .funpar-navbar.navbar { padding: 9px 14px; }
    .funpar-navbar .funpar-brand img { width: 145px; }
    .funpar-footer-brand img { width: 143px; }
    .funpar-footer h5 { margin-bottom: 12px; }
    .funpar-footer-main { padding-top: 26px; padding-bottom: 23px; }
    .funpar-footer-bottom-inner { padding-top: 13px; padding-bottom: 13px; }
}

/* Login / recuperação / troca de senha */
.swal2-popup.funpar-auth-modal {
    padding: 0 0 24px !important;
    border-radius: 18px !important;
    overflow: hidden;
    width: min(440px, calc(100vw - 30px)) !important;
    box-shadow: 0 24px 70px rgba(10,22,36,.25) !important;
    font-family: 'Roboto', sans-serif;
}
.funpar-auth-modal .swal2-html-container {
    margin: 0 !important; padding: 0 !important;
    width: 100%; text-align: left;
    color: #24374a; overflow: visible;
}
.funpar-auth-heading {
    background: linear-gradient(135deg,#093f79,#0e579a);
    color: #fff;
    padding: 27px 32px 24px;
    text-align: center;
}
.funpar-auth-icon {
    width: 48px; height: 48px;
    border-radius: 14px;
    background: rgba(255,255,255,.12);
    display: flex; justify-content: center; align-items: center;
    margin: 0 auto 13px;
    border: 1px solid rgba(255,255,255,.18);
    color: #b8db83;
    font-size: 21px;
}
.funpar-auth-title { font-size: 24px; line-height: 1.2; font-weight: 700; color: #fff; margin: 0 0 8px; }
.funpar-auth-subtitle { font-size: 13px; line-height: 1.6; color: #d2dfe9; margin: 0; }
.funpar-auth-body { padding: 25px 30px 0; }
.funpar-auth-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #364c61;
    margin-bottom: 7px;
}
.funpar-auth-input {
    width: 100%; height: 46px; outline: none;
    padding: 11px 14px; font: inherit; font-size: 14px;
    border-radius: 9px; border: 1px solid #d9e2e9;
    background: #f8fafc; color: #1d3040;
    transition: border-color .15s, box-shadow .15s;
}
.funpar-auth-input:focus { background: #fff; border-color: #467da8; box-shadow: 0 0 0 3px rgba(47,106,150,.13); }
.funpar-auth-input::placeholder { color: #94a3b1; }
.funpar-auth-password { position: relative; }
.funpar-auth-password .funpar-auth-input { padding-right: 50px; }
.funpar-toggle-password {
    position: absolute; right: 6px; top: 5px;
    width: 38px; height: 36px;
    border: none; border-radius: 7px;
    background: transparent; color: #718496;
}
.funpar-toggle-password:hover, .funpar-toggle-password:focus-visible { background: #e7eef5; color: #163d61; }
.funpar-auth-recovery { text-align: right; margin-top: 13px; }
.funpar-auth-recovery a { color: #176399; font-size: 13px; font-weight: 600; text-decoration: none; }
.funpar-auth-recovery a:hover { text-decoration: underline; }
.funpar-auth-actions.swal2-actions { display: flex; gap: 10px; padding: 0 30px; margin: 22px 0 0; width: 100%; }
.funpar-auth-confirm, .funpar-auth-cancel {
    border: none;
    border-radius: 9px;
    min-height: 44px;
    padding: 10px 17px;
    font-size: 13px;
    font-weight: 700;
    transition: opacity .15s ease, transform .15s ease;
}
.funpar-auth-confirm { background: #0b4d90; color: #fff; flex: 1; }
.funpar-auth-confirm:hover { background: #093b70; }
.funpar-auth-cancel { background: #e9eef2; color: #455a6c; }
.funpar-auth-cancel:hover { background: #dbe5eb; }
.funpar-auth-modal .swal2-validation-message {
    margin: 16px 30px 0; width: auto;
    border-radius: 8px; font-size: 12px; line-height: 1.45;
}
.funpar-auth-hint { font-size: 12px; line-height: 1.55; color: #748697; }
.funpar-auth-alert {
    background: #eff7e9; border: 1px solid #d5e9c7; color: #426437;
    font-size: 12px; line-height: 1.5; padding: 10px 12px; border-radius: 9px;
    margin-bottom: 18px;
}
.funpar-auth-rules {
    margin-top: 17px; padding: 13px 14px;
    border-radius: 9px;
    background: #f4f7fa;
    border: 1px solid #e7edf2;
    font-size: 12px; color: #6b7d8b;
    display: grid; gap: 5px;
}
.funpar-auth-rules strong { color: #334b5c; margin-bottom: 2px; }
.funpar-auth-rules span::before { content: "✓"; font-weight: 700; margin-right: 9px; color: #458c42; }
@media (max-width: 575.98px) {
    .funpar-auth-heading { padding: 25px 20px 20px; }
    .funpar-auth-body { padding: 21px 20px 0; }
    .funpar-auth-actions.swal2-actions { padding: 0 20px; flex-wrap: wrap; }
    .funpar-auth-confirm { flex-basis: 100%; }
    .funpar-auth-cancel { flex-basis: 100%; }
    .funpar-auth-modal .swal2-validation-message { margin-inline: 20px; }
}

/* Confirmação da recuperação de senha, integrada ao padrão visual do login. */
.swal2-popup.funpar-recovery-confirm-modal {
    width: min(450px, calc(100vw - 30px)) !important;
}
.funpar-recovery-success-header {
    background: linear-gradient(135deg, #104c87, #1769a7);
    color: #fff; text-align: center; padding: 30px 30px 25px;
}
.funpar-recovery-success-icon {
    display: flex; align-items: center; justify-content: center;
    width: 62px; height: 62px; margin: 0 auto 17px;
    border-radius: 50%; background: #e8f6e3; color: #407d36;
    border: 3px solid rgba(255,255,255,.5); font-size: 25px;
}
.funpar-recovery-success-eyebrow {
    margin: 0 0 8px; color: #cce5fb;
    font-size: 10px; font-weight: 800; letter-spacing: .12em;
}
.funpar-recovery-success-title {
    margin: 0 0 9px; color: #fff;
    font-size: clamp(22px, 5vw, 25px); line-height: 1.25; font-weight: 700;
}
.funpar-recovery-success-subtitle {
    margin: 0 auto; max-width: 320px; color: #e7f3fd;
    font-size: 13px; line-height: 1.6;
}
.funpar-recovery-success-body { padding: 25px 30px 0; }
.funpar-recovery-success-label {
    margin: 0 0 14px; color: #2a4258;
    font-size: 12px; font-weight: 800; letter-spacing: .03em;
}
.funpar-recovery-step {
    display: flex; align-items: flex-start; gap: 13px;
    margin: 0 0 13px; font-size: 13px; line-height: 1.55; color: #3e5265;
}
.funpar-recovery-step-number {
    flex: none; width: 26px; height: 26px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #e9f2fb; color: #11558c; font-size: 12px; font-weight: 800;
}
.funpar-recovery-success-note {
    display: flex; align-items: flex-start; gap: 9px;
    padding: 11px 12px; margin: 18px 0 0;
    border-radius: 9px; background: #edf6ed; color: #426748;
    font-size: 12px; line-height: 1.55;
}
.funpar-recovery-success-note i { margin-top: 3px; flex: none; }
.funpar-recovery-confirm-modal .funpar-auth-actions.swal2-actions {
    padding: 0 30px; margin-top: 24px;
}
.funpar-recovery-confirm-modal .funpar-auth-confirm {
    width: 100%; flex: 1; font-size: 14px;
}
@media (max-width: 575.98px) {
    .funpar-recovery-success-header { padding: 27px 20px 23px; }
    .funpar-recovery-success-body { padding: 23px 20px 0; }
    .funpar-recovery-confirm-modal .funpar-auth-actions.swal2-actions { padding: 0 20px; }
}
