/* SiGI - Gestão Académica | Login e recuperação de acesso */
:root {
    --principal: #AD3546;
    --principal-escuro: #872436;
    --texto-claro: #FFFFFF;
    --texto-suave: #F8DDE2;
}
*, *::before, *::after { box-sizing: border-box; }
html { min-height: 100%; }
body {
    margin: 0;
    min-height: 100vh;
    font-family: "Segoe UI", Tahoma, Arial, sans-serif;
    color: var(--texto-claro);
    background-color: #991F36;
    background-image:
        linear-gradient(105deg, rgba(99, 9, 30, .84) 0%, rgba(132, 21, 42, .75) 49%, rgba(122, 16, 36, .75) 100%),
        url("../../imagens/login/fundo_login.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
}
.pagina {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
    align-items: center;
    gap: clamp(48px, 9vw, 160px);
    width: min(1120px, calc(100% - 100px));
    margin: 0 auto;
    padding: 65px 0;
}
.identidade { align-self: center; }
.marca { margin: 0; display: inline-flex; align-items: center; justify-content: center; }
.marca img { display: block; width: 88px; height: 88px; object-fit: contain; }
.acesso { width: 100%; max-width: 355px; justify-self: end; }
.icone-utilizador {
    width: 88px;
    height: 88px;
    display: grid;
    place-items: center;
    border: 2px solid rgba(255,255,255,.85);
    border-radius: 50%;
    margin: 0 auto 18px;
}
.icone-utilizador svg { width: 52px; height: 52px; }
.boas-vindas { text-align: center; font-size: 20px; font-weight: 400; margin: 0 0 26px; }
.erro, .estado {
    font-size: 13px;
    line-height: 1.5;
    padding: 11px 13px;
    margin-bottom: 16px;
    background: rgba(255,255,255,.97);
    color: #97263A;
    border-radius: 4px;
}
.estado { color: #236D47; }
.explicacao { font-size: 13px; line-height: 1.55; margin: -7px 0 20px; color: var(--texto-suave); }
.campo { margin-bottom: 14px; }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.campo input {
    display: block;
    width: 100%;
    height: 42px;
    border: 1px solid rgba(255,255,255,.8);
    border-radius: 3px;
    background: #FFFFFF;
    color: #263238;
    padding: 0 13px;
    font-family: inherit;
    font-size: 14px;
    outline: none;
}
.campo input::placeholder { color: #7C8590; }
.campo input:focus { border-color: #FFFFFF; box-shadow: 0 0 0 3px rgba(255,255,255,.28); }
.senha { position: relative; }
.senha input { padding-right: 80px; }
.mostrar {
    position: absolute;
    right: 3px;
    top: 3px;
    height: 36px;
    padding: 0 10px;
    border: 0;
    background: transparent;
    color: #9D2C3C;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
}
.opcoes { display: flex; align-items: center; justify-content: space-between; margin: 11px 0 19px; }
.lembrar { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: var(--texto-suave); cursor: pointer; }
.lembrar input { width: 15px; height: 15px; margin: 0; accent-color: #FFFFFF; }
.botao-entrar {
    width: 100%;
    height: 42px;
    border: 1px solid #FFFFFF;
    border-radius: 3px;
    background: #FFFFFF;
    color: var(--principal-escuro);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: background .15s ease, transform .15s ease;
}
.botao-entrar:hover { background: #F9E4E8; }
.botao-entrar:active { transform: translateY(1px); }
.botao-entrar:focus-visible, .mostrar:focus-visible, .apoio a:focus-visible {
    outline: 3px solid #F9D7DF;
    outline-offset: 2px;
}
.apoio { margin: 20px 0 0; text-align: center; font-size: 12px; color: var(--texto-suave); }
/* Links de recuperação e navegação: sem azul e sem ícones */
.apoio a,
.apoio a:link,
.apoio a:visited {
    color: #FFE5E8 !important;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: color .2s ease;
}
.apoio a:hover,
.apoio a:active {
    color: #FFFFFF !important;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.apoio a:focus-visible {
    color: #FFFFFF !important;
    outline: 2px solid #FFFFFF;
    outline-offset: 4px;
    border-radius: 2px;
}
.rodape {
    position: fixed;
    bottom: 20px;
    right: 28px;
    font-size: 12px;
    text-align: right;
    color: rgba(255,255,255,.8);
}
@media (max-width: 760px) {
    .pagina {
        width: min(410px, calc(100% - 44px));
        grid-template-columns: 1fr;
        gap: 34px;
        padding: 48px 0 80px;
    }
    .identidade { text-align: center; }
    .marca img { width: 70px; height: 70px; }
    .acesso { justify-self: center; }
    .rodape { position: static; padding: 0 15px 22px; }
}
