html.loginMode * {
    --orange: #ff7a00;
    --input-line: #85898d;
    --grey: #343b41;
    --green: #31de85;
}

html, body, .render-body, .login-ctrl {
    height: 100%;
    overflow-y: hidden;
}

html.loginMode body {
    background: url(background-icons.svg) no-repeat center center;
    background-color: #ffffff;
    background-position-y: top;
}

html.loginMode.login-dark body {
    background-color: #1d2125;
}

html.loginMode *:not(i) {
    font-family: Poppins !important;
    font-size: 14px !important;
}

html.loginMode .errorMessage {
    font-size: 12px !important;
    max-height: 120px;
    overflow: auto;
    line-height: 14px;
}

html.loginMode .row {
    margin-left: inherit;
}

html.loginMode .form-content {
    padding: 40px 20px;
    width: 325px !important;
    height: 415px;
    top: 83px;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    border-radius: 12px;
    background-color: #FFFFFF !important;
    display: -webkit-box;
    display: -moz-box;
    display: -ms-flexbox;
    display: -webkit-flex;
    box-shadow: 0px 4px 16px 0 lightgray;
    display: flex;
    align-items: flex-start;
    flex-direction: column;
}

html.loginMode.login-dark .form-content {
    box-shadow: none;
}

html.loginMode .form-content .form-items {
    -webkit-transition: all 0.4s ease;
    display: inline-block;
    max-width: 420px;
    text-align: left;
    transition: all 0.4s ease;
    width: 100%;
}

html.loginMode .form-content form {
    width: 100%;
}

/* Language link */
html.loginMode .language-link {
    position: fixed;
    right: 30px;
    bottom: 30px;
    color: var(--orange);
    cursor: pointer;
    text-decoration: underline;
    font-weight: bold;
    z-index: 1;
}

/* C2-ITSM logo */
html.loginMode #heading * {
    display: none;
}

html.loginMode #heading {
    background: url(c2-logo.png) no-repeat center center;
    height: 100px;
    background-size: 76px 100px;
    margin-bottom: 35px;
    width: 100%;
}

/* Input Username and Password */
html.loginMode .input-label,
html.loginMode input {
    color: var(--grey);
}

html.loginMode .input-label {
    margin-top: 20px;
    font-weight: 600;
}

html.loginMode input {
    width: 100%;
    padding: 5px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--input-line);
    border-top: none;
    border-left: none;
    border-right: none;
    box-shadow: none;
    outline: none !important;
}

html.loginMode input.val-hasError {
    border-bottom: 1px solid red !important;
}

html.loginMode input:focus {
    border-bottom: 1px solid var(--orange);
    border-top: none;
    border-left: none;
    border-right: none;
    outline: none;
    box-shadow: none;
}

html.loginMode .form-button {
    text-align: center;
}

html.loginMode .form-button.otp {
    display: flex;
    flex-direction: column;
    gap: 20px;
    align-items: center;
}

/* Buttons */
html.loginMode .form-content button:not([disabled]) {
    background-color: var(--orange);
    color: #ffffff;
}

html.loginMode .form-content button {
    font-size: 18px !important;
    border-radius: 12px;
    border: none;
    font-weight: 500;
    padding: 10px 35px;    
    width: auto !important;
}

html.loginMode .form-content button:hover:not([disabled]) {
    background-color: var(--green);
}

html.loginMode .form-content button:active:not([disabled]) {
    background-color: var(--grey);
}

html.loginMode #signInButton,
html.loginMode .login-forgotPassContent button {
    margin-top: 50px;
}

/* Forgot Password and Back to Login link */
html.loginMode .login-forgotDiv {
    position: relative;
    top: -100px;
}

html.loginMode a#back-to-login {
    position: absolute;
    bottom: 15px;
}

html.loginMode .login-forgotDiv a,
html.loginMode a#back-to-login {
    font-size: 10px !important;
    text-decoration: underline;
    color: var(--grey);
    cursor: pointer;
}

html.loginMode .login-forgotDiv a:hover,
html.loginMode .login-forgotDiv a:focus,
html.loginMode .login-forgotDiv a:active,
html.loginMode a#back-to-login:hover,
html.loginMode a#back-to-login:focus,
html.loginMode a#back-to-login:active {
    color: var(--grey);
}

/* Forgot Password panel */
html.loginMode #reset-password.qtip {
    display: inherit;
    position: inherit;
    padding: 0;
    width: inherit;
    line-height: 16px;
}

html.loginMode #reset-password span:has(> button) {
    display: block;
    text-align: center;
}

html.loginMode .reset-password-tooltip {
    display: none !important;
}

/* Items at the bottom left */
html.loginMode #footer-items {
    position: fixed;
    bottom: 30px;
    display: flex;
    align-items: center;
    gap: 14px;
    left: 30px;
}

html.loginMode #footer-items i:hover {
    color: var(--orange);
}

html.loginMode #footer-items,
html.loginMode #footer-items a:visited {
    color: var(--grey);
}

/* Youtube and LinkedIn link */
html.loginMode i.fa-youtube-play {
    font-size: 22px !important;
}

html.loginMode i.fa-linkedin {
    font-size: 12px !important;
    border: 2px solid var(--grey);
    border-radius: 4px;
    padding: 4px;
}

html.loginMode i.fa-linkedin:hover {
    border-color: var(--orange) !important;
}

/* Phone number and Create a ticket */
html.loginMode .footer-item {
    color: var(--orange);
    font-weight: bold;
}

html.loginMode a.footer-item {
    text-decoration: underline;
}

html.loginMode #footer-border {
    background-color: var(--green);
    position: fixed;
    height: 10px;
    width: 100%;
    bottom: 0;
}

html.loginMode .otp-inputs {
    margin-top: 10px;
}

html.loginMode .otp-input {
    padding: 5px 0 !important;
}

@media only screen and (min-width: 1101px) {
    html.loginMode.login-dark i.fa-youtube-play {
        color: #ffffff;
    }

    html.loginMode.login-dark i.fa-linkedin {
        border: 2px solid #ffffff;
        color: #ffffff;
    }
}

@media screen and (min-width: 1900px) {
    html.loginMode body {
        background-position-y: 75px;
    }

    html.loginMode .form-content {
        top: 163px;
    }
}

/* MOBILE ONLY */
@media only screen and (max-width: 1100px) {
    html.loginMode body {
        background: none;
        background-color: #ffffff !important;
        min-width: inherit;
    }

    html.loginMode .form-content {
        padding: 40px 20px;
        width: auto !important;
        height: 100%;
        top: 0;
        margin-top: 60px;
        margin-left: 0;
        margin-right: 0;
        border-radius: 0;
        position: relative;
        display: -webkit-box;
        display: -moz-box;
        display: -ms-flexbox;
        display: -webkit-flex;
        box-shadow: none;
        display: flex;
        align-items: flex-start;
        justify-content: center;
        flex-direction: column;
    }

    html.loginMode #footer-items {
        gap: 11px;
        left: 20px;
        bottom: 20px;
    }

    html.loginMode .footer-item {
        font-size: 12px !important;
    }

    html.loginMode .language-link {
        right: 20px;
        bottom: 26px;
        font-size: 12px !important;
    }
}
