/*
|--------------------------------------------------------------------------
| MDIST AUTH SCREENS
|--------------------------------------------------------------------------
|
| Shared styles for:
|
| - login.php
| - forgot_password.php
| - reset_password.php
|
|--------------------------------------------------------------------------
*/


/*
|--------------------------------------------------------------------------
| GLOBAL
|--------------------------------------------------------------------------
*/

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}


html,
body{

    min-height:100%;
}


body{

    background:#f4f6f9;

    font-family:
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    height:100vh;

    overflow:hidden;
}


/*
|--------------------------------------------------------------------------
| AUTH WRAPPER
|--------------------------------------------------------------------------
*/

.login-wrapper{

    display:flex;

    width:100%;

    min-height:100vh;

    height:100vh;

    overflow:hidden;
}


/*
|--------------------------------------------------------------------------
| LEFT PANEL
|--------------------------------------------------------------------------
*/

.login-left{

    flex:1;

    position:relative;

    overflow:hidden;

    display:flex;

    flex-direction:column;

    justify-content:center;

    padding:60px;

    color:#ffffff;

    background:
        linear-gradient(
            135deg,
            #0d6efd,
            #052c65
        );
}


/*
|--------------------------------------------------------------------------
| LEFT DECORATION
|--------------------------------------------------------------------------
|
| Supports both names previously used:
|
| login-circle
| decor-circle
|
|--------------------------------------------------------------------------
*/

.login-circle,
.decor-circle{

    position:absolute;

    border-radius:50%;

    pointer-events:none;
}


.login-circle-1,
.decor-circle-one{

    width:270px;
    height:270px;

    right:-70px;
    top:-75px;

    border:
        34px solid
        rgba(
            255,
            255,
            255,
            .10
        );
}


.login-circle-2,
.decor-circle-two{

    width:185px;
    height:185px;

    right:-25px;
    top:-35px;

    border:
        2px solid
        rgba(
            255,
            255,
            255,
            .10
        );
}


/*
|--------------------------------------------------------------------------
| LEFT CONTENT
|--------------------------------------------------------------------------
|
| Supports:
|
| login-left-content
| platform-info
|
|--------------------------------------------------------------------------
*/

.login-left-content,
.platform-info{

    position:relative;

    z-index:2;

    max-width:720px;
}


/*
|--------------------------------------------------------------------------
| PLATFORM ICON
|--------------------------------------------------------------------------
*/

.platform-icon{

    width:76px;
    height:76px;

    display:flex;

    align-items:center;
    justify-content:center;

    margin-bottom:30px;

    border-radius:18px;

    background:
        rgba(
            255,
            255,
            255,
            .14
        );

    box-shadow:
        0 8px 24px
        rgba(
            0,
            0,
            0,
            .08
        );

    font-size:36px;
}


/*
|--------------------------------------------------------------------------
| PLATFORM TITLE
|--------------------------------------------------------------------------
*/

.login-left h1,
.platform-title{

    margin:0;

    margin-bottom:10px;

    color:#ffffff;

    font-size:60px;

    line-height:1.08;

    font-weight:800;

    letter-spacing:.2px;
}


/*
|--------------------------------------------------------------------------
| COMPANY
|--------------------------------------------------------------------------
*/

.company-name,
.platform-company{

    margin-top:0;

    margin-bottom:24px;

    color:#ffffff;

    font-size:22px;

    font-weight:400;

    opacity:.93;
}


/*
|--------------------------------------------------------------------------
| PLATFORM DESCRIPTION
|--------------------------------------------------------------------------
*/

.login-left p,
.platform-description{

    max-width:650px;

    margin-top:0;

    margin-bottom:0;

    color:#ffffff;

    font-size:20px;

    line-height:1.55;

    opacity:.90;
}


/*
|--------------------------------------------------------------------------
| FEATURES
|--------------------------------------------------------------------------
*/

.feature-list,
.platform-features{

    margin-top:40px;
}


