/* =========================
   RESET
========================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:'Segoe UI',Arial,sans-serif;
}

html,
body{
    width:100%;
    min-height:100%;
}

body{
    min-height:100vh;
    overflow:hidden;
    background:#051a38;
}


/* =========================
   MAIN BACKGROUND
   ACTUAL FILE: logo5.jpg
========================= */

.login-page{
    position:relative;

    width:100vw;
    height:100vh;
    min-height:650px;

    overflow:hidden;

    background-image:
        linear-gradient(
            180deg,
            rgba(3,18,42,.15),
            rgba(3,18,42,.25)
        ),
        url('logo5.jpg');

    background-size:cover;
    background-position:center center;
    background-repeat:no-repeat;
}


/* =========================
   DARK OVERLAY
========================= */

.background-overlay{
    position:absolute;
    inset:0;

    z-index:1;

    background:
        linear-gradient(
            180deg,
            rgba(4,21,48,.10) 0%,
            rgba(4,22,50,.18) 38%,
            rgba(3,20,45,.82) 100%
        );
}


/* =========================
   GOLD BACKGROUND LINES
========================= */

.gold-line{
    position:absolute;
    z-index:4;
    pointer-events:none;
}


/* TOP LEFT */

.gold-line-top{
    top:-70px;
    left:-85px;

    width:420px;
    height:250px;

    border:9px solid #f7b92d;

    border-right-color:transparent;
    border-bottom-color:transparent;

    border-radius:50%;

    transform:rotate(-15deg);
}

.gold-line-top::after{
    content:'';

    position:absolute;

    top:19px;
    left:18px;

    width:395px;
    height:225px;

    border:3px solid rgba(255,214,104,.95);

    border-right-color:transparent;
    border-bottom-color:transparent;

    border-radius:50%;
}


/* BOTTOM RIGHT */

.gold-line-bottom{
    right:-120px;
    bottom:-145px;

    width:470px;
    height:300px;

    border:10px solid #f7b92d;

    border-left-color:transparent;
    border-top-color:transparent;

    border-radius:50%;

    transform:rotate(-12deg);
}

.gold-line-bottom::after{
    content:'';

    position:absolute;

    right:17px;
    bottom:19px;

    width:440px;
    height:270px;

    border:3px solid rgba(255,214,104,.95);

    border-left-color:transparent;
    border-top-color:transparent;

    border-radius:50%;
}


/* =========================
   MAIN LAYOUT
========================= */

.login-layout{
    position:relative;
    z-index:5;

    width:min(1180px,92vw);
    height:100%;

    margin:0 auto;

    display:grid;

    grid-template-columns:
        58% 42%;

    align-items:center;
}


/* =========================
   LEFT SECTION
========================= */

.brand-section{
    height:100%;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:
        40px
        35px
        40px
        10px;
}


/* =========================
   LOGO
========================= */

.logo-wrap{
    position:relative;

    width:min(520px,43vw);

    aspect-ratio:1 / 1;

    display:flex;

    align-items:center;
    justify-content:center;
}

.main-logo{
    display:block;

    width:100%;

    max-width:500px;
    max-height:500px;

    object-fit:contain;

    filter:
        drop-shadow(
            0 13px 18px
            rgba(0,0,0,.36)
        )
        drop-shadow(
            0 2px 2px
            rgba(0,0,0,.18)
        );
}


/* =========================
   RIGHT SECTION
========================= */

.form-section{
    height:100%;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:
        40px
        10px
        40px
        25px;
}


/* =========================
   LOGIN CARD
========================= */

.login-card{
    position:relative;

    width:min(390px,100%);
    min-height:510px;

    padding:
        38px
        34px
        34px;

    overflow:hidden;

    border:
        1px solid
        rgba(255,255,255,.66);

    border-radius:25px;

    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.98),
            rgba(246,247,249,.98)
        );

    box-shadow:
        0 20px 45px
        rgba(1,15,39,.33),
        inset 0 0 0 1px
        rgba(255,255,255,.76);

    text-align:center;
}


/* =========================
   LOGIN CARD GOLD
   TOP RIGHT
========================= */

.card-gold-corner{
    position:absolute;

    top:-70px;
    right:-100px;

    width:235px;
    height:165px;

    border:9px solid #e6a31b;

    border-left-color:transparent;
    border-bottom-color:transparent;

    border-radius:50%;

    transform:rotate(17deg);
}

