/* Entrada publica: identidade Banicred e formulario responsivo sem dependencias externas. */
html { min-height: 100%; background: #edf3f9; }
body.login-body {
    margin: 0; color: #173d68; font-family: Arial, Helvetica, sans-serif;
    background: #f1f5fa url("entrada-fundo-v1.png") center center / cover no-repeat;
}
.login-shell, .login-shell * { box-sizing: border-box; }
.login-shell {
    min-height: 100vh; min-height: 100svh; padding: 38px 32px 24px;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.login-experience {
    display: grid; grid-template-columns: 1.08fr 1fr;
    width: 100%; max-width: 1120px; min-height: 0;
    border: 1px solid #d5e0ec; border-radius: 22px; background: #fff;
    box-shadow: 0 26px 80px -28px rgba(16, 36, 62, .28);
}
.login-story {
    position: relative; isolation: isolate; display: flex; flex-direction: column;
    justify-content: space-between; min-width: 0; padding: 42px 46px 30px;
    border-radius: 21px 0 0 21px; overflow: hidden;
    background: linear-gradient(145deg, #10243e 2%, #173d68 58%, #1e5c91 100%);
    color: #bed0e4;
}
.login-story::before {
    content: ""; position: absolute; z-index: -1; width: 540px; height: 540px;
    right: -325px; bottom: -270px; border-radius: 50%;
    border: 1px solid rgba(190, 208, 228, .19);
    box-shadow: 0 0 0 42px rgba(190, 208, 228, .035), 0 0 0 84px rgba(190, 208, 228, .025);
}
.login-story::after {
    content: ""; position: absolute; z-index: -1; width: 550px; height: 120px;
    top: 215px; left: -220px; transform: rotate(-48deg);
    background: linear-gradient(90deg, transparent, rgba(190, 208, 228, .07), transparent);
}
.login-identity { display: flex; flex-direction: column; align-items: flex-start; gap: 11px; }
.login-logo { display: block; width: 204px; max-width: 100%; height: auto; filter: brightness(0) invert(1); }
.login-brand-caption { font-size: 9px; text-transform: uppercase; letter-spacing: 2.7px; padding-left: 1px; }
.login-story-content { margin: 40px 0 32px; }
.login-eyebrow { margin: 0 0 17px; font-size: 10px; letter-spacing: 1.8px; text-transform: uppercase; font-weight: 700; }
.login-story .login-eyebrow { color: #bed0e4; }
.login-story h2 { margin: 0; color: #fff; font-size: clamp(34px, 3.1vw, 43px); line-height: 1.1; letter-spacing: -1.5px; font-weight: 700; }
.login-story h2 span { color: #bed0e4; }
.login-story-description { max-width: 350px; margin: 22px 0 0; font-size: 14px; line-height: 1.65; }
.login-solutions { list-style: none; display: grid; gap: 19px; margin: 33px 0 0; padding: 0; }
.login-solutions li { display: flex; gap: 13px; align-items: center; }
.login-solution-number {
    flex: 0 0 33px; height: 33px; display: grid; place-items: center;
    border: 1px solid rgba(190, 208, 228, .25); border-radius: 9px;
    color: #bed0e4; background: rgba(190, 208, 228, .055); font-size: 10px;
}
.login-solutions strong { display: block; color: #eef5fc; font-size: 13px; font-weight: 600; margin-bottom: 4px; }
.login-solutions li div > span { display: block; font-size: 11px; line-height: 1.4; }
.login-story-footer { margin: 0; padding-top: 18px; border-top: 1px solid rgba(190, 208, 228, .18); font-size: 10px; line-height: 1.5; }
.login-story-decoration { position: absolute; z-index: -1; right: 30px; top: 45px; width: 65px; height: 65px; border: 1px solid rgba(190, 208, 228, .12); border-radius: 50%; }
.login-access { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 40px 54px; }
.login-access-content { width: 100%; max-width: 354px; }
.login-product { display: flex; align-items: center; gap: 11px; margin-bottom: 39px; color: #173d68; font-size: 19px; font-weight: 700; letter-spacing: -.5px; }
.login-product > span { border-left: 1px solid #cbd8e5; padding-left: 11px; color: #687e95; font-size: 10px; font-weight: 400; letter-spacing: .1px; }
.login-welcome .login-eyebrow { color: #647d96; font-size: 9px; margin-bottom: 12px; }
.login-welcome h1 { margin: 0; color: #173d68; font-size: 39px; line-height: 1.08; letter-spacing: -1.5px; }
.login-welcome > p:last-child { margin: 17px 0 29px; color: #62778e; font-size: 13px; line-height: 1.65; }
.login-field { margin: 0 0 19px; }
.login-field > label { display: block; margin: 0 0 8px; color: #294965; font-size: 11px; font-weight: 700; }
.login-access-form .login-field input {
    display: block; width: 100%; height: 47px; min-width: 0; padding: 11px 13px;
    border: 1px solid #becfe0; border-radius: 7px; background: #fcfdff;
    color: #173d68; font: 14px Arial, sans-serif; outline: none;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.login-field input::placeholder { color: #8698aa; font-size: 12px; opacity: 1; }
.login-access-form .login-field input:focus { border-color: #1e5c91; box-shadow: 0 0 0 3px rgba(30, 92, 145, .11); background: #fff; }
.login-password { position: relative; }
.login-access-form .login-password input { padding-right: 85px; }
.login-password-toggle {
    position: absolute; right: 7px; top: 7px; height: 33px; padding: 0 9px;
    border: 0; border-radius: 4px; background: transparent; color: #1e5c91;
    cursor: pointer; font: 600 11px Arial, sans-serif;
}
.login-password-toggle:hover { background: #e8f1f8; }
.login-password-toggle[hidden] { display: none; }
.login-access-form input.login-submit {
    display: block; width: 100%; min-height: 46px; margin-top: 25px;
    border: 1px solid #173d68 !important; border-radius: 7px !important;
    background: linear-gradient(105deg, #173d68, #1e5c91) !important;
    color: #bed0e4 !important; font: 700 12px Arial, sans-serif !important; cursor: pointer;
    box-shadow: 0 5px 12px rgba(23, 61, 104, .13);
    transition: background .15s, box-shadow .15s, transform .15s;
}
.login-access-form input.login-submit:hover { background: #173d68 !important; box-shadow: 0 6px 18px rgba(23, 61, 104, .2); }
.login-submit:active { transform: translateY(1px); }
.login-submit:focus-visible, .login-reset:focus-visible, .login-password-toggle:focus-visible { outline: 3px solid #8baec9; outline-offset: 3px; }
.login-form-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; color: #71859a; font-size: 9px; }
.login-access-form input.login-reset { margin: 0; padding: 5px 0 5px 5px; border: 0 !important; border-radius: 3px; background: transparent !important; box-shadow: none !important; color: #315f87 !important; font: 10px Arial, sans-serif !important; cursor: pointer; }
.login-reset:hover { text-decoration: underline; }
.login-support { margin-top: 30px; padding-top: 20px; border-top: 1px solid #e3ebf3; color: #71859a; font-size: 10px; line-height: 1.5; }
.login-support strong { color: #3d5974; font-weight: 600; }
.login-support p { margin: 4px 0 0; }
.login-page-footer { display: flex; justify-content: space-between; gap: 16px; width: 100%; max-width: 1100px; padding: 20px 3px 0; color: #75899c; font-size: 10px; line-height: 1.5; }
.login-messages { padding-left: 16px; color: #9c342f; font-size: 12px; }
/* Preserva o rich:notify de erro com a mensagem original e 10 segundos. */
.rf-ntf.login-error-toast { box-sizing: border-box; width: 460px !important; max-width: calc(100vw - 24px); z-index: 1000000; font: 12px/1.45 Arial, sans-serif; }
.login-error-toast .rf-ntf-cnt { background: #fff0ef !important; background-image: none !important; border: 1px solid #d89a95 !important; border-radius: 6px; box-sizing: border-box; color: #9c342f !important; max-height: calc(100vh - 24px); overflow-y: auto; padding: 12px; box-shadow: 0 5px 18px rgba(23, 59, 88, .14); }
.login-error-toast .rf-ntf-sum { color: inherit; margin-bottom: 6px; }
.login-error-toast .rf-ntf-det { white-space: pre-line; overflow-wrap: anywhere; }
.login-error-toast .rf-ntf-cls { display: block !important; visibility: visible !important; opacity: 1 !important; cursor: pointer; }
.login-error-toast .rf-ntf-cls-ico { background-image: none !important; width: 18px; height: 18px; font: bold 20px/18px Arial, sans-serif; text-align: center; }
.login-error-toast .rf-ntf-cls-ico::before { content: '\00d7'; }
@media (min-width: 861px) {
    .login-welcome > p:last-child { font-size: 12px; letter-spacing: -.15px; white-space: nowrap; }
}
@media (max-width: 1050px) and (min-width: 861px) {
    .login-welcome > p:last-child { font-size: 11px; }
    .login-shell { padding: 24px; }
    .login-story { padding: 36px 30px 26px; }
    .login-access { padding: 36px 32px; }
    .login-story h2 { font-size: 38px; }
}
@media (max-width: 860px) {
    .login-shell { padding: 22px 20px; }
    .login-experience { grid-template-columns: minmax(0, 1fr); max-width: 560px; min-height: 0; border-radius: 17px; }
    .login-story { border-radius: 16px 16px 0 0; padding: 28px 36px; }
    .login-identity { gap: 7px; }
    .login-logo { width: 165px; }
    .login-brand-caption { font-size: 8px; letter-spacing: 2px; }
    .login-story-content { margin: 24px 0 0; }
    .login-story .login-eyebrow, .login-story-description, .login-solutions, .login-story-footer { display: none; }
    .login-story h2 { font-size: 29px; line-height: 1.12; letter-spacing: -.8px; }
    .login-story h2 br { display: none; }
    .login-access { padding: 32px 40px; }
    .login-access-content { max-width: none; }
    .login-product { margin-bottom: 24px; font-size: 17px; }
    .login-welcome h1 { font-size: 34px; }
    .login-welcome h1 br { display: none; }
    .login-desktop-break { display: none; }
    .login-welcome > p:last-child { margin: 12px 0 24px; }
    .login-page-footer { max-width: 540px; padding-top: 16px; }
    .login-page-footer > span:last-child { display: none; }
}
@media (max-width: 600px) {
    .login-shell { padding: 14px 12px 18px; justify-content: flex-start; }
    .login-story { padding: 25px 24px; }
    .login-story h2 { font-size: 27px; max-width: 280px; }
    .login-access { padding: 29px 25px 26px; }
    .login-welcome h1 { font-size: 32px; }
    .login-access-form .login-field input { font-size: 16px; }
    .login-field { margin-bottom: 18px; }
    .login-support { margin-top: 25px; padding-top: 17px; }
    .login-form-meta { font-size: 8px; }
    .login-page-footer { padding: 15px 8px 0; font-size: 9px; }
}
@media (min-width: 861px) and (max-height: 820px) {
    .login-shell { padding-top: 22px; padding-bottom: 16px; }
    .login-experience { min-height: 0; }
    .login-story { padding-top: 32px; padding-bottom: 24px; }
    .login-story-content { margin: 28px 0; }
    .login-solutions { gap: 14px; margin-top: 25px; }
    .login-access { padding-top: 30px; padding-bottom: 30px; }
    .login-product { margin-bottom: 28px; }
}
/* Compacta o conteudo pela altura util, sem esconder overflow ou controles. */
@media (max-height: 760px) {
    .login-shell { min-height: 100dvh; padding-top: 12px; padding-bottom: 12px; }
    .login-page-footer { padding-top: 10px; }
    .login-access { padding-top: 20px; padding-bottom: 20px; }
    .login-product { margin-bottom: 18px; }
    .login-welcome > p:last-child { margin-top: 10px; margin-bottom: 18px; }
    .login-field { margin-bottom: 12px; }
    .login-access-form input.login-submit { margin-top: 16px; }
    .login-support { margin-top: 16px; padding-top: 12px; }
}
@media (min-width: 861px) and (max-height: 760px) {
    .login-story { padding-top: 24px; padding-bottom: 20px; }
    .login-story-content { margin: 20px 0; }
    .login-story h2 { font-size: 34px; }
    .login-story-description { margin-top: 14px; font-size: 13px; }
    .login-solutions { margin-top: 18px; gap: 12px; }
    .login-story-footer { padding-top: 12px; }
}
@media (max-width: 860px) and (max-height: 950px) {
    .login-shell { padding-top: 10px; padding-bottom: 10px; }
    .login-story { padding: 16px 25px; }
    .login-logo { width: 140px; }
    .login-story-content { margin-top: 12px; }
    .login-story h2 { font-size: 23px; max-width: none; }
    .login-access { padding: 20px 25px; }
    .login-product { margin-bottom: 16px; }
    .login-welcome h1 { font-size: 30px; }
    .login-welcome > p:last-child { margin: 10px 0 16px; }
    .login-field { margin-bottom: 12px; }
    .login-access-form input.login-submit { margin-top: 16px; }
    .login-support { margin-top: 16px; padding-top: 12px; }
    .login-page-footer { padding-top: 10px; }
}
@media (max-height: 620px) {
    .login-shell { padding-top: 6px; padding-bottom: 6px; }
    .login-access { padding-top: 12px; padding-bottom: 12px; }
    .login-product { margin-bottom: 10px; }
    .login-welcome .login-eyebrow { margin-bottom: 6px; }
    .login-welcome h1 { font-size: 28px; }
    .login-welcome > p:last-child { margin: 8px 0 12px; }
    .login-field > label { margin-bottom: 5px; }
    .login-access-form .login-field input { height: 40px; padding-top: 8px; padding-bottom: 8px; }
    .login-password-toggle { top: 4px; height: 32px; }
    .login-access-form input.login-submit { min-height: 40px; margin-top: 12px; }
    .login-form-meta { margin-top: 6px; }
    .login-support { margin-top: 10px; padding-top: 8px; }
    .login-page-footer { padding-top: 6px; }
}
@media (min-width: 861px) and (max-height: 620px) {
    .login-story { padding-top: 16px; padding-bottom: 16px; }
    .login-logo { width: 165px; }
    .login-story-content { margin: 12px 0; }
    .login-eyebrow { margin-bottom: 10px; }
    .login-story h2 { font-size: 29px; }
    .login-story-description { margin-top: 10px; font-size: 12px; }
    .login-solutions { margin-top: 12px; gap: 9px; }
}
@media (max-width: 860px) and (max-height: 700px) {
    .login-story { padding-top: 10px; padding-bottom: 10px; }
    .login-identity { flex-direction: row; align-items: center; gap: 12px; }
    .login-logo { width: 118px; }
    .login-brand-caption { font-size: 7px; letter-spacing: 1px; }
    .login-story-content { margin-top: 6px; }
    .login-story h2 { font-size: 19px; }
    .login-access { padding-top: 10px; padding-bottom: 10px; }
}
/* Cabecalho compacto exclusivo do celular; desktop e tablet preservados. */
@media (max-width: 600px) {
    .login-story { padding: 12px 16px; }
    .login-identity { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
    .login-logo { width: 118px; }
    .login-brand-caption { padding-left: 0; font-size: 7px; letter-spacing: .8px; white-space: nowrap; }
    .login-story-content { margin: 8px 0 0; }
    .login-story h2 { max-width: none; font-size: clamp(11px, 3.4vw, 16px); line-height: 1.3; letter-spacing: -.2px; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    .login-access-form input, .login-submit { transition: none; }
}