.feature-item,
.platform-feature{

    display:flex;

    align-items:center;

    gap:15px;

    margin-bottom:20px;

    color:#ffffff;

    font-size:18px;
}


/*
|--------------------------------------------------------------------------
| FEATURE ICON
|--------------------------------------------------------------------------
*/

.feature-icon,
.platform-feature > i{

    width:34px;
    height:34px;

    display:flex;

    align-items:center;
    justify-content:center;

    flex-shrink:0;

    border-radius:9px;

    background:
        rgba(
            255,
            255,
            255,
            .10
        );

    color:#ffffff;

    font-size:17px;
}


.feature-icon i{

    font-size:17px;
}


/*
|--------------------------------------------------------------------------
| RIGHT PANEL
|--------------------------------------------------------------------------
|
| IMPORTANT:
|
| Same width on all authentication screens.
|
|--------------------------------------------------------------------------
*/

.login-right{

    width:500px;

    flex:0 0 500px;

    display:flex;

    align-items:center;
    justify-content:center;

    padding:40px;

    background:#ffffff;
}


/*
|--------------------------------------------------------------------------
| CARD
|--------------------------------------------------------------------------
*/

.login-card{

    width:100%;

    max-width:420px;
}


/*
|--------------------------------------------------------------------------
| LOGO
|--------------------------------------------------------------------------
*/

.login-logo{

    margin-bottom:40px;

    text-align:center;
}


.login-logo img,
.header-logo{

    max-width:200px;

    width:100%;

    height:80px;

    object-fit:contain;
}


.login-logo h2{

    margin-top:15px;

    margin-bottom:0;

    font-size:30px;

    font-weight:700;
}


/*
|--------------------------------------------------------------------------
| AUTH TITLE
|--------------------------------------------------------------------------
*/

.login-title{

    margin-top:20px;

    margin-bottom:8px;

    text-align:center;

    color:#212529;

    font-size:29px;

    font-weight:700;
}


/*
|--------------------------------------------------------------------------
| AUTH SUBTITLE
|--------------------------------------------------------------------------
*/

.login-subtitle{

    margin-bottom:28px;

    text-align:center;

    color:#6c757d;

    font-size:15px;

    line-height:1.5;
}


/*
|--------------------------------------------------------------------------
| FORM LABEL
|--------------------------------------------------------------------------
*/

.form-label{

    margin-bottom:7px;

    color:#212529;

    font-size:14px;

    font-weight:500;
}


/*
|--------------------------------------------------------------------------
| FORM CONTROL
|--------------------------------------------------------------------------
*/

.form-control{

    height:55px;

    border-radius:14px;

    font-size:16px;
}


.form-control:focus{

    border-color:#0d6efd;

    box-shadow:
        0 0 0
        .2rem
        rgba(
            13,
            110,
            253,
            .12
        );
}


/*
|--------------------------------------------------------------------------
| LOGIN BUTTON
|--------------------------------------------------------------------------
*/

.btn-login,
.btn-reset{

    height:55px;

    border-radius:14px;

    font-size:16px;

    font-weight:600;
}


.btn-login{

    font-size:18px;
}


/*
|--------------------------------------------------------------------------
| FORGOT PASSWORD
|--------------------------------------------------------------------------
*/

.password-actions{

    display:flex;

    justify-content:flex-end;

    align-items:center;

    margin-top:-8px;

    margin-bottom:22px;
}


.forgot-password-link{

    color:#0d6efd;

    text-decoration:none;

    font-size:14px;

    font-weight:500;
}


.forgot-password-link:hover{

    text-decoration:underline;
}


/*
|--------------------------------------------------------------------------
| BACK TO LOGIN
|--------------------------------------------------------------------------
*/

.back-login{

    margin-top:22px;

    text-align:center;
}


.back-login a{

    color:#0d6efd;

    text-decoration:none;

    font-weight:500;
}


.back-login a:hover{

    text-decoration:underline;
}


/*
|--------------------------------------------------------------------------
| PASSWORD REQUIREMENTS
|--------------------------------------------------------------------------
*/