.card-gold-corner::after{
    content:'';

    position:absolute;

    top:12px;
    right:13px;

    width:205px;
    height:142px;

    border:3px solid #f8c13c;

    border-left-color:transparent;
    border-bottom-color:transparent;

    border-radius:50%;
}


/* =========================
   LOGIN CARD GOLD
   BOTTOM RIGHT
========================= */

.card-gold-corner-bottom{
    position:absolute;

    right:-96px;
    bottom:-71px;

    width:240px;
    height:160px;

    border:10px solid #e6a31b;

    border-left-color:transparent;
    border-top-color:transparent;

    border-radius:50%;

    transform:rotate(-17deg);
}

.card-gold-corner-bottom::after{
    content:'';

    position:absolute;

    right:14px;
    bottom:12px;

    width:208px;
    height:138px;

    border:3px solid #f8c13c;

    border-left-color:transparent;
    border-top-color:transparent;

    border-radius:50%;
}


/* =========================
   HEADING
========================= */

.login-heading{
    position:relative;
    z-index:3;
}

.login-heading > span{
    display:block;

    margin-bottom:3px;

    color:#102b5f;

    font-size:20px;
    font-weight:800;
}

.login-heading h1{
    color:#0a2f6a;

    font-size:40px;

    line-height:1.08;

    font-weight:900;

    letter-spacing:-1px;
}

.login-heading h1 span{
    color:#eda817;
}


/* GOLD LINE */

.heading-line{
    width:220px;
    height:2px;

    margin:
        11px auto
        17px;

    border-radius:99px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d79f25 15%,
            #d79f25 85%,
            transparent
        );
}


/* =========================
   USER ICON
========================= */

.user-icon{
    position:relative;
    z-index:3;

    display:flex;

    justify-content:center;

    margin-bottom:18px;
}

.user-circle{
    width:72px;
    height:72px;

    display:flex;

    align-items:center;
    justify-content:center;

    border:
        2px solid
        #123569;

    border-radius:50%;

    background:#fff;

    color:#0a2d65;

    box-shadow:
        0 3px 7px
        rgba(17,49,94,.13);

    font-size:34px;
}


/* =========================
   ERROR
========================= */

.login-error{
    position:relative;
    z-index:3;

    display:flex;

    align-items:center;
    justify-content:center;

    gap:7px;

    margin:
        -3px 0
        11px;

    padding:
        8px 10px;

    border:
        1px solid
        #efc6ca;

    border-radius:8px;

    background:#fff0f1;

    color:#c52334;

    font-size:11px;
    font-weight:700;
}


/* =========================
   FORM
========================= */

.login-form{
    position:relative;
    z-index:3;
}

.hidden-autofill{
    position:absolute !important;
    left:-9999px !important;
}


/* =========================
   INPUT GROUP
========================= */

.input-group{
    position:relative;

    width:100%;
    height:44px;

    margin-bottom:12px;
}

.input-group input{
    width:100%;
    height:100%;

    padding:
        0 44px
        0 43px;

    border:
        1px solid
        #d8dce2;

    border-radius:9px;

    outline:none;

    background:#fff;

    color:#243b5d;

    font-size:13px;

    box-shadow:
        0 3px 7px
        rgba(31,54,83,.12),
        inset 0 0 0 1px
        rgba(255,255,255,.7);

    transition:.2s ease;
}

.input-group input::placeholder{
    color:#9a9da5;
}

.input-group input:focus{
    border-color:#e1a317;

    box-shadow:
        0 0 0 3px
        rgba(229,164,23,.12),
        0 3px 7px
        rgba(31,54,83,.10);
}


/* =========================
   INPUT ICON
========================= */

.input-icon{
    position:absolute;

    top:50%;
    left:11px;

    z-index:3;

    width:24px;
    height:24px;

    transform:
        translateY(-50%);

    display:flex;

    align-items:center;
    justify-content:center;

    border-radius:5px;

    background:#12356b;

    color:#fff;

    font-size:11px;
}


/* =========================
   PASSWORD EYE
========================= */

.password-toggle{
    position:absolute;

    top:50%;
    right:7px;

    z-index:4;

    width:38px;
    height:31px;

    transform:
        translateY(-50%);

    display:flex;

    align-items:center;
    justify-content:center;

    border:
        2px solid
        #eca615;

    border-radius:9px;

    background:#fff;

    color:#0a2f68;

    cursor:pointer;

    font-size:16px;

    transition:.2s ease;
}

