/* =========================================================
   LOGIN PAGE
========================================================= */

html,
body{
    margin:0 !important;
    padding:0 !important;
}

/* =========================================================
   REMOVE SPACE BELOW HEADER
========================================================= */

.page-content{
    margin:0 !important;
    padding:0 !important;
    background:transparent !important;
}

.login-page {
    min-height: calc(100vh - 76px);

    display:flex;
    align-items:center;
    justify-content:center;

    margin:0 !important;
    padding:15px 18px 45px !important;

    box-sizing:border-box;

    position:relative;

    background:#0b1120;

    overflow:hidden;
}


/* =========================================================
   BACKGROUND DECORATION
========================================================= */

.login-page::before {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    top: -170px;
    left: -130px;

    border-radius: 50%;

    background: rgba(37, 99, 235, .12);

    filter: blur(8px);

    pointer-events: none;
}


.login-page::after {
    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    right: -150px;
    bottom: -180px;

    border-radius: 50%;

    background: rgba(79, 70, 229, .10);

    filter: blur(8px);

    pointer-events: none;
}


/* =========================================================
   LOGIN CARD
========================================================= */

.login-box{
    position:relative;
    z-index:2;

    width:100%;
    max-width:440px;

    transform:translateY(20px);

    padding:32px;

    box-sizing:border-box;

    border:1px solid rgba(255,255,255,.75);
    border-radius:22px;

    background:rgba(255,255,255,.91);

    box-shadow:
        0 25px 70px rgba(15,23,42,.16),
        0 4px 15px rgba(15,23,42,.05);

    backdrop-filter:blur(20px);
    -webkit-backdrop-filter:blur(20px);
}


/* =========================================================
   BRAND
========================================================= */

.login-brand{
    display:flex;
    align-items:center;
    justify-content:center;

    gap:11px;

    margin-bottom:25px;

    text-decoration:none;
}

.login-brand-logo{
    width:46px;
    height:46px;

    display:flex;
    align-items:center;
    justify-content:center;

    border-radius:13px;

    background:#f1f5f9;

    border:1px solid #e2e8f0;

    overflow:hidden;
}

.login-brand-logo img{
    width:38px;
    height:38px;

    object-fit:contain;
}

.login-brand-name{
    color:#0f172a;

    font-size:20px;
    line-height:1.2;

    font-weight:800;

    letter-spacing:-.3px;
}


/* =========================================================
   HEADER
========================================================= */

.login-header{
    text-align:center;

    margin-bottom:25px;
}

.login-icon{
    width:48px;
    height:48px;

    display:flex;
    align-items:center;
    justify-content:center;

    margin:0 auto 13px;

    border-radius:14px;

    color:#fff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    box-shadow:
        0 10px 25px rgba(37,99,235,.25);

    font-size:19px;
}

.login-header h1{
    margin:0;

    color:#0f172a;

    font-size:27px;
    line-height:1.2;

    font-weight:800;

    letter-spacing:-.5px;
}

.login-subtext{
    margin:8px auto 0;

    max-width:330px;

    color:#64748b;

    font-size:13px;
    line-height:1.6;
}


/* =========================================================
   ALERT
========================================================= */

.login-alert{
    display:flex;
    align-items:flex-start;

    gap:10px;

    padding:12px 14px;

    margin-bottom:20px;

    border-radius:11px;

    font-size:13px;
    line-height:1.5;
}

.login-alert i{
    margin-top:1px;
    font-size:16px;
}

.login-alert.error{
    color:#b91c1c;

    background:#fef2f2;

    border:1px solid #fecaca;
}


/* =========================================================
   FORM
========================================================= */

.login-form-group{
    margin-bottom:18px;
}

.login-form-group label{
    display:block;

    margin-bottom:7px;

    color:#334155;

    font-size:13px;
    font-weight:700;
}

.login-input{
    position:relative;
}

.login-input > i{
    position:absolute;

    left:14px;
    top:50%;

    transform:translateY(-50%);

    color:#94a3b8;

    font-size:15px;

    pointer-events:none;

    transition:.2s ease;
}

