/* Tela de login - template Sabemi */
:root {
    --sab-azul: #004077;
    --sab-azul-2: #008cc1;
    --sab-azul-3: #63b9e9;
    --sab-cinza: #b6c0c6;
    --sab-laranja: #ef7d00;
    --sab-laranja-h: #d66f00;
    --sab-texto: #1d2a36;
    --sab-texto-2: #4b5965;
    --sab-campo: #f0f3f5;
    --sab-erro: #c0392b;
    /* Troque por "NeoSans" quando a fonte institucional estiver disponível */
    --sab-fonte: "NeoSans", "Lexend", Calibri, sans-serif;
}

/* Esconde o "chrome" da MasterPage apenas nesta página */
#ctl00_MasterPageHeaderDiv,
#ctl00_MasterPageHeaderDiv + div,
#ChamadaProposta,
.proposta-destaque {
    display: none !important;
}

html, body {
    background: var(--sab-azul) !important;
    overflow: hidden !important;
}

/* O layout da MasterPage tem largura fixa; a .login-shell (fixa) cobre a tela inteira */
#aspnetForm {
    max-width: 100vw;
    overflow: hidden;
}

.login-shell {
    position: fixed;
    inset: 0;
    z-index: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 96px 20px 72px;
    overflow: auto;
    background: var(--sab-azul);
    font-family: var(--sab-fonte);
    color: var(--sab-texto);
    text-align: left;
}

.login-shell *,
.login-shell *::before,
.login-shell *::after {
    box-sizing: border-box;
    font-family: var(--sab-fonte) !important;
}

/* Formas decorativas */
.login-forma {
    position: fixed;
    pointer-events: none;
}

.login-forma-1 {
    right: -120px;
    top: -140px;
    width: 520px;
    height: 520px;
    background: var(--sab-azul-2);
    border-radius: 0 260px 0 260px;
}

.login-forma-2 {
    left: -90px;
    bottom: -110px;
    width: 380px;
    height: 380px;
    background: var(--sab-azul-3);
    opacity: .35;
    border-radius: 190px 0 190px 0;
}

.login-produto {
    position: absolute;
    left: 56px;
    top: 40px;
    color: #fff;
    font-size: 15px;
    font-weight: 300;
}

.login-produto b {
    font-weight: 700;
}

/* Card */
.login {
    position: relative;
    width: 100%;
    max-width: 440px;
    margin: auto;
}

.login-aba {
    display: inline-flex;
    padding: 10px 18px;
    border-radius: 14px 14px 0 0;
    background: var(--sab-laranja);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
}

.login-card {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding: 44px 44px 36px;
    border-radius: 0 28px 28px 28px;
    background: #fff;
    box-shadow: 0 30px 60px rgba(0, 20, 45, .35);
}

.login-marca {
    display: flex;
    align-self: flex-start;
    align-items: flex-end;
    gap: 6px;
}

.login-logo {
    width: auto;
    height: 40px;
}

/* "Negócios" colado ao logo, com a base do texto na mesma linha da base de "Sabemi"
   (no PNG a base das letras fica a 6px do fim da imagem de 40px) */
.login-marca-texto {
    padding-bottom: 4px;
    font-size: 17px;
    font-weight: 400;
    line-height: 1;
    letter-spacing: .01em;
    color: var(--sab-azul);
}

.login-conteudo {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-card h1 {
    margin: 0;
    font-family: var(--sab-fonte);
    font-size: 34px;
    font-weight: 700;
    color: var(--sab-azul);
}

.login-intro {
    margin: 6px 0 0;
    font-size: 15px;
    line-height: 1.5;
    color: var(--sab-texto-2);
    text-wrap: pretty;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.login-campos {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-sr {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
}

.login-campos input[type="text"],
.login-campos input[type="password"] {
    width: 100% !important;
    height: 52px;
    padding: 0 18px;
    border: 0;
    border-radius: 12px;
    background: var(--sab-campo);
    font: 16px var(--sab-fonte);
    color: var(--sab-texto);
    outline: none;
    transition: box-shadow .15s, background .15s;
}

.login-campos input::placeholder {
    color: #8a96a0;
}

.login-campos input[type="text"]:focus,
.login-campos input[type="password"]:focus {
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--sab-azul-2);
}

.login-senha {
    position: relative;
}

.login-senha input {
    padding-right: 84px !important;
}

.login-toggle {
    position: absolute;
    right: 10px;
    top: 10px;
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font: 500 12px var(--sab-fonte);
    color: var(--sab-azul);
    cursor: pointer;
}

.login-toggle:hover {
    background: #e3e8ec;
}

/* Os asteriscos dos validadores são substituídos pelo resumo de validação */
.login-validator {
    display: none !important;
}

.login-esqueci {
    align-self: flex-end;
}

.login-shell a {
    color: var(--sab-azul);
    text-decoration: none;
}

.login-shell a:hover {
    color: var(--sab-azul-2);
    text-decoration: underline;
}

.login-esqueci a {
    font-family: var(--sab-fonte);
    font-size: 13px !important;
}

.login-entrar {
    width: 100%;
    height: 54px;
    border: 0;
    border-radius: 12px;
    background: var(--sab-laranja);
    color: #fff;
    font: 700 16px var(--sab-fonte);
    cursor: pointer;
    transition: background .15s;
}

.login-entrar:hover {
    background: var(--sab-laranja-h);
}

.login-entrar:focus-visible {
    outline: 3px solid var(--sab-azul-3);
    outline-offset: 2px;
}

.login-mensagens {
    margin-top: -12px;
    font-size: 13px;
    text-align: center;
}

.login-mensagens:empty {
    display: none;
}

.login-erros {
    margin-top: 12px;
    padding: 10px 14px;
    border-left: 4px solid var(--sab-erro);
    border-radius: 8px;
    background: #fdecea;
    color: var(--sab-erro);
    line-height: 1.6;
    text-align: left;
}

.login-status {
    display: block;
    margin-top: 12px;
    color: var(--sab-azul);
}

.login-status:empty {
    display: none;
}

.login-acesso {
    padding-top: 18px;
    border-top: 1px solid #e3e8ec;
    font-size: 14px;
    font-weight: 500;
    color: var(--sab-azul);
    text-align: center;
}

/* Seleção entre múltiplos logins */
.login-opcoes {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-shell a.login-opcao {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    padding: 16px 18px;
    border-radius: 12px;
    background: var(--sab-campo);
    color: var(--sab-texto);
    text-decoration: none;
    transition: background .15s, box-shadow .15s;
}

.login-shell a.login-opcao:hover {
    background: #fff;
    box-shadow: inset 0 0 0 2px var(--sab-azul-2);
    text-decoration: none;
}

.login-opcao strong {
    display: block;
    font-size: 16px;
    color: var(--sab-azul);
}

.login-opcao small {
    font-size: 13px;
    color: var(--sab-texto-2);
}

.login-opcao .login-opcao-seta {
    font-size: 26px !important;
    color: var(--sab-laranja);
}

.login-rodape {
    position: absolute;
    bottom: 28px;
    left: 0;
    right: 0;
    color: var(--sab-cinza);
    font-size: 12px;
    text-align: center;
}
