/* Hospital HIS login — #337ab7. Scoped to body.login.hospital-erp-login */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&display=swap');

body.login.hospital-erp-login {
    --erp-brand: #337ab7;
    --erp-navy: #286090;
    --erp-blue: #337ab7;
    --erp-sky: #4a8fc4;
    --erp-ice: #e8f1f8;
    --erp-mist: #f4f8fb;
    --erp-text: #1e4a6e;
    --erp-muted: #5b7d99;
    --erp-line: #c5d9ea;
    --login-card-w: 980px;
    --login-card-w: min(980px, 92vw);
    --login-card-h: 620px;
    --login-card-h: min(680px, calc(100vh - 56px));
    --login-card-h: min(680px, calc(100dvh - 56px));
    --login-pad-x: clamp(14px, 2vw, 28px);
    --login-pad-y: clamp(10px, 1.8vh, 20px);
    --login-card-max: var(--login-card-w);
    --login-hero-title: clamp(22px, 2.2vw + 12px, 34px);
    --login-form-title: clamp(20px, 1.5vw + 12px, 24px);
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    background: #d7e8f4 !important;
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: hidden;
    height: 100vh;
    height: 100dvh;
    box-sizing: border-box;
}

body.login.hospital-erp-login *,
body.login.hospital-erp-login *::before,
body.login.hospital-erp-login *::after {
    box-sizing: border-box;
}

body.login.hospital-erp-login .login_main_container {
    background: transparent;
    padding: 8px 12px 8px;
    padding: clamp(8px, 1.5vh, 16px) clamp(10px, 2vw, 20px) 8px;
    float: none;
    width: 100%;
    max-width: 100%;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    position: relative;
    z-index: 1;
}

body.login.hospital-erp-login .login_main_container::before,
body.login.hospital-erp-login .login_main_container::after,
body.login.hospital-erp-login .login_left_box::after,
body.login.hospital-erp-login .login_right_box::before {
    display: none;
}

.hospital-login-bg {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background:
        radial-gradient(ellipse at 18% 12%, rgba(51, 122, 183, 0.22) 0%, transparent 46%),
        radial-gradient(ellipse at 88% 88%, rgba(40, 96, 144, 0.16) 0%, transparent 50%),
        linear-gradient(165deg, #cfe4f3 0%, #eaf4fb 45%, #d4e6f4 100%);
}

.hospital-login-bg::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    inset: 0;
    opacity: 0.16;
    background-image:
        linear-gradient(#337ab7 1px, transparent 1px),
        linear-gradient(90deg, #337ab7 1px, transparent 1px);
    background-size: 56px 56px;
}

.hospital-login-bg::after {
    content: '+';
    position: absolute;
    width: 200px;
    height: 200px;
    right: 5%;
    bottom: 7%;
    font-size: 200px;
    line-height: 180px;
    text-align: center;
    color: rgba(51, 122, 183, 0.09);
    font-weight: 300;
}

.hospital-bg-wash,
.hospital-bg-dot,
.hospital-bg-plus,
.hospital-orb,
.hospital-scan,
.hospital-scene,
.hospital-cross-badge,
.hospital-logo-halo,
body.login.hospital-erp-login .codfox_login_logo img,
body.login.hospital-erp-login .codfox_login_wrapper {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    -webkit-transform: translate3d(0, 0, 0);
    transform: translate3d(0, 0, 0);
}

.hospital-bg-wash {
    position: absolute;
    width: 55%;
    height: 55%;
    left: -8%;
    top: -12%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(51, 122, 183, 0.18) 0%, transparent 70%);
    -webkit-animation: hospital-bg-wash 14s ease-in-out infinite;
    animation: hospital-bg-wash 14s ease-in-out infinite;
}

.hospital-bg-wash-b {
    left: auto;
    right: -12%;
    top: auto;
    bottom: -18%;
    width: 48%;
    height: 48%;
    background: radial-gradient(circle, rgba(40, 96, 144, 0.2) 0%, transparent 70%);
    -webkit-animation: hospital-bg-wash 18s ease-in-out infinite reverse;
    animation: hospital-bg-wash 18s ease-in-out infinite reverse;
}

.hospital-bg-ecg {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 18%;
    width: 100%;
    height: 72px;
    opacity: 0.35;
}

.hospital-bg-ecg-line {
    fill: none;
    stroke: #337ab7;
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
    stroke-dasharray: 1400;
    stroke-dashoffset: 1400;
    -webkit-animation: hospital-bg-ecg-run 4.5s linear infinite;
    animation: hospital-bg-ecg-run 4.5s linear infinite;
}

body.hospital-ecg-js .hospital-bg-ecg-line,
body.hospital-ecg-js .hospital-ecg-line {
    -webkit-animation: none;
    animation: none;
}

@-webkit-keyframes hospital-bg-ecg-run {
    0% { stroke-dashoffset: 1400; }
    70% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1400; }
}
@keyframes hospital-bg-ecg-run {
    0% { stroke-dashoffset: 1400; }
    70% { stroke-dashoffset: 0; }
    100% { stroke-dashoffset: -1400; }
}

.hospital-bg-dot,
.hospital-bg-plus {
    position: absolute;
    color: rgba(51, 122, 183, 0.28);
}

.hospital-bg-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #337ab7;
    opacity: 0.22;
}

.hospital-bg-plus {
    font-size: 22px;
    font-weight: 300;
    line-height: 1;
    opacity: 0.22;
}

.hospital-bg-dot.d1 { left: 8%; top: 22%; -webkit-animation: hospital-bg-float-a 11s ease-in-out infinite; animation: hospital-bg-float-a 11s ease-in-out infinite; }
.hospital-bg-dot.d2 { left: 78%; top: 18%; -webkit-animation: hospital-bg-float-b 13s ease-in-out infinite; animation: hospital-bg-float-b 13s ease-in-out infinite; }
.hospital-bg-dot.d3 { left: 18%; top: 72%; -webkit-animation: hospital-bg-float-b 10s ease-in-out infinite reverse; animation: hospital-bg-float-b 10s ease-in-out infinite reverse; }
.hospital-bg-dot.d4 { left: 88%; top: 64%; -webkit-animation: hospital-bg-float-a 12s ease-in-out infinite reverse; animation: hospital-bg-float-a 12s ease-in-out infinite reverse; }

