/* =========================================================
   OJAS LOGIN V31 — FRESH PRECISION REBUILD
   Based on latest approved mock-up.
   Primary target: 1440 x 900.
   ========================================================= */

:root{
    --navy:#08275f;
    --teal:#0b8f9c;
    --green:#13a66a;
    --blue:#1466bd;
    --purple:#6e4fde;
    --red:#e71938;
    --footer:#06295d;
    --muted:#5e6e88;
}

*{box-sizing:border-box}
html,body{width:100%;height:100%;margin:0}

body{
    overflow:hidden;
    font-family:"Segoe UI",Arial,sans-serif;
    color:var(--navy);
    background:#d8eaf6;
}

.ui-icon svg{
    display:block;
    width:100%;
    height:100%;
    fill:none;
    stroke:currentColor;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
}

.page{
    position:relative;
    width:100vw;
    height:100vh;
    min-width:1180px;
    min-height:740px;
    overflow:hidden;
    background:#d8eaf6;
}

/* FULL cinematic scene.
   Do not split into columns. */
.hero-photo{
    position:absolute;
    inset:0;
    z-index:0;
    width:100%;
    height:100%;
    object-fit:cover;
    object-position:center 57%;
    display:block;
    filter:saturate(1.02) contrast(1.03) brightness(1.015);
}

/* Left white readability zone. Keep centre/right untouched. */
.left-fade{
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    background:
        linear-gradient(
            90deg,
            rgba(255,255,255,.98) 0%,
            rgba(255,255,255,.97) 11%,
            rgba(255,255,255,.93) 17%,
            rgba(255,255,255,.77) 23%,
            rgba(255,255,255,.45) 28%,
            rgba(255,255,255,.18) 33%,
            rgba(255,255,255,.04) 38%,
            rgba(255,255,255,0) 44%
        );
}

/* ---------------- BRAND ---------------- */
.brand{
    position:absolute;
    z-index:4;
    left:3.1%;
    top:2.7%;
    display:flex;
    gap:20px;
    align-items:flex-start;
}

.brand-logo{
    width:96px;
    height:96px;
    flex:0 0 96px;
    object-fit:contain;
}

.brand-name{
    margin-top:2px;
    font-size:52px;
    line-height:.92;
    letter-spacing:6px;
    font-weight:800;
}

.brand-hospital{
    margin-top:10px;
    color:var(--teal);
    font-size:22px;
    font-weight:800;
}

.brand-system{
    margin-top:8px;
    color:#415574;
    font-size:14px;
}

.brand-values{
    margin-top:16px;
    color:#17335f;
    font-size:9px;
    font-weight:700;
    letter-spacing:4px;
}

.brand-values i{
    display:inline-block;
    width:5px;
    height:5px;
    margin:0 12px;
    border-radius:50%;
    background:#129da7;
    vertical-align:middle;
}

/* ---------------- TRUST ---------------- */
.trust-row{
    position:absolute;
    z-index:4;
    top:3.2%;
    right:4.4%;
    display:flex;
    align-items:center;
}

.trust-row article{
    min-width:180px;
    height:64px;
    display:flex;
    align-items:center;
    gap:12px;
    padding:0 20px;
    border-right:1px solid rgba(15,70,115,.28);
}

.trust-row article:last-child{border-right:0}

.trust-icon{
    width:44px;
    height:44px;
    flex:0 0 44px;
    color:#0c8395;
}

.trust-row strong{
    display:block;
    font-size:13px;
    color:#092b67;
}

.trust-row small{
    display:block;
    margin-top:5px;
    font-size:10px;
    color:#506886;
}

/* ---------------- HERO MESSAGE ---------------- */
.message{
    position:absolute;
    z-index:4;
    left:3.35%;
    top:24.8%;
    width:360px;
}

.message h1{
    margin:0;
    font-size:52px;
    line-height:1.05;
    letter-spacing:-1px;
    font-weight:800;
}

.message h1 span{color:var(--teal)}

.short-line{
    width:48px;
    height:3px;
    margin:18px 0 17px;
    background:#169ba4;
    border-radius:8px;
}

.message p{
    margin:0;
    color:#455d7c;
    font-size:18px;
    line-height:1.62;
}

