/* =========================================================
   MCP THEME LOGIN - DEEP ROYAL BLUE
   Sistem Meja Bantuan JKN Sabah
   Shared global theme: MCP_Theme_Global.css
   ========================================================= */

.login-page {
    --login-primary: var(--sec-primary, #294A8B);
    --login-dark: var(--sec-primary-dark, #1B3263);
    --login-light: var(--sec-primary-soft, #EDF3FC);
    --login-border: var(--sec-border, #D8E4F5);
    --login-text: var(--sec-text-dark, #24344F);
    --login-muted: var(--sec-muted, #68788F);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 38px 24px 18px;
    background: linear-gradient(135deg, #EDF3FC 0%, #F5F8FD 48%, #E4EDFA 100%);
    color: var(--login-text);
    font-family: inherit;
}
.login-page *, .login-page *::before, .login-page *::after { box-sizing: border-box; }
.login-card {
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    width: 100%; max-width: 1040px; min-height: 550px;
    background: #fff; border-radius: 20px; overflow: hidden;
    box-shadow: 0 20px 55px rgba(27, 50, 99, .15);
}
.login-brand {
    position: relative; isolation: isolate; overflow: hidden;
    display: flex; flex-direction: column; align-items: center;
    justify-content: center; gap: 22px; padding: 52px 42px;
    text-align: center; color: #fff;
    background: linear-gradient(150deg, var(--login-primary) 0%, var(--login-dark) 100%);
}
.brand-logo-wrap, .brand-system, .brand-information { position: relative; z-index: 1; }
.brand-logo-wrap {
    display: flex; justify-content: center; align-items: center;
    width: 112px; height: 112px; padding: 13px;
    border: 1px solid rgba(255,255,255,.25); border-radius: 50%;
    background: rgba(255,255,255,.12);
}
.brand-logo { display: block; max-width: 100%; max-height: 100%; object-fit: contain; }
.brand-system h1 { margin: 0; color: #fff; font-size: clamp(25px, 3vw, 34px); font-weight: 800; line-height: 1.25; letter-spacing: .7px; }
.brand-information { display: flex; flex-direction: column; gap: 24px; width: 100%; max-width: 340px; }
.access-info { display: flex; align-items: flex-start; gap: 11px; padding: 14px 16px; text-align: left; border-radius: 10px; background: rgba(255,255,255,.12); }
.access-info i { margin-top: 3px; font-size: 16px; color: #D8E4F5; }
.access-info p { margin: 0; font-size: 12px; line-height: 1.7; color: #fff; }
.contact-info { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; text-align: left; }
.contact-title { font-size: 12px; font-weight: 600; line-height: 1.6; color: rgba(255,255,255,.9); }
.contact-item { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; color: #fff; font-size: 12px; text-decoration: none; overflow-wrap: anywhere; }
.contact-item:hover, .contact-item:focus { color: #D8E4F5; text-decoration: underline; }
.contact-item i { width: 16px; text-align: center; }
.brand-decoration { position: absolute; z-index: 0; pointer-events: none; border-radius: 50%; border: 1px solid rgba(255,255,255,.13); }
.decoration-one { width: 300px; height: 300px; top: -170px; right: -150px; background: rgba(255,255,255,.05); }
.decoration-two { width: 270px; height: 270px; bottom: -185px; left: -115px; background: rgba(255,255,255,.04); }
.login-form-area { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 55px 56px; background: #fff; }
.login-form-inner { width: 100%; max-width: 390px; }
.login-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 25px; }
.login-icon { display: flex; align-items: center; justify-content: center; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 12px; background: var(--login-light); color: var(--login-primary); font-size: 20px; }
.login-title h2 { margin: 0; color: var(--login-dark); font-size: 25px; font-weight: 750; line-height: 1.3; }
.estaf-note { margin-bottom: 26px; padding: 13px 15px; background: var(--login-light); border-left: 3px solid var(--login-primary); border-radius: 7px; color: var(--login-muted); font-size: 12px; line-height: 1.7; }
.form-group-custom { margin-bottom: 21px; }
.form-group-custom label { display: block; margin-bottom: 9px; color: var(--login-text); font-size: 13px; font-weight: 650; }
.custom-input { display: flex; align-items: center; position: relative; min-height: 48px; border: 1px solid var(--login-border); border-radius: 9px; background: #fff; transition: border-color .2s ease, box-shadow .2s ease; }
.custom-input:focus-within { border-color: var(--login-primary); box-shadow: 0 0 0 3px rgba(41,74,139,.12); }
.custom-input > i { flex: 0 0 45px; text-align: center; font-size: 14px; color: #6483B8; }
.custom-input input { display: block; flex: 1; width: 100%; min-width: 0; min-height: 46px; padding: 10px 12px 10px 0; border: 0; outline: 0; background: transparent; color: var(--login-text); font: inherit; font-size: 13px; box-shadow: none; }
.custom-input input::placeholder { color: #8997AB; opacity: 1; }
.custom-input input[type="password"], .custom-input input#txtpassword { padding-right: 2px; }
.password-toggle { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; align-self: stretch; padding: 0; border: 0; background: transparent; color: var(--login-muted); cursor: pointer; }
.password-toggle:hover { color: var(--login-primary); }
.password-toggle:focus-visible { outline: 2px solid var(--login-primary); outline-offset: -4px; border-radius: 6px; }
.login-submit { display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; min-height: 48px; margin-top: 28px; padding: 12px 20px; border: 1px solid var(--login-primary); border-radius: 9px; background: var(--login-primary); color: #fff; font-size: 13px; font-weight: 750; letter-spacing: .5px; cursor: pointer; transition: background .2s ease, box-shadow .2s ease, transform .2s ease; }
.login-submit:hover { background: var(--login-dark); border-color: var(--login-dark); box-shadow: 0 8px 18px rgba(41,74,139,.2); }
.login-submit:active { transform: translateY(1px); }
.login-submit:focus-visible { outline: 3px solid #B9CCE9; outline-offset: 3px; }
.login-footer { display: flex; flex-direction: column; align-items: center; gap: 5px; width: 100%; max-width: 1040px; padding: 22px 10px 0; color: var(--login-muted); font-size: 11px; line-height: 1.7; text-align: center; }
@media (max-width: 900px) {
    .login-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .login-brand { padding: 42px 26px; }
    .login-form-area { padding: 42px 32px; }
}
@media (max-width: 700px) {
    .login-page { justify-content: flex-start; padding: 18px 14px; }
    .login-card { grid-template-columns: minmax(0, 1fr); min-height: 0; }
    .login-brand { gap: 15px; padding: 30px 24px; }
    .brand-logo-wrap { width: 82px; height: 82px; }
    .brand-system h1 { font-size: 25px; }
    .brand-information { gap: 13px; }
    .contact-info { gap: 7px; }
    .login-form-area { padding: 34px 24px 38px; }
    .login-heading { margin-bottom: 18px; }
    .estaf-note { margin-bottom: 20px; }
    .login-footer { padding-top: 17px; }
}
@media (max-width: 380px) {
    .login-brand, .login-form-area { padding-left: 18px; padding-right: 18px; }
    .brand-system h1 { font-size: 22px; }
}