.password-toggle:hover{
    background:#fff8e7;
}


/* =========================
   FORGOT PASSWORD
========================= */

.forgot{
    display:block;

    margin:
        1px auto
        17px;

    border:0;

    background:transparent;

    color:#1360b7;

    cursor:pointer;

    font-size:11px;
    font-weight:600;
}

.forgot:hover{
    text-decoration:underline;
}


/* =========================
   LOGIN BUTTON
========================= */

.login-button{
    width:100%;
    height:48px;

    display:flex;

    align-items:center;
    justify-content:center;

    gap:70px;

    padding:
        0 25px;

    border:0;

    border-radius:25px;

    background:
        linear-gradient(
            180deg,
            #073e7f 0%,
            #032e65 100%
        );

    color:#fff;

    cursor:pointer;

    box-shadow:
        0 7px 13px
        rgba(5,44,94,.25),
        inset 0 1px 0
        rgba(255,255,255,.17);

    font-size:19px;
    font-weight:500;

    transition:.2s ease;
}

.login-button i{
    font-size:17px;
}

.login-button:hover{
    transform:
        translateY(-1px);

    background:
        linear-gradient(
            180deg,
            #0a4a94,
            #053671
        );
}


/* =========================
   RESPONSIVE
========================= */

@media(max-width:950px){

    body{
        overflow:auto;
    }

    .login-page{
        min-height:100vh;
        height:auto;
        overflow:visible;
    }

    .login-layout{
        min-height:100vh;

        grid-template-columns:1fr;

        padding:45px 0;
    }

    .brand-section{
        height:auto;

        padding:
            20px
            25px
            8px;
    }

    .logo-wrap{
        width:min(
            360px,
            74vw
        );
    }

    .form-section{
        height:auto;

        padding:
            16px
            20px
            30px;
    }

    .login-card{
        width:min(
            390px,
            94vw
        );

        min-height:auto;
    }
}


/* =========================
   MOBILE
========================= */

@media(max-width:520px){

    .login-layout{
        width:100%;
    }

    .login-card{
        padding:
            31px
            22px
            28px;

        border-radius:20px;
    }

    .login-heading > span{
        font-size:17px;
    }

    .login-heading h1{
        font-size:34px;
    }

    .user-circle{
        width:64px;
        height:64px;

        font-size:29px;
    }

    .login-button{
        gap:45px;
    }
}

/* =========================================================
   PROFESSIONAL RESPONSIVE ENHANCEMENTS
   Keeps the existing HuReMS login design and functionality
========================================================= */

html{
    min-height:100%;
    background:#051a38;
}

body{
    width:100%;
    min-height:100vh;
    min-height:100dvh;
    overflow-x:hidden;
}

.login-page{
    width:100%;
    min-height:100vh;
    min-height:100dvh;
}

.login-layout{
    max-width:1220px;
    column-gap:18px;
}

.login-card{
    width:min(400px,100%);
    min-height:500px;
}

.input-group input,
.login-button,
.password-toggle,
.forgot{
    -webkit-tap-highlight-color:transparent;
}

.input-group input{
    appearance:none;
    -webkit-appearance:none;
}

.input-group input:focus-visible,
.password-toggle:focus-visible,
.forgot:focus-visible,
.login-button:focus-visible{
    outline:3px solid rgba(227,163,33,.28);
    outline-offset:2px;
}

/* TABLET / SMALL LAPTOP */
@media(max-width:1100px){

    .login-layout{
        width:min(980px,94vw);
        grid-template-columns:54% 46%;
    }

    .logo-wrap{
        width:min(430px,42vw);
    }

    .login-card{
        width:min(385px,100%);
        padding:34px 30px 31px;
    }
}