/* ---------------- STATS ---------------- */
.stats{
    position:absolute;
    z-index:5;
    left:3.2%;
    bottom:25.4%;
    display:flex;
    gap:12px;
}

.stat{
    position:relative;
    width:135px;
    height:166px;
    padding:18px 12px 16px;
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    background:rgba(255,255,255,.97);
    border:1px solid rgba(255,255,255,.98);
    border-radius:14px;
    box-shadow:0 16px 34px rgba(8,38,76,.18);
}

.circle-icon{
    width:48px;
    height:48px;
    padding:11px;
    margin-bottom:10px;
    border-radius:50%;
    color:#fff;
}

.stat.teal .circle-icon{background:#087da0}
.stat.green .circle-icon{background:#18a561}
.stat.blue .circle-icon{background:#5c4bd8}
.stat.red .circle-icon{background:#ea1e37}

.stat strong{
    font-size:31px;
    line-height:1;
    color:var(--navy);
}

.stat>span:not(.circle-icon){
    margin-top:8px;
    color:#34496c;
    font-size:13px;
    line-height:1.25;
}

.stat>i{
    position:absolute;
    bottom:10px;
    width:28px;
    height:2px;
    border-radius:4px;
}

.stat.teal>i{background:#0b9b9c}
.stat.green>i{background:#23aa68}
.stat.blue>i{background:#7255dc}
.stat.red>i{background:#ed263c}

/* ---------------- SECURITY PANEL ---------------- */
.security-panel{
    position:absolute;
    z-index:5;
    left:3.2%;
    bottom:15.6%;
    width:51.2%;
    height:95px;
    display:grid;
    grid-template-columns:repeat(4,1fr);
    background:rgba(255,255,255,.975);
    border:1px solid rgba(255,255,255,.99);
    border-radius:15px;
    box-shadow:0 14px 30px rgba(8,38,76,.14);
}

.security-panel article{
    position:relative;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:11px;
    padding:12px 14px;
}

.security-panel article:not(:last-child)::after{
    content:"";
    position:absolute;
    right:0;
    top:18px;
    width:1px;
    height:58px;
    background:#d6e1ec;
}

.security-icon{
    width:35px;
    height:35px;
    flex:0 0 35px;
    color:#1269c7;
}

.security-panel strong{
    display:block;
    font-size:11px;
    color:#103b76;
}

.security-panel small{
    display:block;
    margin-top:4px;
    font-size:8.6px;
    line-height:1.35;
    color:#69788b;
}

/* ---------------- LOGIN CARD ---------------- */
.login-card{
    position:absolute;
    z-index:6;
    top:11.5%;
    right:3.0%;
    width:35.9%;
    height:73.5%;
    min-width:470px;
    padding:101px 36px 24px;
    background:rgba(255,255,255,.988);
    border:1px solid rgba(255,255,255,.99);
    border-radius:28px;
    box-shadow:0 25px 60px rgba(5,31,70,.22);
}

.login-logo{
    position:absolute;
    top:24px;
    left:50%;
    transform:translateX(-50%);
    width:82px;
    height:82px;
    display:flex;
    align-items:center;
    justify-content:center;
    background:#fff;
    border-radius:50%;
    box-shadow:0 10px 24px rgba(17,54,96,.12);
}

.login-logo img{
    width:72px;
    height:72px;
    object-fit:contain;
}

.login-card h2{
    margin:29px 0 5px;
    text-align:center;
    font-size:34px;
    font-weight:800;
}

.login-card h2 span{color:var(--teal)}

.login-subtitle{
    margin:0;
    text-align:center;
    color:#536985;
    font-size:13px;
}

.login-accent{
    width:54px;
    height:2px;
    margin:15px auto 18px;
    background:#159aa2;
}

.login-card form{
    width:100%;
    max-width:500px;
    margin:0 auto;
}

.login-card label{
    display:block;
    margin:10px 0 6px;
    font-size:12px;
    font-weight:700;
}

.field{
    height:51px;
    display:flex;
    align-items:center;
    overflow:hidden;
    border:1px solid #c9d7e6;
    border-radius:9px;
    background:#fff;
}

.field:focus-within{
    border-color:#1198a0;
    box-shadow:0 0 0 3px rgba(17,152,160,.1);
}

.field-icon{
    width:48px;
    height:100%;
    flex:0 0 48px;
    padding:13px;
    color:#113d79;
}

.field input,
.field select{
    flex:1;
    min-width:0;
    height:100%;
    padding:0 10px;
    border:0;
    outline:0;
    background:transparent;
    color:#263c60;
    font:inherit;
    font-size:13px;
}

.eye{
    width:48px;
    height:100%;
    border:0;
    background:transparent;
    padding:12px;
    color:#113d79;
    cursor:pointer;
}

.eye .ui-icon{width:22px;height:22px}

.options{
    margin:13px 0 14px;
    display:flex;
    align-items:center;
    justify-content:space-between;
}

.remember{
    display:flex!important;
    align-items:center;
    gap:7px;
    margin:0!important;
    font-weight:500!important;
}

.remember input{accent-color:#0a8793}

.options a{
    color:#078b97;
    text-decoration:none;
    font-size:11px;
}

.signin{
    width:100%;
    height:52px;
    display:grid;
    grid-template-columns:22px 1fr 22px;
    align-items:center;
    gap:8px;
    padding:0 19px;
    border:0;
    border-radius:9px;
    color:#fff;
    background:linear-gradient(90deg,#0a438e,#0e63aa 46%,#0ba5a3);
    box-shadow:0 10px 22px rgba(8,77,144,.2);
    font-size:16px;
    font-weight:800;
    letter-spacing:.5px;
    cursor:pointer;
}

.signin .ui-icon{width:21px;height:21px}

.or{
    margin:14px 0 11px;
    display:flex;
    align-items:center;
    gap:12px;
}

.or span{
    flex:1;
    height:1px;
    background:#dbe4ed;
}

.or b{
    font-size:10px;
    color:#465b79;
}

.biometric{
    min-width:285px;
    height:44px;
    margin:0 auto;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    border:1px solid #c8d8e7;
    border-radius:9px;
    background:#fff;
    color:#11386f;
    font-size:13px;
    cursor:pointer;
}

.biometric .ui-icon{
    width:24px;
    height:24px;
    color:#0d9da9;
}

.secure-login{
    width:100%;
    max-width:355px;
    margin:17px auto 0;
    display:flex;
    align-items:center;
    gap:12px;
}

.secure-login>.ui-icon{
    width:36px;
    height:36px;
    flex:0 0 36px;
    color:#123f7e;
}

.secure-login strong{
    display:block;
    font-size:11px;
}

.secure-login small{
    display:block;
    margin-top:4px;
    color:#64748a;
    font-size:9px;
}

.status{
    margin-top:14px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:9px;
    color:#16813f;
    font-size:11px;
}

.status i{
    width:10px;
    height:10px;
    border-radius:50%;
    background:#35b84a;
    box-shadow:0 0 0 4px rgba(53,184,74,.13);
}

/* ---------------- FOOTER ---------------- */
.footer{
    position:absolute;
    z-index:8;
    left:0;
    right:0;
    bottom:0;
    height:13.2%;
    min-height:112px;
    display:grid;
    grid-template-columns:1fr 1fr .95fr 1.35fr 1fr 1.4fr;
    align-items:center;
    padding:0 34px 28px;
    color:#fff;
    background:linear-gradient(90deg,#052758 0%,#063365 50%,#042650 100%);
    box-shadow:0 -5px 18px rgba(2,26,58,.16);
}

.footer article{
    position:relative;
    height:70px;
    padding:0 16px;
    display:flex;
    align-items:center;
    gap:12px;
}

.footer article:not(:last-of-type)::after{
    content:"";
    position:absolute;
    right:0;
    top:7px;
    width:1px;
    height:56px;
    background:rgba(255,255,255,.22);
}

.footer-logo{
    width:50px;
    height:50px;
    flex:0 0 50px;
    object-fit:contain;
    background:#fff;
    border-radius:8px;
}

.footer-logo.round{border-radius:50%}

.footer-icon{
    width:42px;
    height:42px;
    flex:0 0 42px;
    color:#fff;
}

.footer article:nth-child(3) .footer-icon{color:#dceeff}
.footer article:nth-child(4) .footer-icon{color:#e9f4ff}

.footer strong{
    display:block;
    font-size:12px;
    line-height:1.22;
}

.footer small{
    display:block;
    margin-top:4px;
    color:#edf5ff;
    font-size:8.5px;
    line-height:1.35;
}

.atlandis-mark{
    width:49px;
    height:49px;
    flex:0 0 49px;
    display:flex;
    align-items:center;
    justify-content:center;
    font-size:34px;
    font-weight:800;
    font-style:italic;
    color:#8fe9ee;
    transform:skewX(-10deg);
}

.atlandis strong{color:#9ceef2}

.copyright{
    position:absolute;
    left:34px;
    right:34px;
    bottom:9px;
    padding-top:8px;
    text-align:center;
    border-top:1px solid rgba(255,255,255,.17);
    color:#f0f6ff;
    font-size:10px;
}

/* =========================================================
   PRIMARY 1440 x 900 TUNING
   ========================================================= */
@media (max-width:1460px) and (min-width:1200px){

    .brand{
        left:31px;
        top:18px;
        gap:14px;
    }

    .brand-logo{
        width:72px;
        height:72px;
        flex-basis:72px;
    }

    .brand-name{font-size:40px}
    .brand-hospital{margin-top:7px;font-size:18px}
    .brand-system{margin-top:5px;font-size:10.6px}
    .brand-values{margin-top:9px;font-size:7.2px;letter-spacing:3px}

    .trust-row{
        top:13px;
        right:21px;
    }

    .trust-row article{
        min-width:145px;
        height:56px;
        gap:9px;
        padding:0 12px;
    }

    .trust-icon{
        width:33px;
        height:33px;
        flex-basis:33px;
    }

    .trust-row strong{font-size:9.8px}
    .trust-row small{font-size:7.6px}

    .message{
        left:31px;
        top:268px;
        width:310px;
    }

    .message h1{font-size:39px}
    .message p{font-size:12.5px;line-height:1.55}
    .short-line{margin:14px 0}

    .stats{
        left:30px;
        bottom:188px;
        gap:10px;
    }

    .stat{
        width:122px;
        height:144px;
        padding:13px 9px 12px;
        border-radius:14px;
    }

    .circle-icon{
        width:40px;
        height:40px;
        padding:9px;
        margin-bottom:7px;
    }

    .stat strong{font-size:25px}
    .stat>span:not(.circle-icon){margin-top:5px;font-size:9.6px}
    .stat>i{bottom:7px;width:24px}

    .security-panel{
        left:30px;
        bottom:99px;
        width:56%;
        height:80px;
        border-radius:15px;
    }

    .security-panel article{
        gap:8px;
        padding:9px;
    }

    .security-icon{
        width:28px;
        height:28px;
        flex-basis:28px;
    }

    .security-panel strong{font-size:8.8px}
    .security-panel small{font-size:6.8px}

    .login-card{
        top:80px;
        right:40px;
        width:34%;
        height:auto;
        bottom:102px;
        min-width:0;
        padding:70px 26px 14px;
        border-radius:24px;
    }

    .login-logo{
        top:13px;
        width:60px;
        height:60px;
    }

    .login-logo img{
        width:52px;
        height:52px;
    }

    .login-card h2{
        margin:36px 0 3px;
        font-size:26px;
    }

    .login-subtitle{font-size:10px}
    .login-accent{margin:8px auto 10px}

    .login-card label{
        margin:6px 0 4px;
        font-size:10px;
    }

    .field{height:40px}
    .field-icon{width:41px;flex-basis:41px;padding:10px}
    .field input,.field select{font-size:11px}
    .eye{width:41px;padding:9px}

    .options{margin:8px 0 9px}
    .remember{font-size:9.3px!important}
    .options a{font-size:9px}

    .signin{
        height:42px;
        font-size:14.5px;
    }

    .or{margin:7px 0}

    .biometric{
        min-width:240px;
        height:35px;
        font-size:11px;
    }

    .secure-login{
        max-width:310px;
        margin-top:9px;
    }

    .secure-login>.ui-icon{
        width:29px;
        height:29px;
        flex-basis:29px;
    }

    .secure-login strong{font-size:9.5px}
    .secure-login small{font-size:7.5px}
    .status{margin-top:7px;font-size:8.8px}

    .footer{
        height:82px;
        min-height:82px;
        padding:0 22px 18px;
    }

    .footer article{
        height:56px;
        padding:0 10px;
        gap:8px;
    }

    .footer-logo{
        width:39px;
        height:39px;
        flex-basis:39px;
    }

    .footer-icon{
        width:31px;
        height:31px;
        flex-basis:31px;
    }

    .footer strong{font-size:9.4px}
    .footer small{font-size:6.6px}
    .atlandis-mark{width:38px;height:38px;flex-basis:38px;font-size:28px}

    .copyright{
        left:22px;
        right:22px;
        bottom:5px;
        padding-top:4px;
        font-size:7.7px;
    }
}

/* 1366x768 */
@media (max-height:819px) and (min-width:1100px){
    .hero-photo{object-position:center 57%}

    .brand{left:26px;top:12px}
    .brand-logo{width:62px;height:62px;flex-basis:62px}
    .brand-name{font-size:35px}
    .brand-hospital{font-size:15.5px}
    .brand-system{font-size:9px}
    .brand-values{font-size:6.5px}

    .trust-row{top:7px;right:14px}
    .trust-row article{min-width:120px;height:46px;padding:0 7px;gap:7px}
    .trust-icon{width:25px;height:25px;flex-basis:25px}
    .trust-row strong{font-size:8.3px}
    .trust-row small{font-size:6.3px}

    .message{left:28px;top:174px}
    .message h1{font-size:35px}
    .message p{font-size:11px}

    .stats{left:28px;bottom:121px;gap:8px}
    .stat{width:108px;height:108px;padding:8px 7px 10px}
    .circle-icon{width:32px;height:32px;padding:7px;margin-bottom:4px}
    .stat strong{font-size:20px}
    .stat>span:not(.circle-icon){font-size:7.8px}
    .stat>i{bottom:5px;width:20px}

    .security-panel{left:28px;bottom:42px;width:55%;height:72px}
    .security-panel article{gap:6px;padding:7px}
    .security-icon{width:23px;height:23px;flex-basis:23px}
    .security-panel strong{font-size:7.5px}
    .security-panel small{font-size:5.9px}

    .login-card{top:74px;right:26px;bottom:84px;width:34%;padding:48px 22px 8px}
    .login-logo{top:7px;width:52px;height:52px}
    .login-logo img{width:46px;height:46px}
    .login-card h2{margin:20px 0 2px;font-size:22px}
    .login-subtitle{font-size:9px}
    .login-accent{margin:6px auto 7px}

    .login-card label{margin:3px 0 2px;font-size:8.8px}
    .field{height:34px}
    .field-icon{width:37px;flex-basis:37px;padding:9px}
    .field input,.field select{font-size:10px}
    .eye{width:37px;padding:8px}

    .options{margin:5px 0 6px}
    .remember{font-size:8.3px!important}
    .options a{font-size:8px}
    .signin{height:37px;font-size:13px}
    .or{margin:5px 0}
    .biometric{min-width:218px;height:31px;font-size:9.8px}
    .secure-login{max-width:290px;margin-top:6px}
    .secure-login>.ui-icon{width:25px;height:25px;flex-basis:25px}
    .secure-login strong{font-size:8.5px}
    .secure-login small{font-size:6.7px}
    .status{margin-top:5px;font-size:7.8px}

    .footer{height:68px;min-height:68px;padding:0 16px 14px}
    .footer article{height:48px;padding:0 7px;gap:6px}
    .footer-logo{width:34px;height:34px;flex-basis:34px}
    .footer-icon{width:26px;height:26px;flex-basis:26px}
    .footer strong{font-size:8.3px}
    .footer small{font-size:5.8px}
    .atlandis-mark{width:32px;height:32px;flex-basis:32px;font-size:23px}
    .copyright{left:16px;right:16px;bottom:3px;font-size:6.8px}
}

@media (max-width:1099px){
    body{overflow:auto}
    .page{min-width:0;height:auto;min-height:100vh}
    .hero-photo{position:fixed}
    .trust-row,.stats,.security-panel,.footer{display:none}
    .login-card{
        position:relative;
        top:auto;right:auto;bottom:auto;
        width:calc(100% - 36px);
        max-width:540px;
        min-width:0;
        height:auto;
        margin:90px auto 120px;
    }
}