.login-input input{
    width:100%;
    height:48px;

    box-sizing:border-box;

    padding:0 45px 0 42px;

    border:1px solid #dbe2ea;

    border-radius:11px;

    outline:none;

    background:#f8fafc;

    color:#0f172a;

    font-family:inherit;

    font-size:14px;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.login-input input::placeholder{
    color:#94a3b8;
}

.login-input input:focus{
    background:#fff;

    border-color:#60a5fa;

    box-shadow:
        0 0 0 4px rgba(59,130,246,.10);
}

.login-input:focus-within > i{
    color:#2563eb;
}


/* PASSWORD BUTTON */

.password-toggle{
    position:absolute;

    right:10px;
    top:50%;

    transform:translateY(-50%);

    width:30px;
    height:30px;

    display:flex;
    align-items:center;
    justify-content:center;

    border:0;

    border-radius:8px;

    background:transparent;

    color:#94a3b8;

    cursor:pointer;

    transition:.2s ease;
}

.password-toggle:hover{
    color:#2563eb;
    background:#eff6ff;
}


/* =========================================================
   ACCOUNT TYPE
========================================================= */

.account-label{
    display:block;

    margin-bottom:8px;

    color:#334155;

    font-size:13px;
    font-weight:700;
}

.role-select{
    display:grid;

    grid-template-columns:1fr 1fr;

    gap:10px;
}

.role-option{
    position:relative;
}

.role-option input{
    position:absolute;

    opacity:0;
    pointer-events:none;
}

.role-card{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;

    min-height:78px;

    padding:12px;

    box-sizing:border-box;

    border:1px solid #dbe2ea;

    border-radius:12px;

    background:#f8fafc;

    cursor:pointer;

    transition:
        transform .2s ease,
        border-color .2s ease,
        background .2s ease,
        box-shadow .2s ease;
}

.role-card i{
    margin-bottom:7px;

    color:#64748b;

    font-size:19px;

    transition:.2s ease;
}

.role-card span{
    color:#334155;

    font-size:13px;
    font-weight:700;

    transition:.2s ease;
}

.role-card:hover{
    transform:translateY(-2px);

    border-color:#93c5fd;

    background:#fff;

    box-shadow:
        0 8px 20px rgba(37,99,235,.08);
}

.role-option input:checked + .role-card{
    border-color:#2563eb;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    box-shadow:
        0 10px 24px rgba(37,99,235,.20);
}

.role-option input:checked + .role-card i,
.role-option input:checked + .role-card span{
    color:#fff;
}


/* =========================================================
   CAPTCHA
========================================================= */

.login-captcha{
    margin:18px 0;
}

.login-captcha > div{
    display:flex;
    justify-content:center;
}


/* =========================================================
   LOGIN BUTTON
========================================================= */

.login-submit{
    width:100%;

    min-height:49px;

    margin-top:5px;

    border:0;

    border-radius:11px;

    color:#fff;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #4f46e5
        );

    box-shadow:
        0 10px 25px rgba(37,99,235,.25);

    font-family:inherit;

    font-size:14px;
    font-weight:750;

    cursor:pointer;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.login-submit:hover{
    transform:translateY(-2px);

    box-shadow:
        0 14px 32px rgba(37,99,235,.32);
}

.login-submit:active{
    transform:translateY(0);
}


/* =========================================================
   FOOT LINKS
========================================================= */

.login-links{
    margin-top:21px;

    text-align:center;
}

.login-links p{
    margin:7px 0;

    color:#64748b;

    font-size:13px;
}

.login-links a{
    color:#2563eb;

    font-weight:700;

    text-decoration:none;
}

.login-links a:hover{
    text-decoration:underline;
}


/* =========================================================
   MOBILE
========================================================= */

@media(max-width:600px){

    .login-page{
        min-height:calc(100vh - 68px);

        padding:28px 14px;
    }

    .login-box{
        padding:25px 20px;

        border-radius:18px;
    }

    .login-brand{
        margin-bottom:21px;
    }

    .login-brand-logo{
        width:42px;
        height:42px;
    }

    .login-brand-logo img{
        width:34px;
        height:34px;
    }

    .login-brand-name{
        font-size:18px;
    }

    .login-header h1{
        font-size:24px;
    }

    .login-subtext{
        font-size:12px;
    }

    .role-card{
        min-height:72px;
    }

}

@media(max-width:380px){

    .login-box{
        padding:22px 16px;
    }

    .role-select{
        grid-template-columns:1fr;
    }

}