/* TABLET PORTRAIT */
@media(max-width:950px){

    body{
        overflow-y:auto;
    }

    .login-page{
        height:auto;
        min-height:100vh;
        min-height:100dvh;
        overflow:hidden;
        background-position:center center;
    }

    .login-layout{
        width:100%;
        min-height:100vh;
        min-height:100dvh;
        display:flex;
        flex-direction:column;
        justify-content:center;
        gap:0;
        padding:
            max(24px,env(safe-area-inset-top))
            18px
            max(26px,env(safe-area-inset-bottom));
    }

    .brand-section{
        width:100%;
        height:auto;
        flex:0 0 auto;
        padding:8px 20px 4px;
    }

    .logo-wrap{
        width:min(280px,58vw);
        aspect-ratio:1 / 1;
    }

    .main-logo{
        max-width:280px;
        max-height:280px;
    }

    .form-section{
        width:100%;
        height:auto;
        flex:0 0 auto;
        padding:6px 0 10px;
    }

    .login-card{
        width:min(390px,92vw);
        min-height:auto;
        padding:30px 28px 28px;
        border-radius:22px;
    }

    .gold-line-top{
        top:-100px;
        left:-160px;
        transform:scale(.78) rotate(-15deg);
    }

    .gold-line-bottom{
        right:-190px;
        bottom:-180px;
        transform:scale(.78) rotate(-12deg);
    }

    .card-gold-corner{
        transform:scale(.86) rotate(17deg);
        transform-origin:top right;
    }

    .card-gold-corner-bottom{
        transform:scale(.86) rotate(-17deg);
        transform-origin:bottom right;
    }
}

/* STANDARD MOBILE */
@media(max-width:600px){

    .login-layout{
        justify-content:flex-start;
        padding:
            max(16px,env(safe-area-inset-top))
            14px
            max(20px,env(safe-area-inset-bottom));
    }

    .brand-section{
        padding:4px 10px 0;
    }

    .logo-wrap{
        width:min(210px,50vw);
    }

    .main-logo{
        max-width:210px;
        max-height:210px;
    }

    .form-section{
        padding:3px 0 12px;
    }

    .login-card{
        width:100%;
        max-width:390px;
        padding:27px 22px 25px;
        border-radius:19px;
        box-shadow:
            0 16px 34px rgba(1,15,39,.30),
            inset 0 0 0 1px rgba(255,255,255,.72);
    }

    .login-heading > span{
        font-size:16px;
    }

    .login-heading h1{
        font-size:32px;
    }

    .heading-line{
        width:min(205px,70%);
        margin:9px auto 14px;
    }

    .user-icon{
        margin-bottom:15px;
    }

    .user-circle{
        width:60px;
        height:60px;
        font-size:26px;
    }

    .input-group{
        height:46px;
        margin-bottom:11px;
    }

    .input-group input{
        padding:0 43px 0 42px;
        border-radius:10px;
        font-size:16px;
    }

    .input-icon{
        left:10px;
        width:24px;
        height:24px;
    }

    .password-toggle{
        right:7px;
        width:35px;
        height:31px;
        border-width:1.5px;
        font-size:14px;
    }

    .forgot{
        margin:0 auto 15px;
        font-size:11px;
    }

    .login-button{
        height:47px;
        justify-content:space-between;
        gap:0;
        padding:0 25px;
        border-radius:12px;
        font-size:16px;
        font-weight:700;
    }

    .login-button i{
        font-size:14px;
    }

    .login-error{
        margin:0 0 10px;
        padding:8px 9px;
        font-size:10px;
        line-height:1.35;
    }

    .gold-line-top{
        top:-128px;
        left:-220px;
        transform:scale(.65) rotate(-15deg);
    }

    .gold-line-bottom{
        right:-235px;
        bottom:-205px;
        transform:scale(.65) rotate(-12deg);
    }
}

/* SMALL PHONES */
@media(max-width:390px){

    .login-layout{
        padding-left:10px;
        padding-right:10px;
    }

    .logo-wrap{
        width:min(175px,48vw);
    }

    .main-logo{
        max-width:175px;
        max-height:175px;
    }

    .login-card{
        padding:24px 17px 22px;
        border-radius:17px;
    }

    .login-heading > span{
        font-size:15px;
    }

    .login-heading h1{
        font-size:29px;
    }

    .user-circle{
        width:56px;
        height:56px;
        font-size:24px;
    }

    .input-group{
        height:45px;
    }

    .login-button{
        height:45px;
    }
}

/* VERY SHORT LANDSCAPE SCREENS */
@media(max-height:650px) and (min-width:700px){

    .login-page{
        min-height:650px;
        height:auto;
    }

    .login-layout{
        min-height:650px;
    }

    .logo-wrap{
        width:min(390px,39vw);
    }

    .login-card{
        min-height:470px;
        padding-top:28px;
        padding-bottom:26px;
    }

    .user-circle{
        width:60px;
        height:60px;
        font-size:28px;
    }
}