.hospital-bg-plus.p1 { left: 12%; top: 42%; -webkit-animation: hospital-bg-float-a 16s ease-in-out infinite; animation: hospital-bg-float-a 16s ease-in-out infinite; }
.hospital-bg-plus.p2 { left: 72%; top: 38%; font-size: 16px; -webkit-animation: hospital-bg-float-b 14s ease-in-out infinite; animation: hospital-bg-float-b 14s ease-in-out infinite; }
.hospital-bg-plus.p3 { left: 42%; top: 12%; font-size: 18px; -webkit-animation: hospital-bg-float-a 18s ease-in-out infinite reverse; animation: hospital-bg-float-a 18s ease-in-out infinite reverse; }
.hospital-bg-plus.p4 { left: 6%; top: 82%; font-size: 20px; -webkit-animation: hospital-bg-float-b 15s ease-in-out infinite; animation: hospital-bg-float-b 15s ease-in-out infinite; }
.hospital-bg-plus.p5 { left: 92%; top: 80%; font-size: 14px; -webkit-animation: hospital-bg-float-a 17s ease-in-out infinite reverse; animation: hospital-bg-float-a 17s ease-in-out infinite reverse; }

@-webkit-keyframes hospital-bg-wash {
    0%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 0.85; }
    50% { -webkit-transform: translate3d(12%, 8%, 0); transform: translate3d(12%, 8%, 0); opacity: 1; }
}
@keyframes hospital-bg-wash {
    0%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 0.85; }
    50% { -webkit-transform: translate3d(12%, 8%, 0); transform: translate3d(12%, 8%, 0); opacity: 1; }
}

@-webkit-keyframes hospital-bg-float-a {
    0%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 0.18; }
    50% { -webkit-transform: translate3d(0, -18px, 0); transform: translate3d(0, -18px, 0); opacity: 0.38; }
}
@keyframes hospital-bg-float-a {
    0%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 0.18; }
    50% { -webkit-transform: translate3d(0, -18px, 0); transform: translate3d(0, -18px, 0); opacity: 0.38; }
}

@-webkit-keyframes hospital-bg-float-b {
    0%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 0.16; }
    50% { -webkit-transform: translate3d(10px, -12px, 0); transform: translate3d(10px, -12px, 0); opacity: 0.32; }
}
@keyframes hospital-bg-float-b {
    0%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); opacity: 0.16; }
    50% { -webkit-transform: translate3d(10px, -12px, 0); transform: translate3d(10px, -12px, 0); opacity: 0.32; }
}

body.login.hospital-erp-login .hospital-login-alerts {
    position: fixed;
    top: 16px;
    left: 50%;
    -webkit-transform: translateX(-50%);
    transform: translateX(-50%);
    width: 92%;
    max-width: 560px;
    z-index: 50;
    margin: 0;
    float: none;
    pointer-events: none;
}

body.login.hospital-erp-login .hospital-login-alerts .message {
    pointer-events: auto;
    border-radius: 12px;
    margin: 0 0 8px 0;
    border: 0;
    padding: 12px 16px;
    width: 100%;
    float: none;
    box-shadow: 0 10px 28px rgba(30, 74, 110, 0.18);
}

body.login.hospital-erp-login .codfox_login_wrapper {
    width: 92%;
    max-width: 980px;
    max-width: var(--login-card-w);
    width: var(--login-card-w);
    height: auto;
    min-height: 0;
    height: var(--login-card-h);
    max-height: 100%;
    max-height: var(--login-card-h);
    aspect-ratio: 1.58 / 1;
    position: relative;
    z-index: 10;
    overflow: hidden;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    border-radius: clamp(16px, 2vw, 24px);
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.7),
        0 1px 2px rgba(51, 122, 183, 0.06),
        0 28px 70px rgba(30, 74, 110, 0.22);
    background: #f4f8fb;
    background: rgba(255, 255, 255, 0.92);
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
    -webkit-flex-wrap: nowrap;
    -ms-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    -ms-flex-align: stretch;
    align-items: stretch;
    float: none;
    -webkit-animation: hospital-card-in 0.75s cubic-bezier(0.22, 1, 0.36, 1);
    animation: hospital-card-in 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

body.login.hospital-erp-login .codfox_login_wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: 0 0 0 1px rgba(51, 122, 183, 0.28), 0 32px 80px rgba(51, 122, 183, 0.28);
    opacity: 0;
    -webkit-animation: hospital-card-glow 4.8s ease-in-out 0.8s infinite;
    animation: hospital-card-glow 4.8s ease-in-out 0.8s infinite;
}

@-webkit-keyframes hospital-card-in {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 22px, 0) scale(0.97);
        transform: translate3d(0, 22px, 0) scale(0.97);
    }
    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0) scale(1);
        transform: translate3d(0, 0, 0) scale(1);
    }
}
@keyframes hospital-card-in {
    from {
        opacity: 0;
        -webkit-transform: translate3d(0, 22px, 0) scale(0.97);
        transform: translate3d(0, 22px, 0) scale(0.97);
    }
    to {
        opacity: 1;
        -webkit-transform: translate3d(0, 0, 0) scale(1);
        transform: translate3d(0, 0, 0) scale(1);
    }
}

@-webkit-keyframes hospital-card-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}
@keyframes hospital-card-glow {
    0%, 100% { opacity: 0; }
    50% { opacity: 1; }
}

body.login.hospital-erp-login .codfox_login_wrapper > .col-md-7,
body.login.hospital-erp-login .codfox_login_wrapper > form,
body.login.hospital-erp-login .codfox_login_wrapper > form > .col-md-5 {
    float: none;
}

body.login.hospital-erp-login .codfox_login_wrapper > .col-md-7 {
    width: 50%;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 50%;
    -ms-flex: 1 1 50%;
    flex: 1 1 50%;
    max-width: 50%;
    padding: 0 !important;
    height: 100%;
    min-height: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
}

body.login.hospital-erp-login .codfox_login_wrapper > form {
    width: 50%;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 50%;
    -ms-flex: 1 1 50%;
    flex: 1 1 50%;
    max-width: 50%;
    margin: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    height: 100%;
    min-height: 0;
}

body.login.hospital-erp-login .codfox_login_wrapper > form > .col-md-5 {
    width: 100%;
    max-width: 100%;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    -ms-flex: 1;
    flex: 1;
    padding: 0 !important;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    height: 100%;
    min-height: 0;
}

body.login.hospital-erp-login .login_left_box {
    min-height: 0;
    height: 100%;
    background:
        radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.22) 0%, transparent 32%),
        linear-gradient(165deg, #286090 0%, #337ab7 52%, #1e4a70 100%);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    padding: 20px 22px 16px;
    padding: clamp(20px, 3vh, 32px) clamp(18px, 2.4vw, 32px) clamp(14px, 2.2vh, 24px);
    color: #fff;
    position: relative;
    overflow: hidden;
    width: 100%;
}

body.login.hospital-erp-login .login_left_box::before {
    content: '';
    position: absolute;
    left: -40%;
    top: -20%;
    width: 80%;
    height: 70%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, transparent 68%);
    pointer-events: none;
}