.password-requirements{

    margin-top:18px;

    padding:14px 16px;

    border:
        1px solid
        #e3e7ec;

    border-radius:10px;

    background:#f8f9fa;

    color:#6c757d;

    font-size:13px;

    line-height:1.7;
}


.password-requirements-title{

    margin-bottom:4px;

    color:#212529;

    font-weight:600;
}


/*
|--------------------------------------------------------------------------
| RESULT ICON
|--------------------------------------------------------------------------
|
| Used by reset password.
|
|--------------------------------------------------------------------------
*/

.result-icon{

    width:70px;
    height:70px;

    display:flex;

    align-items:center;
    justify-content:center;

    margin:
        0 auto
        24px auto;

    border-radius:50%;

    font-size:32px;
}


.result-icon-success{

    background:#eaf7ef;

    color:#198754;
}


.result-icon-error{

    background:#fdeeee;

    color:#dc3545;
}


/*
|--------------------------------------------------------------------------
| FORGOT PASSWORD SUCCESS ICON
|--------------------------------------------------------------------------
*/

.reset-success-icon{

    width:70px;
    height:70px;

    display:flex;

    align-items:center;
    justify-content:center;

    margin:
        0 auto
        24px auto;

    border-radius:50%;

    background:#eaf7ef;

    color:#198754;

    font-size:32px;
}


/*
|--------------------------------------------------------------------------
| ALERTS
|--------------------------------------------------------------------------
*/

.alert{

    border-radius:10px;
}


/*
|--------------------------------------------------------------------------
| VERSION
|--------------------------------------------------------------------------
*/

.version{

    margin-top:30px;

    text-align:center;

    color:#999;

    font-size:14px;
}


/*
|--------------------------------------------------------------------------
| SMALL SCREENS
|--------------------------------------------------------------------------
*/

@media(
    max-width:1200px
){

    .login-left{

        padding:50px;
    }


    .login-left h1,
    .platform-title{

        font-size:48px;
    }


    .login-left p,
    .platform-description{

        font-size:18px;
    }

}


/*
|--------------------------------------------------------------------------
| TABLET / MOBILE
|--------------------------------------------------------------------------
*/

@media(
    max-width:992px
){

    body{

        overflow:auto;
    }


    .login-wrapper{

        min-height:100vh;

        height:auto;
    }


    .login-left{

        display:none;
    }


    .login-right{

        width:100%;

        flex:1 1 100%;

        min-height:100vh;

        padding:35px;
    }


    .login-card{

        max-width:420px;
    }

}


/*
|--------------------------------------------------------------------------
| SMALL MOBILE
|--------------------------------------------------------------------------
*/

@media(
    max-width:576px
){

    .login-right{

        padding:
            30px
            22px;
    }


    .login-logo{

        margin-bottom:30px;
    }


    .login-logo img,
    .header-logo{

        max-width:180px;
    }


    .login-logo h2{

        font-size:27px;
    }


    .login-title{

        font-size:26px;
    }


    .form-control{

        height:52px;
    }


    .btn-login,
    .btn-reset{

        height:52px;
    }

}

/*
|--------------------------------------------------------------------------
| PASSWORD SHOW / HIDE
|--------------------------------------------------------------------------
*/

.password-input-group{

    height:55px;

    border:
        1px solid
        #dee2e6;

    border-radius:14px;

    overflow:hidden;

    background:#ffffff;
}


.password-input-group .form-control{

    height:100%;

    border:0;

    border-radius:0;

    box-shadow:none;
}


.password-input-group #togglePassword{

    width:55px;

    border:0;

    border-radius:0;

    background:#ffffff;

    color:#6c757d;
}


.password-input-group #togglePassword:hover{

    background:#ffffff;

    color:#212529;
}


.password-input-group:focus-within{

    border-color:#0d6efd;

    box-shadow:
        0 0 0
        .2rem
        rgba(
            13,
            110,
            253,
            .12
        );
}