﻿html[data-theme='light'] {
    --logo: url(/ui/Images/Logo/LogoPSTE.png);
    --core-logo: url(/ui/Images/Logo/coredark.png);
    --bg-body: url(/ui/Images/Logo/Pgpcyanbg.png);
    --bg-form: linear-gradient(250deg, #ffffff 75%, #fff 50%, transparent);
    --bg--Login--btn: #11AEA8;
    --title-Color: #173F71;
    --btn-login: #173F71;
    --box-shadow: 0 0 10px #11aea8fc;
    --bg-form-dashbaord: #f5f5f5de !important;
}

html[data-theme='dark'] {
    --logo: url(/ui/Images/Logo/LogoPSTE.png);
    --core-logo: url(/ui/Images/Logo/corelight.png);
    --bg-body: url(/ui/Images/Logo/Pgpblackbg.png);
    --bg-form: linear-gradient(#008080ba 0%, #121111 100%, #00000000);
    --bg--Login--btn: #008080;
    --title-Color: #f5f5f5;
    --btn-login: #008080;
    --box-shadow: 0 0 10px #008080;
    --bg-form-dashbaord: #121111fa !important;
}

body {
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: var( --bg-body);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
}

html, body {
    height: 100%;
    margin: 0;
}

.form-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--bg-form);
    font-family: 'Roboto', sans-serif;
    font-size: 0;
    padding: 0 15px;
    border-radius: 15px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    display: flex;
    max-width: 90%;
    width: 50%;
    height: auto;
}



    .form-container .form-icon {
        color: #fff;
        font-size: 13px;
        text-align: center;
        text-shadow: 0 0 20px rgba(0,0,0,0.2);
        width: 50%;
        padding: 70px 0;
        vertical-align: top;
        display: inline-block;
    }

        .form-container .form-icon i {
            font-size: 124px;
            margin: 0 0 15px;
            display: block;
        }

        .form-container .form-icon .caption {
            color: var( --title-Color);
            text-transform: capitalize;
            transition: all 0.3s ease;
            font-weight: 900;
            text-align: center;
            font-size: 1.3em;
            margin-top: 30px;
            padding-bottom: 30px;
            font-family: 'Nunito Sans';
        }

            .form-container .form-icon .caption:hover {
                text-decoration: underline;
            }

.form-control:focus {
    border-color: transparent;
    box-shadow: none;
    outline: none;
}

.form-container .form-horizontal {
    background: var(--bg-form-dashbaord);
    padding: 30px 30px;
    margin: -20px 0;
    border-radius: 15px;
    box-shadow: var(--box-shadow);
    display: inline-block;
    width: 38%;
    overflow: hidden;
    margin-left: 10px;
}

.form-container .title {
    color: var(--title-Color);
    font-size: 45px;
    font-weight: 750;
    text-align: center;
    text-transform: capitalize;
    letter-spacing: 0.5px;
    margin: 0 0 30px 0;
    font-family: 'Nunito Sans';
}

.form-horizontal {
    max-width: 400px;
    margin: auto;
}

    .form-horizontal .form-group {
        background-color: rgba(255,255,255,0.15);
        margin: 0 0 25px;
        border-bottom: 1px solid #b5b5b566;
    }

    .form-horizontal .input-icon {
        color: var(--bg--Login--btn);
        font-size: 15px;
        text-align: center;
        line-height: 38px;
        height: 35px;
        width: 40px;
        vertical-align: top;
        display: inline-block;
    }

    .form-horizontal .form-control {
        color: #b5b5b5 !important;
        background-color: transparent;
        font-size: 16px !important;
        letter-spacing: 1px;
        width: calc(100% - 55px);
        height: 33px;
        padding: 2px 10px 5px 5px;
        box-shadow: none;
        border: none;
        border-radius: 0;
        display: inline-block;
        transition: all 0.3s;
        font-weight: 500;
        font-family: 'Nunito Sans';
    }

        .form-horizontal .form-control:focus {
            box-shadow: none;
            border: none;
        }

        .form-horizontal .form-control::placeholder {
            color: #b5b5b5;
            font-size: 13px;
            text-transform: capitalize;
        }

    .form-horizontal .btn {
        color: #f5f5f5;
        background: var(--btn-login);
        font-size: 16px;
        font-weight: 700;
        letter-spacing: 1px;
        width: 100%;
        margin: 10px 0 0px 0;
        border: none;
        border-radius: 20px;
        transition: all 0.3s ease;
        font-family: 'Nunito Sans' !important;
        height: 12%;
    }

        .form-horizontal .btn:hover,
        .form-horizontal .btn:focus {
            color: #fff;
            background-color: var(--bg--Login--btn);
            box-shadow: 0 0 5px rgba(0,0,0,0.5);
        }

    .form-horizontal .forgot-pass {
        font-size: 12px;
        text-align: center;
        display: block;
    }

        .form-horizontal .forgot-pass a {
            color: #f1f3f4;
            transition: all 0.3s ease;
        }

            .form-horizontal .forgot-pass a:hover {
                color: #f1f3f4;
                text-decoration: underline;
            }


.forgot-pass {
    color: #f1f3f4;
    margin-top: -10px
}