.hospital-scan {
    position: absolute;
    left: 0;
    right: 0;
    height: 90px;
    top: 0;
    background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.16), transparent);
    pointer-events: none;
    z-index: 3;
    -webkit-transform: translate3d(0, -90px, 0);
    transform: translate3d(0, -90px, 0);
    -webkit-animation: hospital-scan 5.5s ease-in-out infinite;
    animation: hospital-scan 5.5s ease-in-out infinite;
}

@-webkit-keyframes hospital-scan {
    0% { -webkit-transform: translate3d(0, -90px, 0); transform: translate3d(0, -90px, 0); opacity: 0; }
    12% { opacity: 1; }
    55% { -webkit-transform: translate3d(0, 110%, 0); transform: translate3d(0, 110%, 0); opacity: 0.6; }
    100% { -webkit-transform: translate3d(0, 110%, 0); transform: translate3d(0, 110%, 0); opacity: 0; }
}
@keyframes hospital-scan {
    0% { -webkit-transform: translate3d(0, -90px, 0); transform: translate3d(0, -90px, 0); opacity: 0; }
    12% { opacity: 1; }
    55% { -webkit-transform: translate3d(0, 110%, 0); transform: translate3d(0, 110%, 0); opacity: 0.6; }
    100% { -webkit-transform: translate3d(0, 110%, 0); transform: translate3d(0, 110%, 0); opacity: 0; }
}

.hospital-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.hospital-orb-a {
    width: 160px;
    height: 160px;
    right: -40px;
    top: 28%;
    background: rgba(255, 255, 255, 0.1);
    -webkit-animation: hospital-orb-float 9s ease-in-out infinite;
    animation: hospital-orb-float 9s ease-in-out infinite;
}

.hospital-orb-b {
    width: 90px;
    height: 90px;
    left: -20px;
    bottom: 18%;
    background: rgba(255, 255, 255, 0.08);
    -webkit-animation: hospital-orb-float 7s ease-in-out infinite reverse;
    animation: hospital-orb-float 7s ease-in-out infinite reverse;
}

.hospital-orb-c {
    width: 46px;
    height: 46px;
    right: 18%;
    bottom: 28%;
    background: rgba(255, 255, 255, 0.16);
    -webkit-animation: hospital-orb-float 5.5s ease-in-out infinite;
    animation: hospital-orb-float 5.5s ease-in-out infinite;
}

@-webkit-keyframes hospital-orb-float {
    0%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
    50% { -webkit-transform: translate3d(0, -14px, 0); transform: translate3d(0, -14px, 0); }
}
@keyframes hospital-orb-float {
    0%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
    50% { -webkit-transform: translate3d(0, -14px, 0); transform: translate3d(0, -14px, 0); }
}

.hospital-login-kicker {
    display: inline-block;
    display: -webkit-inline-box;
    display: -webkit-inline-flex;
    display: inline-flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-radius: 999px;
    padding: 7px 14px;
    box-shadow: 0 8px 20px rgba(0, 30, 60, 0.12);
}

.hospital-login-kicker i {
    color: #fff;
    margin-right: 8px;
}

.hospital-login-hero-copy {
    position: relative;
    z-index: 2;
}

.hospital-login-hero-copy h1 {
    margin: clamp(10px, 2vh, 20px) 0 10px;
    font-size: var(--login-hero-title);
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
    letter-spacing: -0.03em;
    text-shadow: 0 8px 24px rgba(0, 20, 50, 0.18);
    opacity: 1;
    word-wrap: break-word;
    overflow-wrap: break-word;
    hyphens: auto;
}

body.hospital-anim-on .hospital-login-hero-copy h1 {
    -webkit-animation: hospital-title-in 0.7s ease;
    animation: hospital-title-in 0.7s ease;
}

@-webkit-keyframes hospital-title-in {
    from { opacity: 0; -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); }
    to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}
@keyframes hospital-title-in {
    from { opacity: 0; -webkit-transform: translate3d(0, 10px, 0); transform: translate3d(0, 10px, 0); }
    to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}

.hospital-login-hero-copy p {
    margin: 0;
    font-size: 14px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.86);
    max-width: 380px;
}

.hospital-scene {
    position: relative;
    width: 100%;
    max-width: 420px;
    max-width: min(420px, 94%);
    min-width: 140px;
    min-height: 140px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    margin: 0 auto;
    z-index: 2;
    -webkit-animation: hospital-scene-float 6s ease-in-out infinite;
    animation: hospital-scene-float 6s ease-in-out infinite;
}

@-webkit-keyframes hospital-scene-float {
    0%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
    50% { -webkit-transform: translate3d(0, -8px, 0); transform: translate3d(0, -8px, 0); }
}
@keyframes hospital-scene-float {
    0%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
    50% { -webkit-transform: translate3d(0, -8px, 0); transform: translate3d(0, -8px, 0); }
}

.hospital-scene-svg {
    width: 100%;
    height: auto;
    min-height: 140px;
    max-height: 42vh;
    display: block;
}

.hospital-win {
    -webkit-animation: hospital-win 2.8s ease-in-out infinite;
    animation: hospital-win 2.8s ease-in-out infinite;
}

.hospital-win.w2 { -webkit-animation-delay: 0.35s; animation-delay: 0.35s; }
.hospital-win.w3 { -webkit-animation-delay: 0.7s; animation-delay: 0.7s; }
.hospital-win.w4 { -webkit-animation-delay: 0.15s; animation-delay: 0.15s; }
.hospital-win.w5 { -webkit-animation-delay: 1s; animation-delay: 1s; }
.hospital-win.w6 { -webkit-animation-delay: 0.5s; animation-delay: 0.5s; }
.hospital-win.w7 { -webkit-animation-delay: 0.85s; animation-delay: 0.85s; }

@-webkit-keyframes hospital-win {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}
@keyframes hospital-win {
    0%, 100% { opacity: 0.55; }
    50% { opacity: 1; }
}

.hospital-cross-badge {
    position: absolute;
    right: 6%;
    top: 2%;
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: #fff;
    color: #337ab7;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 10px 24px rgba(0, 30, 60, 0.28);
}

.hospital-cross-badge::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    border-radius: 50%;
    box-shadow: 0 0 0 10px rgba(255, 255, 255, 0.35);
    opacity: 0;
    -webkit-animation: hospital-badge-pulse 2.4s ease-in-out infinite;
    animation: hospital-badge-pulse 2.4s ease-in-out infinite;
}

@-webkit-keyframes hospital-badge-pulse {
    0%, 100% { opacity: 0.55; -webkit-transform: scale(0.72); transform: scale(0.72); }
    50% { opacity: 0; -webkit-transform: scale(1); transform: scale(1); }
}
@keyframes hospital-badge-pulse {
    0%, 100% { opacity: 0.55; -webkit-transform: scale(0.72); transform: scale(0.72); }
    50% { opacity: 0; -webkit-transform: scale(1); transform: scale(1); }
}

