/* Local login follows the Bank Kalsel sso-keycloak theme; scoped to this page. */
@font-face {
    font-family: 'Manrope';
    src: url('../../fonts/auth/Manrope.ttf') format('truetype');
    font-style: normal;
    font-weight: 200 800;
    font-display: swap;
}
.irs-login-page {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: clamp(16px, 4vh, 40px) 16px;
    background: #d5e9f8 url('../../auth/sso-theme/bg.webp') center / cover no-repeat fixed;
    color: #163a57;
    color-scheme: light;
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    -webkit-font-smoothing: antialiased;
}
.irs-login-card {
    box-sizing: border-box;
    width: 100%;
    max-width: 500px;
    padding: 26px 38px 30px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(255, 255, 255, .72);
    border-top: 3px solid #0875cf;
    border-radius: 16px;
    box-shadow: 0 20px 54px rgba(8,43,73,.22), 0 4px 14px rgba(8,43,73,.10);
}
@supports (backdrop-filter: blur(16px)) {
    .irs-login-card { backdrop-filter: blur(16px) saturate(120%); background: rgba(255,255,255,.82); }
}
.irs-login-header { text-align: center; margin-bottom: 12px; }
.irs-login-logo { display: block; max-width: 190px; max-height: 72px; width: auto; height: auto; margin: 0 auto; }
.irs-login-form {
    padding: 20px;
    margin-top: 8px;
    background: rgba(255,255,255,.72);
    border: 1px solid rgba(255,255,255,.78);
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(13,56,91,.12);
}
.irs-login-page .fi-sc { gap: 16px; }
html .irs-login-page .fi-fo-field-label .fi-fo-field-label-content { font-size: 12px; font-weight: 600; letter-spacing: .015em; color: #52677c; }
.irs-login-page .fi-input-wrp, .irs-login-page .captcha-answer-input {
    background: rgba(255,255,255,.94);
    border: 1px solid #d5e2ee;
    border-radius: 11px;
    box-shadow: 0 2px 4px rgba(29,66,98,.025);
    color: #163a57;
    transition: border-color .18s, box-shadow .18s, background-color .18s;
}
.irs-login-page .fi-input-wrp:focus-within, .irs-login-page .captcha-answer-input:focus {
    background: white; border-color: #0875cf; box-shadow: 0 0 0 3px rgba(8,117,207,.16); outline: none;
}
.irs-login-page input { color: #24445f; font: 500 14px/1.5 'Manrope', sans-serif; }
.irs-login-page input::placeholder { color: #8495a8; font-size: 13px; font-weight: 400; opacity: 1; }
.irs-login-page .fi-input { min-height: 46px; padding: 11px 14px; }
.irs-login-page .fi-input-wrp-suffix { color: #54768f; }
.irs-login-page .fi-sc-form { gap: 16px; }
.irs-login-page .fi-btn[type="submit"] {
    position: relative;
    width: 100%;
    min-height: 46px;
    border: 1px solid #0066cc;
    border-radius: 11px;
    background: #0066cc url('../../auth/sso-theme/lock.svg') 14px center / 16px 16px no-repeat;
    color: white;
    box-shadow: 0 5px 12px rgba(0,102,204,.20);
    font-size: 14px;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    letter-spacing: .02em;
}
.irs-login-page .fi-btn[type="submit"]:hover { background-color: #0052a3; border-color: #0052a3; }
.irs-login-page button:focus-visible { outline: 2px solid #0875cf; outline-offset: 2px; }
.irs-login-page .captcha-control-row {
    display: grid;
    grid-template-columns: minmax(112px,132px) 32px minmax(0,1fr);
    gap: 8px;
    align-items: center;
    margin-top: 4px;
}
.irs-login-page .captcha-image { width: 100%; height: 48px; object-fit: fill; border: 1px solid #91bbdc; border-radius: 6px; }
.irs-login-page .local-captcha-refresh {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border: 0; border-radius: 50%; background: #e8f4fd; cursor: pointer;
}
.irs-login-page .local-captcha-refresh:hover { background: #dceefa; }
.irs-login-page .local-captcha-refresh:disabled { opacity: .55; cursor: wait; }
.irs-login-page .captcha-answer-input { min-width: 0; width: 100%; height: 40px; padding: 8px; background: rgba(248,252,255,.92); border: 1px solid #9fc5e3; border-bottom-color: #6fa9d5; border-radius: 7px; box-shadow: 0 1px 2px rgba(9,78,130,.06); }
.irs-login-page .captcha-answer-input::placeholder { font-size: 12px; }
.irs-login-page .fi-fo-field-wrp-error-message { color: #b91c1c; font-size: 12px; }
.irs-login-page .captcha-answer-input[aria-invalid="true"] { border-color: #c9190b; }
@media (min-width:768px) and (min-height:620px) { .irs-login-card { transform: translateY(clamp(-22px,-2.5vh,-14px)); } }
@media (max-width:480px) {
    .irs-login-page { padding: 12px; }
    .irs-login-card { padding: 20px 16px 22px; border-radius: 14px; }
    .irs-login-form { padding: 14px; }
    .irs-login-page .captcha-control-row { grid-template-columns: minmax(88px,108px) 30px minmax(0,1fr); gap: 6px; }
    .irs-login-page .captcha-image { height: 44px; }
    .irs-login-page .local-captcha-refresh { width: 30px; height: 30px; }
}
@media (max-height:760px) and (min-width:768px) {
    .irs-login-page { padding-block: 14px; }
    .irs-login-card { padding-top: 20px; padding-bottom: 22px; }
    .irs-login-logo { max-width: 180px; max-height: 60px; }
    .irs-login-form { padding: 16px; }
}