.sb-sidenav-footer {
    margin-left: 130px;
}

.fa-moon {
    color: #80766c;
    width: 20px;
    padding-left: 5px;
}

.fa-sun {
    color: #f39c12;
    width: 18px;
    padding-right: 5px;
}

.switch-label {
    background-color: #ecdcdc;
    width: 50px;
    height: 26px;
    border-radius: 50px;
    position: relative;
    padding: 0 !important;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}


.link-button {
    background: none !important;
    color: var(--bg--Login--btn) !important;
    border: none;
    padding: 10px;
    font: inherit;
    cursor: pointer;
    text-decoration: underline;
    font-size: 12px !important;
    margin-left: 50px;
    font-weight: bold;
    font-family: 'Nunito Sans';
}

    .link-button:hover {
        background: none !important;
        color: var(--bg--Login--btn) !important;
        text-decoration: underline;
        border: none !important;
    }

.caption {
    text-decoration: none !important;
}

.alertFail {
    border-radius: 15px;
    color: #f44336;
    margin-top: -12px !important;
    font-size: 14px;
    text-align: center;
    font-family: 'Nunito Sans';
}


.alertSuccessful {
    border-radius: 15px;
    color: #33cc33;
    margin-top: -15px !important;
    font-size: 14px;
    text-align: center;
    font-family: 'Nunito Sans';
}


.theme-mode-text {
    margin-right: 10px;
    font-size: 14px;
    color: #fff;
}


.logo {
    width: 220px;
    height: 100px;
    background-image: var(--logo);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: auto;
}

.imgcorelogos {
    width: 180px;
    height: 100px;
    background-image: var(--core-logo);
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin: auto;
}


/* Media Query for screens between 150px and 350px */
@media (min-width: 150px) and (max-width: 450px) {
    .form-container {
        max-width: 100% !important;
        width: 100% !important;
        padding: 10px;
    }

    .logo {
        height: 40px;
        background-image: var(--logo);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin-left: -45px;
    }

    .caption {
        font-size: 0.9em !important;
    }

    .imgcorelogos {
        width: 100px !important;
        height: 60px;
    }

    .form-horizontal {
        max-width: 1000px;
        margin: auto;
    }

    .form-container .form-icon {
        width: 35%;
    }

    .form-container .form-horizontal {
        width: 45%;
    }

    .switch-label {
        margin-left: -90px;
    }
}

/* Android Phones (Portrait, up to 480px width) */
@media (max-width: 480px) {
    .form-container {
        max-width: 90% !important;
        width: 90% !important;
        height: auto;
        padding: 10px;
    }

    .logo {
        height: 40px;
        background-image: var(--logo);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin-left: 0;
    }

    .caption {
        font-size: 0.9em !important;
    }

    .imgcorelogos {
        width: 80px !important;
        height: 50px !important;
    }

    .form-horizontal {
        max-width: 100% !important;
        margin: 0 auto;
    }

    .form-container .form-icon {
        width: 30%;
    }

    .form-container .form-horizontal {
        width: 100%;
    }

    .switch-label {
        margin-left: 0;
        font-size: 0.8em;
    }

    input, button {
        font-size: 14px;
    }

    button {
        width: 100%;
        font-size: 16px;
    }
}


@media (max-width: 480px) {

    .form-container {
        max-width: 90% !important;
        width: 90% !important;
        height: 300px;
    }

    .logo {
        height: 40px;
        background-image: var(--logo);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin-left: -45px;
    }

    .caption {
        font-size: 0.9em !important;
    }

    .imgcorelogos {
        width: 100px !important;
        height: 60px;
    }

    .form-horizontal {
        max-width: 1000px;
        margin: auto;
    }

    .form-container .form-icon {
        width: 35%;
    }

    .form-container .form-horizontal {
        /* width: 45%;*/
    }

    .switch-label {
        margin-left: -90px;
    }
}

/* Landscape Mode for all mobile devices */
@media (max-width: 767px) and (orientation: landscape) {
    .form-container {
        max-width: 90% !important;
        width: 90% !important;
        height: 300px;
    }

    .logo {
        height: 40px;
        background-image: var(--logo);
        background-size: contain;
        background-repeat: no-repeat;
        background-position: center;
        margin-left: -25px;
    }

    .caption {
        font-size: 0.9em !important;
    }

    .imgcorelogos {
        width: 100px !important;
        height: 60px;
    }

    .form-horizontal {
        max-width: 500px;
        margin: auto;
    }

    .form-container .form-icon {
        width: 35%;
    }

    .form-container .form-horizontal {
        width: 45%;
    }

    .sb-sidenav-footer {
        margin-left: 40px;
    }
}
/* General iPad (and tablets) - Portrait and Landscape */
@media (max-width: 1024px) {
    .form-container {
        max-width: 70% !important;
        width: 90% !important;
    }
}

/* For mobile screens */
@media (max-width: 600px) {
    .form-container {
        max-width: 70% !important;
        width: 90% !important;
    }
}

/* iPad (Portrait) */
@media (max-width: 768px) and (orientation: portrait) {
    .form-container {
        max-width: 90% !important;
        width: 90% !important;
    }
}