.hospital-login-wards {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 8px -4px 0;
    position: relative;
    z-index: 2;
}

.hospital-login-wards span {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 999px;
    padding: 6px 11px;
    margin: 4px;
    opacity: 1;
    -webkit-transition: background 0.2s ease, -webkit-transform 0.2s ease;
    transition: background 0.2s ease, transform 0.2s ease;
}

body.hospital-anim-on .hospital-login-wards span {
    -webkit-animation: hospital-ward-in 0.45s ease;
    animation: hospital-ward-in 0.45s ease;
}

body.hospital-anim-on .hospital-login-wards span:nth-child(1) { -webkit-animation-delay: 0.35s; animation-delay: 0.35s; }
body.hospital-anim-on .hospital-login-wards span:nth-child(2) { -webkit-animation-delay: 0.45s; animation-delay: 0.45s; }
body.hospital-anim-on .hospital-login-wards span:nth-child(3) { -webkit-animation-delay: 0.55s; animation-delay: 0.55s; }
body.hospital-anim-on .hospital-login-wards span:nth-child(4) { -webkit-animation-delay: 0.65s; animation-delay: 0.65s; }
body.hospital-anim-on .hospital-login-wards span:nth-child(5) { -webkit-animation-delay: 0.75s; animation-delay: 0.75s; }
body.hospital-anim-on .hospital-login-wards span:nth-child(6) { -webkit-animation-delay: 0.85s; animation-delay: 0.85s; }

@-webkit-keyframes hospital-ward-in {
    from { opacity: 0; -webkit-transform: translate3d(0, 8px, 0); transform: translate3d(0, 8px, 0); }
    to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}
