@import url('https://fonts.googleapis.com/css2?family=Google+Sans+Flex:opsz,wght@6..144,1..1000&display=swap');


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

*:focus {
    outline: 0 !important;
    box-shadow: none !important;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: 'Google Sans Flex', sans-serif;
}

/* =========================================================
   LOGIN – MAIN LAYOUT
   ========================================================= */

.login-panel {
    background-color: #e9eef2;
    color: #4f5660;
    font-family: 'Google Sans Flex', sans-serif;
    font-weight: 400;
    position: relative;
    inset: 0;
}

.login-panel a:hover {
    color: #3944ff; 
    text-decoration: none;
}

.login-panel:before {
    content: '';
    background-image: url('/admin/images/dashboard_bg.jpg');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 40%;
}

.login-panel .wrapper {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-height: 100vh;
}

/* =========================================================
   LOGIN HEADER
   ========================================================= */

.login-header {
    text-align: center;
}


/* =========================================================
   LOGIN BOX
   ========================================================= */

.login-panel .login-box {
    position: relative;
    width: 100%;

    transform: translate3d(0, 0, 0);
}

.panel-box {
    width: 100%;
    box-sizing: border-box;
}

/* =========================================================
   WHITE FORM CARD
   ========================================================= */

.login-panel form {
    width: 100%;
    box-sizing: border-box;

    margin: 0 auto;
    padding: 32px;

    background: #fff;
    border-radius: 8px;

    box-shadow: none;
}

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

.login-panel h1,
.login-panel h2 {
    margin: 0 0 27px;

    font-family: 'Google Sans Flex', sans-serif;
    font-size: 24px;
    line-height: 1.35;
    font-weight: 500;

    color: #3944ff;
    width: 260px;
    max-width: 100%;
}

.form-signin .form-signin-heading {
    margin-bottom: 27px;

    font-size: 20px;
    line-height: 1.35;
    font-weight: 600;

    color: #3944ff;
}

/* =========================================================
   LABELS
   ========================================================= */

.login-panel label,
.login-panel .form-group label {
    color: #60646C;
    font-size: 14px;
}

/* =========================================================
   INPUTS
   ========================================================= */

.login-panel .form-control {
    position: relative;

    width: 100%;
    height: 46px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #bfc1c4 !important;
    border-radius: 4px;

    background: #fff !important;
    color: #60646C;

    font-family: 'Google Sans Flex', sans-serif;
    font-size: 14px;

    box-shadow: none !important;
}

.login-panel .form-control:focus {
    z-index: 2;

    border-color: #3944ff !important;
    background: #fff !important;
}

.login-panel .form-control::placeholder {
    color: #9b9da1 !important;
    font-weight: 400;
}

.panel-wrapper input[type="text"],
.panel-wrapper input[type="password"],
.panel-wrapper input[type="email"] {
    width: 100%;

    height: 54px;

    margin-bottom: 15px;
    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #A6A6A6;
    border-radius: 4px;

    background: #fff;
    color: #60646C;
}

/* =========================================================
   CHECKBOX + PASSWORD RESET
   ========================================================= */

.login-panel .bottom-row {
    display: flex;
    align-items: center;
    justify-content: space-between;

    width: 100%;
}

.form-signin .checkbox-wrapper {
    position: relative;

    display: inline-block;

    margin: 0;
}

.form-signin .checkbox-wrapper p {
    display: inline-block;

    margin: 0;
    padding: 0 0 0 7px;

    vertical-align: middle;

    color: #60646C;
    font-size: 14px;
}

.login-panel .bottom-row .password-reset,
.login-panel .bottom-row .back-to-login {
    margin: 0;

    padding: 0;

    background: transparent;
    border: 0;

    color: #60646C;
    font-size: 14px;
    font-weight: 400;

    text-decoration: none;
}

.login-panel .bottom-row .password-reset:hover,
.login-panel .bottom-row .back-to-login:hover {
    color: #3944ff;
    text-decoration: underline;
}

/* =========================================================
   CUSTOM CHECKBOX
   ========================================================= */

.custom-checkbox {
    padding: 0;
}

.custom-checkbox label {
    cursor: pointer;

    padding-left: 20px;

    color: #60646C;
    font-size: 14px;
}

.custom-checkbox .custom-control-label:before {
    position: absolute;

    top: 3px;
    left: 0;

    width: 16px;
    height: 16px;

    display: inline-block;

    margin: 0;

    border: 1px solid #b8bbc0 !important;
    border-radius: 3px;

    background: #fff !important;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::before {
    background: #fff !important;
}

.custom-checkbox .custom-control-input:checked~.custom-control-label::after {
    top: 7px;
    left: 4px;
    background: #3944ff !important;
    width: 8px;
    height: 8px;
    border-radius: 2px;
}

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

.login-panel .submit-button {
    display: block;


    height: 52px;
    line-height: 52px;

    margin: 20px auto 10px;

    padding: 0 30px;

    border: 0;
    border-radius: 4px;

    background: #3944ff;
    color: #fff;

    font-family: 'Google Sans Flex', sans-serif;
    font-size: 16px;
    font-weight: 500;

    text-transform: none;

    box-shadow: none !important;

    transition:
        background-color .2s ease,
        transform .2s ease;
}