@keyframes hospital-ward-in {
    from { opacity: 0; -webkit-transform: translate3d(0, 8px, 0); transform: translate3d(0, 8px, 0); }
    to { opacity: 1; -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
}

.hospital-login-wards span:hover {
    background: rgba(255, 255, 255, 0.24);
    -webkit-transform: translate3d(0, -1px, 0);
    transform: translate3d(0, -1px, 0);
}

body.login.hospital-erp-login .login_img {
    float: none;
    -webkit-box-flex: 1;
    -webkit-flex: 1 0 auto;
    flex: 1 0 auto;
    min-height: 160px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    padding: 4px 0 2px;
    position: relative;
    z-index: 2;
}

body.login.hospital-erp-login .login_img img {
    max-width: 280px;
    margin: 0 auto;
    filter: drop-shadow(0 18px 30px rgba(0, 20, 50, 0.35));
}

.hospital-login-ecg {
    height: 40px;
    width: 100%;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.hospital-ecg-line {
    stroke-dasharray: 520;
    stroke-dashoffset: 520;
    -webkit-animation: hospital-ecg-run 3.2s ease-in-out infinite;
    animation: hospital-ecg-run 3.2s ease-in-out infinite;
}

@-webkit-keyframes hospital-ecg-run {
    0% { stroke-dashoffset: 520; opacity: 0.25; }
    35% { stroke-dashoffset: 0; opacity: 1; }
    70% { stroke-dashoffset: -520; opacity: 0.25; }
    100% { stroke-dashoffset: -520; opacity: 0.2; }
}
@keyframes hospital-ecg-run {
    0% { stroke-dashoffset: 520; opacity: 0.25; }
    35% { stroke-dashoffset: 0; opacity: 1; }
    70% { stroke-dashoffset: -520; opacity: 0.25; }
    100% { stroke-dashoffset: -520; opacity: 0.2; }
}

body.login.hospital-erp-login .login_right_box {
    position: relative;
    min-height: 0;
    height: 100%;
    width: 100%;
    background: linear-gradient(180deg, #ffffff 0%, #f7fbfe 100%);
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    align-items: stretch;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    border-top: 0;
    -webkit-box-flex: 1;
    -webkit-flex: 1;
    flex: 1;
    overflow: hidden;
}

.hospital-login-right-fx {
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.hospital-rfx {
    position: absolute;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(51, 122, 183, 0.12);
    color: #337ab7;
    font-size: 15px;
    line-height: 36px;
    text-align: center;
    -webkit-animation: hospital-wow-orb 2.4s ease-in-out infinite;
    animation: hospital-wow-orb 2.4s ease-in-out infinite;
}

.hospital-rfx i {
    margin: 0;
}

.hospital-rfx-1 {
    top: 12px;
    right: 12px;
}

.hospital-rfx-2 {
    top: 12px;
    left: 12px;
    -webkit-animation-delay: 0.35s;
    animation-delay: 0.35s;
}

.hospital-rfx-3 {
    top: 58px;
    right: 14px;
    -webkit-animation-delay: 0.7s;
    animation-delay: 0.7s;
}

.hospital-rfx-ring {
    position: absolute;
    left: 50%;
    top: 14%;
    width: 108px;
    height: 108px;
    margin-left: -54px;
    border-radius: 50%;
    border: 2px solid rgba(51, 122, 183, 0.22);
    -webkit-animation: hospital-rfx-ring 3.2s ease-out infinite;
    animation: hospital-rfx-ring 3.2s ease-out infinite;
}

@-webkit-keyframes hospital-rfx-ring {
    0% { -webkit-transform: scale(0.72); transform: scale(0.72); opacity: 0.5; }
    100% { -webkit-transform: scale(1.55); transform: scale(1.55); opacity: 0; }
}
@keyframes hospital-rfx-ring {
    0% { -webkit-transform: scale(0.72); transform: scale(0.72); opacity: 0.5; }
    100% { -webkit-transform: scale(1.55); transform: scale(1.55); opacity: 0; }
}

body.login.hospital-erp-login .login_form_box {
    position: relative;
    z-index: 1;
    float: none;
    width: 100%;
    max-width: 100%;
    margin: 0;
    padding: 10px 16px 10px;
    padding: 10px var(--login-pad-x) 10px;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 100%;
    height: 100%;
}

body.login.hospital-erp-login .codfox_login_logo {
    height: auto !important;
    width: 100%;
    margin: 0 auto 6px !important;
    padding: 0 8px 4px;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    position: relative;
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
}

.hospital-logo-halo {
    position: absolute;
    left: 50%;
    top: 48%;
    width: 240px;
    height: 240px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(51, 122, 183, 0.16) 0%, rgba(51, 122, 183, 0.05) 42%, transparent 70%);
    pointer-events: none;
    z-index: 0;
    -webkit-animation: hospital-logo-halo 5.5s ease-in-out infinite;
    animation: hospital-logo-halo 5.5s ease-in-out infinite;
}

@-webkit-keyframes hospital-logo-halo {
    0%, 100% { -webkit-transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
    50% { -webkit-transform: translate(-50%, -50%) scale(1.08); transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}
@keyframes hospital-logo-halo {
    0%, 100% { -webkit-transform: translate(-50%, -50%) scale(1); transform: translate(-50%, -50%) scale(1); opacity: 0.85; }
    50% { -webkit-transform: translate(-50%, -50%) scale(1.08); transform: translate(-50%, -50%) scale(1.08); opacity: 1; }
}

body.login.hospital-erp-login .codfox_login_logo img {
    position: relative;
    z-index: 1;
    max-height: clamp(72px, 12vh, 108px);
    width: auto;
    max-width: 82% !important;
    max-width: min(82%, 240px) !important;
    height: auto;
    object-fit: contain;
    -webkit-animation: hospital-logo-float 4.8s ease-in-out infinite;
    animation: hospital-logo-float 4.8s ease-in-out infinite;
}

@-webkit-keyframes hospital-logo-float {
    0%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
    50% { -webkit-transform: translate3d(0, -6px, 0); transform: translate3d(0, -6px, 0); }
}
@keyframes hospital-logo-float {
    0%, 100% { -webkit-transform: translate3d(0, 0, 0); transform: translate3d(0, 0, 0); }
    50% { -webkit-transform: translate3d(0, -6px, 0); transform: translate3d(0, -6px, 0); }
}

.hospital-login-form-title {
    text-align: center;
    margin: 0 0 8px;
}

.hospital-login-form-title h2 {
    margin: 0 0 6px;
    font-size: var(--login-form-title);
    font-weight: 700;
    color: var(--erp-text);
    letter-spacing: -0.03em;
}

.hospital-login-form-title p {
    margin: 0;
    font-size: 13px;
    color: var(--erp-muted);
}

body.login.hospital-erp-login .login_form_box label.blue,
body.login.hospital-erp-login .login_form_box label {
    font-weight: 600;
    font-size: 12px;
    color: var(--erp-text);
    letter-spacing: 0.02em;
    margin-bottom: 4px;
}

body.login.hospital-erp-login .login_form_box .form-group {
    margin-bottom: 8px;
}

body.login.hospital-erp-login .login_form_box .form-group.no-margin {
    margin-bottom: 0;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
}

body.login.hospital-erp-login .hospital-input-wrap {
    position: relative;
}

body.login.hospital-erp-login .hospital-input-wrap i.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    color: #7aa3c4;
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
    -webkit-animation: hospital-icon-breathe 2.6s ease-in-out infinite;
    animation: hospital-icon-breathe 2.6s ease-in-out infinite;
}

@-webkit-keyframes hospital-icon-breathe {
    0%, 100% { -webkit-transform: translateY(-50%) scale(1); transform: translateY(-50%) scale(1); opacity: 0.72; }
    50% { -webkit-transform: translateY(-50%) scale(1.14); transform: translateY(-50%) scale(1.14); opacity: 1; }
}
@keyframes hospital-icon-breathe {
    0%, 100% { -webkit-transform: translateY(-50%) scale(1); transform: translateY(-50%) scale(1); opacity: 0.72; }
    50% { -webkit-transform: translateY(-50%) scale(1.14); transform: translateY(-50%) scale(1.14); opacity: 1; }
}

body.login.hospital-erp-login .login_form_box .form-control {
    height: 42px !important;
    border-radius: 14px;
    border: 1.5px solid var(--erp-line);
    background: var(--erp-mist);
    box-shadow: none;
    padding: 8px 44px 8px 44px;
    font-size: 14px;
    font-weight: 500;
    color: var(--erp-text) !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.login.hospital-erp-login .login_form_box .form-control:hover {
    border-color: #a8c8de;
    background: #fff;
}

body.login.hospital-erp-login .login_form_box .form-control:focus {
    border-color: var(--erp-blue);
    background: #fff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(51, 122, 183, 0.16);
}

body.login.hospital-erp-login .hospital-toggle-pass {
    position: absolute;
    right: 12px;
    top: 50%;
    -webkit-transform: translateY(-50%);
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #7aa3c4;
    padding: 6px;
    cursor: pointer;
    border-radius: 8px;
}

body.login.hospital-erp-login .hospital-toggle-pass:hover {
    color: var(--erp-blue);
    background: rgba(51, 122, 183, 0.08);
}

body.login.hospital-erp-login .error_red {
    display: block;
    margin-bottom: 6px;
    font-size: 12px;
    color: #c62828;
}

body.login.hospital-erp-login .hospital-login-meta {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    -webkit-flex-wrap: wrap;
    flex-wrap: wrap;
    margin: 2px -4px 10px;
    padding: 0;
}

body.login.hospital-erp-login .hospital-login-meta .padding_sm {
    padding: 0;
    width: auto;
    float: none;
    margin: 4px;
}

body.login.hospital-erp-login .hospital-login-meta label {
    font-weight: 500;
    font-size: 13px;
    color: var(--erp-muted);
    margin: 0 0 0 4px;
}

body.login.hospital-erp-login .hospital-login-meta a {
    font-size: 13px !important;
    font-weight: 600;
    color: var(--erp-blue) !important;
    text-decoration: none;
}

body.login.hospital-erp-login .hospital-login-meta a:hover {
    text-decoration: underline;
}

body.login.hospital-erp-login .signin_btn {
    height: 42px !important;
    min-height: 42px;
    -webkit-flex-shrink: 0;
    flex-shrink: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #4a8fc4 0%, #337ab7 100%);
    box-shadow: 0 10px 24px rgba(51, 122, 183, 0.35);
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.04em;
    padding: 0 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    position: relative;
    overflow: hidden;
    -webkit-transition: -webkit-transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
    transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

body.login.hospital-erp-login .signin_btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 36%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    -webkit-transform: translate3d(-120%, 0, 0) skewX(-18deg);
    transform: translate3d(-120%, 0, 0) skewX(-18deg);
    -webkit-animation: hospital-btn-shine 3.6s ease-in-out infinite;
    animation: hospital-btn-shine 3.6s ease-in-out infinite;
}

@-webkit-keyframes hospital-btn-shine {
    0%, 55% { -webkit-transform: translate3d(-120%, 0, 0) skewX(-18deg); transform: translate3d(-120%, 0, 0) skewX(-18deg); }
    80%, 100% { -webkit-transform: translate3d(380%, 0, 0) skewX(-18deg); transform: translate3d(380%, 0, 0) skewX(-18deg); }
}
@keyframes hospital-btn-shine {
    0%, 55% { -webkit-transform: translate3d(-120%, 0, 0) skewX(-18deg); transform: translate3d(-120%, 0, 0) skewX(-18deg); }
    80%, 100% { -webkit-transform: translate3d(380%, 0, 0) skewX(-18deg); transform: translate3d(380%, 0, 0) skewX(-18deg); }
}

body.login.hospital-erp-login .signin_btn i {
    margin: 0 0 0 8px;
    font-size: 13px;
}

body.login.hospital-erp-login .signin_btn:hover,
body.login.hospital-erp-login .signin_btn:focus {
    color: #fff;
    background: linear-gradient(180deg, #337ab7 0%, #286090 100%);
    box-shadow: 0 14px 28px rgba(40, 96, 144, 0.4);
    -webkit-transform: translate3d(0, -1px, 0);
    transform: translate3d(0, -1px, 0);
}

body.login.hospital-erp-login .signin_btn:active {
    -webkit-transform: translate3d(0, 1px, 0);
    transform: translate3d(0, 1px, 0);
}

.hospital-login-wow {
    margin-top: auto;
    padding-top: 8px;
    width: 100%;
    -webkit-flex-shrink: 1;
    flex-shrink: 1;
    min-height: 0;
    overflow: hidden;
}

.hospital-wow-status {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    margin-bottom: 4px;
}

.hospital-wow-dot {
    width: 8px;
    height: 8px;
    margin-right: 8px;
    border-radius: 50%;
    background: #2ecc71;
    box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.5);
    -webkit-animation: hospital-wow-live 1.8s ease-out infinite;
    animation: hospital-wow-live 1.8s ease-out infinite;
}

@-webkit-keyframes hospital-wow-live {
    0% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; }
    70% { -webkit-transform: scale(1.7); transform: scale(1.7); opacity: 0.15; }
    100% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; }
}
@keyframes hospital-wow-live {
    0% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; }
    70% { -webkit-transform: scale(1.7); transform: scale(1.7); opacity: 0.15; }
    100% { -webkit-transform: scale(1); transform: scale(1); opacity: 1; }
}

.hospital-wow-status-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #337ab7;
}

.hospital-wow-orbs {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-align: center;
    -webkit-align-items: center;
    align-items: center;
    -webkit-box-pack: center;
    -webkit-justify-content: center;
    justify-content: center;
    margin: 4px 0 8px;
}

.hospital-wow-orb {
    width: 34px;
    height: 34px;
    margin: 0 6px;
    border-radius: 50%;
    background: #e8f1f8;
    color: #337ab7;
    font-size: 14px;
    line-height: 34px;
    text-align: center;
    -webkit-animation: hospital-wow-orb 2s ease-in-out infinite;
    animation: hospital-wow-orb 2s ease-in-out infinite;
}

.hospital-wow-orb i {
    margin: 0;
}

.hospital-wow-orb.o2 {
    width: 40px;
    height: 40px;
    line-height: 40px;
    background: #337ab7;
    color: #fff;
    font-size: 16px;
    -webkit-animation-delay: 0.25s;
    animation-delay: 0.25s;
}

.hospital-wow-orb.o3 {
    -webkit-animation-delay: 0.5s;
    animation-delay: 0.5s;
}

@-webkit-keyframes hospital-wow-orb {
    0%, 100% { -webkit-transform: translate3d(0, 0, 0) scale(1); transform: translate3d(0, 0, 0) scale(1); }
    50% { -webkit-transform: translate3d(0, -5px, 0) scale(1.08); transform: translate3d(0, -5px, 0) scale(1.08); }
}
@keyframes hospital-wow-orb {
    0%, 100% { -webkit-transform: translate3d(0, 0, 0) scale(1); transform: translate3d(0, 0, 0) scale(1); }
    50% { -webkit-transform: translate3d(0, -5px, 0) scale(1.08); transform: translate3d(0, -5px, 0) scale(1.08); }
}

body.hospital-anim-on .hospital-wow-stats .hospital-wow-stat {
    -webkit-animation: hospital-ward-in 0.5s ease;
    animation: hospital-ward-in 0.5s ease;
}

body.hospital-anim-on .hospital-wow-stats .hospital-wow-stat:nth-child(1) { -webkit-animation-delay: 0.2s; animation-delay: 0.2s; }
body.hospital-anim-on .hospital-wow-stats .hospital-wow-stat:nth-child(2) { -webkit-animation-delay: 0.35s; animation-delay: 0.35s; }
body.hospital-anim-on .hospital-wow-stats .hospital-wow-stat:nth-child(3) { -webkit-animation-delay: 0.5s; animation-delay: 0.5s; }

.hospital-wow-stats {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-pack: justify;
    -webkit-justify-content: space-between;
    justify-content: space-between;
    margin: 0 -4px;
}

.hospital-wow-stat {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 0;
    flex: 1 1 0;
    margin: 0 4px;
    padding: 6px 4px 6px;
    text-align: center;
    background: #f4f8fb;
    border: 1px solid #c5d9ea;
    border-radius: 12px;
    min-width: 0;
}

.hospital-wow-stat i {
    display: block;
    font-size: 16px;
    color: #337ab7;
    margin-bottom: 4px;
    -webkit-animation: hospital-wow-icon 2.4s ease-in-out infinite;
    animation: hospital-wow-icon 2.4s ease-in-out infinite;
}

@-webkit-keyframes hospital-wow-icon {
    0%, 100% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.12); transform: scale(1.12); }
}
@keyframes hospital-wow-icon {
    0%, 100% { -webkit-transform: scale(1); transform: scale(1); }
    50% { -webkit-transform: scale(1.12); transform: scale(1.12); }
}

.hospital-wow-stat b {
    display: block;
    font-size: 12px;
    font-weight: 700;
    color: #1e4a6e;
    letter-spacing: 0.02em;
}

.hospital-wow-stat span {
    display: block;
    font-size: 10px;
    font-weight: 500;
    color: #5b7d99;
    line-height: 1.3;
    margin-top: 2px;
}

.hospital-login-footer {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: var(--login-card-max);
    margin: clamp(6px, 1vh, 12px) auto 0;
    padding: 0 8px;
    text-align: center;
    color: #286090;
    font-size: clamp(11px, 1.2vw, 12px);
    font-weight: 500;
    float: none;
    clear: both;
    word-wrap: break-word;
}

.hospital-login-footer b {
    font-weight: 500;
    border-right: 0 !important;
    padding: 0 6px !important;
}

.hospital-login-confidential {
    display: block;
    margin-top: 6px;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #6b8aa3;
}

@media print {
    .hospital-login-bg,
    .hospital-orb,
    .hospital-scan,
    .hospital-bg-wash,
    .hospital-bg-dot,
    .hospital-bg-plus {
        display: none !important;
    }

    body.login.hospital-erp-login .codfox_login_wrapper,
    body.login.hospital-erp-login .codfox_login_wrapper::after,
    .hospital-ecg-line,
    .hospital-bg-ecg-line,
    .signin_btn::after {
        -webkit-animation: none !important;
        animation: none !important;
    }
}