.login-panel .submit-button img {
    margin-left: 10px;
}

.login-panel .submit-button:hover {
    background: #2934e8;
    color: #fff;

    transform: translateY(-1px);
}

.login-panel .submit-button:active,
.login-panel .submit-button:focus {
    background: #2934e8;
    color: #fff;
}

/* =========================================================
   SUPPORT TEXT
   ========================================================= */

.login-panel .support-wrapper {
    margin: 0 auto;
}


.login-panel .support-wrapper p,
.login-panel .support-wrapper p a {
    margin: 0;
    padding-top: 20px;
    font-weight: 500;
    color: #60646C;
    font-size: 14px;
    line-height: 1.5;
}


/* =========================================================
   SUPPORT / INFO TEXT
   ========================================================= */

.login-panel .info-wrapper {
    margin: 0 auto;

    transform: translate3d(0, 0, 0);
    opacity: 1;

    transition: .6s cubic-bezier(.390, .575, .565, 1);
}

.login-panel .info-wrapper p {
    margin: 0;
    padding-top: 20px;

    color: #60646C;
    font-size: 11px;
    line-height: 1.5;
}

.login-panel .info-wrapper p a {
    color: #60646C;
}


.login-panel .support-mail {
    font-size: 14px;
    color: #60646C;
}


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

.reset-box {
    position: absolute;
    top: 50px;
    left: 0;
    right: 0;

    width: 100%;
}

/* =========================================================
   LOGIN / RESET ANIMATION
   ========================================================= */

.login-panel.loading .panel-image,
.login-panel.loading .info-wrapper {
    transform: translate3d(-20%, 0, 0);
    opacity: 0;

    transition: .6s cubic-bezier(.390, .575, .565, 1);
}

.login-panel .panel-image {
    transform: translate3d(0, 0, 0);
    opacity: 1;

    transition: .6s cubic-bezier(.390, .575, .565, 1);
}

.login-panel.loading .login-box.active {
    transform: translate3d(0, 20%, 0);
    opacity: 0;

    transition: .6s cubic-bezier(.390, .575, .565, 1);
}

.reset-box,
.login-box {
    transform: translate3d(-100%, 0, 0);
    opacity: 0;

    transition: .6s cubic-bezier(.390, .575, .565, 1);
}

.reset-box.active,
.login-box.active {
    transform: translate3d(0, 0, 0);
    opacity: 1;

    transition: .6s cubic-bezier(.390, .575, .565, 1);
    transition-delay: .3s;
}

/* =========================================================
   VALIDATION / ERRORS
   ========================================================= */

.form-signin .alert-danger {
    margin: 30px auto 0;
    max-width: 90%;

    border: 1px solid #f76b6b;
    border-radius: 4px;

    background: #fff5f5;
    color: #df2525;

    text-align: center;
    font-size: 12px;
}

.login-panel .input {
    position: relative;
}

.login-panel .input .invalid-tooltip {
    left: calc(100% + 20px);
    top: 0;

    width: 220px;
    padding: 12px;

    background-color: #f50034;
}

.login-panel .input .invalid-tooltip:after {
    right: 100%;
    top: 50%;

    border: solid transparent;
    content: '';

    height: 0;
    width: 0;

    position: absolute;
    pointer-events: none;

    border-right-color: #f50034;
    border-width: 8px;

    margin-top: -8px;
}

/* =========================================================
   EYE ICON
   ========================================================= */

.eye-icon {
    width: 20px;
    height: 20px;

    background-image: url('/admin/images/eye_icon.png');
    background-repeat: no-repeat;
    background-size: 100% auto;
    background-position: center;

    display: inline-block;

    position: absolute;
    bottom: 15px;
    right: 14px;

    cursor: pointer;
    z-index: 10;
}

.eye-icon.closed {
    background-image: url('/admin/images/eye_icon_closed.png');
}

/* =========================================================
   AUTOFILL
   ========================================================= */

input:-internal-autofill-previewed,
input:-internal-autofill-selected,
textarea:-internal-autofill-previewed,
textarea:-internal-autofill-selected,
select:-internal-autofill-previewed,
select:-internal-autofill-selected {
    background-color: #fff !important;
}

/* =========================================================
   TABLET
   ========================================================= */

@media screen and (max-width: 992px) {
    .login-panel:before {
        display: none;
    }

    .login-panel .wrapper {
        flex-direction: column;
    }

    .login-panel .panel-wrapper {
        order: 1;

        width: 100%;
        flex: none;
        padding: 50px 0;
    }
}

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

@media screen and (max-width: 768px) {

    .login-panel .panel-wrapper {
        padding: 30px 20px;
    }

    .login-panel .login-box,
    .panel-box {
        width: 100%;
    }

    .form-signin {
        padding: 25px 20px;
    }

    .login-panel h1,
    .login-panel h2, 
    .form-signin .form-signin-heading {
        font-size: 19px;
    }

    .login-panel .bottom-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .login-panel .bottom-row .password-reset,
    .login-panel .bottom-row .back-to-login {
        margin: 0;
    }

    .login-panel .input .invalid-tooltip {
        left: 0;
        top: 100%;
    }

    .login-panel .input .invalid-tooltip:after {
        display: none;
    }
}