/* JS / short-viewport stack — same as tablet, any width */
body.login.hospital-erp-login .codfox_login_wrapper.is-stacked {
    display: -webkit-box;
    display: -webkit-flex;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    width: 100%;
    overflow: hidden;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: auto;
    border-radius: 20px;
}

body.login.hospital-erp-login .codfox_login_wrapper.is-stacked > .col-md-7 {
    width: 100%;
    max-width: 100%;
    height: auto;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
}

body.login.hospital-erp-login .codfox_login_wrapper.is-stacked > form {
    width: 100%;
    max-width: 100%;
    height: auto;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0;
}

body.login.hospital-erp-login .codfox_login_wrapper.is-stacked > form {
    display: block;
}

body.login.hospital-erp-login .codfox_login_wrapper.is-stacked > form > .col-md-5 {
    display: block;
    height: auto;
}

body.login.hospital-erp-login .codfox_login_wrapper.is-stacked .hospital-scan,
body.login.hospital-erp-login .codfox_login_wrapper.is-stacked .hospital-orb-c,
body.login.hospital-erp-login .codfox_login_wrapper.is-stacked .login_img,
body.login.hospital-erp-login .codfox_login_wrapper.is-stacked .hospital-login-ecg,
body.login.hospital-erp-login .codfox_login_wrapper.is-stacked .hospital-login-wards,
body.login.hospital-erp-login .codfox_login_wrapper.is-stacked .hospital-login-wow {
    display: none !important;
}

body.login.hospital-erp-login .codfox_login_wrapper.is-stacked .login_left_box,
body.login.hospital-erp-login .codfox_login_wrapper.is-stacked .login_right_box {
    height: auto;
    min-height: 0;
}

/* Large / ultrawide monitors */
@media only screen and (min-width: 1400px) {
    body.login.hospital-erp-login {
        --login-card-w: min(1100px, 90vw);
        --login-card-h: min(680px, calc(100vh - 84px));
        --login-card-h: min(680px, calc(100dvh - 84px));
    }
}

/* Laptop / small desktop */
@media only screen and (max-width: 1199px) {
    body.login.hospital-erp-login {
        --login-card-w: min(920px, 94vw);
        --login-card-h: min(580px, calc(100vh - 72px));
        --login-card-h: min(580px, calc(100dvh - 72px));
        --login-pad-x: clamp(14px, 2vw, 24px);
        --login-pad-y: clamp(14px, 2.4vh, 24px);
    }

    .hospital-scene {
        max-width: min(360px, 92%);
    }

    .hospital-logo-halo {
        width: 200px;
        height: 200px;
    }
}

/* Tablet landscape / compact 2-col */
@media only screen and (max-width: 1024px) {
    body.login.hospital-erp-login {
        --login-card-w: min(880px, 96vw);
        --login-card-h: min(540px, calc(100vh - 68px));
        --login-card-h: min(540px, calc(100dvh - 68px));
        --login-hero-title: clamp(18px, 2vw + 8px, 24px);
    }

    body.login.hospital-erp-login .login_left_box,
    body.login.hospital-erp-login .login_right_box {
        min-height: 0;
    }

    body.login.hospital-erp-login .login_form_box .form-control {
        height: 46px !important;
    }

    body.login.hospital-erp-login .signin_btn {
        height: 48px !important;
    }

    .hospital-login-wards span {
        padding: 5px 9px;
        font-size: 9px;
    }

    .hospital-cross-badge {
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
}

/* Tablet portrait / narrow — stack */
@media only screen and (max-width: 991px) {
    body.login.hospital-erp-login {
        --login-card-w: min(440px, 100%);
        --login-card-h: auto;
    }

    body.login.hospital-erp-login .codfox_login_wrapper {
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        width: 100%;
        max-width: 440px;
        max-width: min(440px, 100%);
        height: auto;
        aspect-ratio: auto;
        max-height: none;
        overflow: hidden;
        border-radius: 20px;
    }

    body.login.hospital-erp-login .codfox_login_wrapper > .col-md-7 {
        width: 100%;
        max-width: 100%;
        flex: 0 0 auto;
    }

    body.login.hospital-erp-login .codfox_login_wrapper > form {
        width: 100%;
        max-width: 100%;
        flex: 1 1 auto;
        min-height: 0;
    }

    body.login.hospital-erp-login .codfox_login_wrapper > form {
        display: block;
    }

    body.login.hospital-erp-login .codfox_login_wrapper > form > .col-md-5 {
        display: block;
    }

    .hospital-wow-orb {
        width: 38px;
        height: 38px;
        line-height: 38px;
        margin: 0 6px;
        font-size: 14px;
    }

    .hospital-wow-orb.o2 {
        width: 44px;
        height: 44px;
        line-height: 44px;
    }

    .hospital-wow-stat {
        padding: 8px 4px 7px;
    }

    .hospital-wow-stat span {
        font-size: 9px;
    }

    body.login.hospital-erp-login .login_left_box {
        min-height: 0;
        padding: clamp(20px, 3vh, 28px) clamp(18px, 4vw, 24px) clamp(16px, 2vh, 20px);
    }

    .hospital-scan,
    .hospital-orb-c,
    body.login.hospital-erp-login .login_img,
    .hospital-login-ecg,
    .hospital-login-wards,
    .hospital-login-wow {
        display: none !important;
    }

    body.login.hospital-erp-login .hospital-login-hero-copy h1 {
        margin-top: 12px;
    }

    body.login.hospital-erp-login .hospital-login-hero-copy p {
        max-width: 100%;
        font-size: 13px;
    }

    body.login.hospital-erp-login .login_right_box {
        min-height: 0;
        align-items: flex-start;
    }

    body.login.hospital-erp-login .login_form_box {
        margin-top: 0;
        padding: 12px 18px 16px;
        height: auto;
        min-height: 0;
    }

    body.login.hospital-erp-login .login_left_box {
        padding: 16px 18px 12px;
    }

    .hospital-login-wards {
        margin-top: 8px;
    }

    .hospital-logo-halo {
        width: 200px;
        height: 200px;
    }
}

/* Phones */
@media only screen and (max-width: 576px) {
    body.login.hospital-erp-login .login_main_container {
        padding: 10px 10px 16px;
        justify-content: flex-start;
        padding-top: max(12px, env(safe-area-inset-top, 12px));
        padding-bottom: max(16px, env(safe-area-inset-bottom, 16px));
        padding-left: max(10px, env(safe-area-inset-left, 10px));
        padding-right: max(10px, env(safe-area-inset-right, 10px));
    }

    body.login.hospital-erp-login .codfox_login_wrapper {
        max-width: 100%;
        width: 100%;
        height: auto;
        aspect-ratio: auto;
        max-height: none;
        border-radius: 16px;
    }

    body.login.hospital-erp-login .hospital-login-alerts {
        width: calc(100% - 20px);
        top: 8px;
    }

    body.login.hospital-erp-login .hospital-login-alerts .message {
        padding: 10px 12px;
        font-size: 13px;
        border-radius: 10px;
    }

    .hospital-login-kicker {
        font-size: 9px;
        padding: 6px 10px;
        letter-spacing: 0.1em;
    }

    .hospital-login-wards {
        gap: 6px;
    }

    .hospital-login-wards span {
        padding: 5px 8px;
        font-size: 9px;
    }

    .hospital-wow-status-text {
        font-size: 10px;
    }

    .hospital-wow-orb {
        width: 36px;
        height: 36px;
        line-height: 36px;
        margin: 0 5px;
        font-size: 14px;
    }

    .hospital-wow-orb.o2 {
        width: 40px;
        height: 40px;
        line-height: 40px;
    }

    .hospital-wow-stat span {
        display: none;
    }

    body.login.hospital-erp-login .login_form_box .form-control {
        height: 46px !important;
        border-radius: 12px;
        font-size: 16px; /* avoid iOS zoom */
    }

    body.login.hospital-erp-login .signin_btn {
        height: 48px !important;
        border-radius: 12px;
    }

    body.login.hospital-erp-login .codfox_login_logo img {
        max-height: clamp(88px, 14vh, 130px);
        max-width: min(86%, 260px) !important;
    }

    .hospital-login-footer {
        margin-top: 12px;
    }

    .hospital-login-footer b {
        display: inline-block;
        padding: 2px 4px !important;
    }

    .hospital-bg-plus,
    .hospital-login-bg::after {
        display: none;
    }
}

/* Very small phones */
@media only screen and (max-width: 380px) {
    body.login.hospital-erp-login .hospital-login-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .hospital-login-wards span:nth-child(n + 5) {
        display: none;
    }
}

/* Short viewports (laptop lids, landscape phones, short tablets) */
@media only screen and (max-height: 760px) and (min-width: 992px) {
    body.login.hospital-erp-login .login_main_container {
        padding-top: 12px;
        padding-bottom: 12px;
    }

    body.login.hospital-erp-login .login_left_box,
    body.login.hospital-erp-login .login_right_box {
        min-height: 0;
    }

    body.login.hospital-erp-login .login_left_box {
        padding: 18px 22px 14px;
    }

    body.login.hospital-erp-login .login_form_box {
        padding: 22px 28px;
    }

    body.login.hospital-erp-login .login_img {
        padding: 4px 0;
    }

    .hospital-scene {
        max-width: min(280px, 80%);
    }

    .hospital-login-ecg {
        height: 28px;
    }

    body.login.hospital-erp-login .codfox_login_logo {
        margin-bottom: 8px !important;
        padding-top: 2px;
    }

    body.login.hospital-erp-login .codfox_login_logo img {
        max-height: 96px;
    }

    .hospital-logo-halo {
        width: 180px;
        height: 180px;
    }

    .hospital-login-form-title {
        margin-bottom: 12px;
    }

    body.login.hospital-erp-login .login_form_box .form-control {
        height: 42px !important;
    }

    body.login.hospital-erp-login .signin_btn {
        height: 44px !important;
    }

    body.login.hospital-erp-login .hospital-login-meta {
        margin-bottom: 12px;
    }
}

@media only screen and (max-height: 760px) {
    .hospital-wow-stats {
        display: none !important;
    }

    .hospital-wow-status-text {
        font-size: 10px;
    }

    .hospital-wow-orb {
        width: 28px;
        height: 28px;
        line-height: 28px;
        margin: 0 5px;
        font-size: 12px;
    }

    .hospital-wow-orb.o2 {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 13px;
    }

    .hospital-login-wow {
        padding-top: 4px;
    }
}

@media only screen and (max-height: 640px) {
    body.login.hospital-erp-login .login_main_container {
        justify-content: flex-start;
        min-height: auto;
        height: auto !important;
        padding-top: 8px;
    }

    body.login.hospital-erp-login .login_img {
        min-height: 120px;
        padding: 2px 0;
    }

    .hospital-scene {
        max-width: min(240px, 78%);
        min-height: 100px;
    }

    .hospital-scene-svg {
        min-height: 100px;
        max-height: 22vh;
    }

    .hospital-scan,
    .hospital-orb {
        display: none;
    }

    body.login.hospital-erp-login .login_left_box {
        padding: 16px 20px 14px;
    }

    body.login.hospital-erp-login .hospital-login-hero-copy h1 {
        font-size: clamp(18px, 4vh, 24px);
        margin: 8px 0 6px;
    }

    body.login.hospital-erp-login .hospital-login-hero-copy p {
        font-size: 12px;
        line-height: 1.4;
    }

    body.login.hospital-erp-login .login_form_box {
        padding: 16px 20px 20px;
    }

    body.login.hospital-erp-login .codfox_login_logo img {
        max-height: 80px;
    }

    .hospital-logo-halo {
        display: none;
    }
}

/* Landscape phones / very short + narrow */
@media only screen and (max-height: 480px) and (orientation: landscape) {
    body.login.hospital-erp-login .codfox_login_wrapper {
        flex-direction: row;
        width: min(640px, 96vw);
        max-width: min(640px, 96vw);
        height: 400px;
        height: min(400px, calc(100vh - 28px));
        height: min(400px, calc(100dvh - 28px));
        aspect-ratio: auto;
        max-height: 100vh;
        max-height: calc(100vh - 28px);
        max-height: calc(100dvh - 28px);
    }

    body.login.hospital-erp-login .codfox_login_wrapper > .col-md-7 {
        width: 42%;
        max-width: 42%;
        flex: 0 0 42%;
    }

    body.login.hospital-erp-login .codfox_login_wrapper > form {
        width: 58%;
        max-width: 58%;
        flex: 0 0 58%;
        display: flex;
    }

    body.login.hospital-erp-login .login_left_box {
        height: 100%;
        justify-content: center;
    }

    body.login.hospital-erp-login .hospital-login-hero-copy p,
    .hospital-login-wards,
    .hospital-login-ecg,
    .hospital-login-wow {
        display: none !important;
    }

    body.login.hospital-erp-login .login_img {
        min-height: 80px;
        display: -webkit-box;
        display: -webkit-flex;
        display: flex;
    }

    .hospital-scene {
        max-width: min(160px, 90%);
        min-height: 72px;
    }

    .hospital-scene-svg {
        min-height: 72px;
        max-height: 28vh;
    }
}

/* High-DPI / print safety */
@media print {
    .hospital-login-bg,
    .hospital-orb,
    .hospital-scan {
        display: none !important;
    }

    body.login.hospital-erp-login .codfox_login_wrapper {
        box-shadow: none;
        animation: none;
    }
}
