/** Login Page **/
body {
    font-family: "Poppins", sans-serif !important;
    background: #f6f7fd;
}

.login,
.support {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.login .spin-loader {
    width: 48px;
    height: 48px;
    border: 5px solid #FFF;
    border-bottom-color: #FF3D00;
    border-radius: 50%;
    display: inline-block;
    box-sizing: border-box;
    animation: rotation 1s linear infinite;
}

@keyframes rotation {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.banner {
    background: #1a73e8;
    border-radius: 20px;
}

.login .fields.oauth-only h1 {
    text-align: center;
}

.login-wrapper,
.support-wrapper,
.password-recovery-wrapper {
    display: flex;
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    width: 1000px;
    margin: 0 auto;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    min-height: 670px !important;
}

#login > div:nth-of-type(4) div:not([class]) {
    color: red;
}

.login-wrapper h1,
.support-wrapper h1,
.password-recovery-wrapper h1{
    font-size: 2.6em;
    font-weight: 500;
}

.login-wrapper iframe,
.support-wrapper iframe,
.password-recovery-wrapper iframe{
    width: 400px !important;
    height: 100%;
    border: none !important;
    border-radius: 20px;
}

.support-wrapper {
    display: flex;
    background-color: white;
    padding: 30px;
    border-radius: 20px;
    margin: 0 auto;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    min-height: 698px !important;
    width: 100% !important;
}

.password-recovery-wrapper a {
    text-align: center;
    width: 100%;
}

.login .fields {
    width: 460px;
    margin: auto;
}

.login .oauth-component {
    width: 100%;
    padding: 8px;
    border-radius: 4px;
    height: 50px;
    line-height: 35px;
    border-radius: 80px;
    font-weight: 600;
    background: #1a73e8;
}

.long .social-links {
    margin-bottom: 16px;
}

.login .oauth-component img {
    display: inline-block;
    width: 32px;
    height: 32px;
    vertical-align: middle;
    background: white;
    border-radius: 100%;
}

.login .oauth-component span {
    display: inline-block;
    color: white;
    font-size: 1em;
    margin-left: 12px;
}

.login .fields button {
    background: #1a73e8;
    color: white;
    width: 100%;
    height: 40px;
    box-shadow: 0px 0px 17px 0px rgb(0 0 0 / 13%);
    border-radius: 20px;
}

.login .password-recovery-wrapper a.btn-ghost.waves-effect.waves-light.back,
.login .password-recovery-wrapper a.btn-ghost.waves-effect.waves-light.cancel {
    height: 40px;
    border-radius: 20px;
    line-height: 40px;
}

.login .input-field input {
    border: 1px solid #efefef;
    border-radius: 4px !important;
    background: #f5f5f5;
    padding-left: 12px;
    width: calc(100% - 12px);
}

.login .input-field label.active {
    font-size: .9rem;
    transform: translateY(-164%);
}

.login .input-field input#password {
    margin-bottom: 20px;
}

.login .input-field label {
    margin-left: 12px !important;
}

.login h5.or-separator {
    width: 100%;
    text-align: center;
    border-bottom: 1px solid #e9e9e9;
    line-height: 0.1em;
    margin: 10px 0 20px;
    margin-top: 40px;
    margin-bottom: 20px !important;
}

.login h5.or-separator span {
    background: #fff;
    padding: 0 10px;
    font-size: 0.7em;
    color: #737373;
}

.login .secondary-actions .col {
    padding: 0px !important;
}

.login .secondary-actions .forgot-password {
    text-align: right;
}

.login .secondary-actions .remember-me label,
.login .secondary-actions .forgot-password a {
    color: rgba(0, 0, 0, 0.7) !important;
}

.login .secondary-actions .forgot-password a:hover {
    color: #1a73e8 !important;
}

.login .secondary-actions .remember-me {
    text-align: left;
}

.login #locales {
    position: fixed;
    top: 12px;
    right: 12px;
}

.login .page-links {
    margin-top: 40px;
    text-align: center;
    padding-left: 8px;
}

.login .page-links ul li a {
    color: #1a73e8;
    padding-right: 0px;
    margin-right: 16px;
    display: inline;
    padding-bottom: 4px;
    font-weight: 600;
}

.login .page-links ul li a:hover {
    border-bottom: 2px solid !important;
    text-align: center !important;
}

.login .page-links ul {
    display: inline-block !important;
    max-width: 136px;
    overflow: hidden;
    text-overflow: ellipsis;
    word-wrap: break-word;
    white-space: normal;
    vertical-align: top;
    text-align: left;
}

.circular-loader-wrapper {
    background-color: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: absolute;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.84);
    z-index: 999;
    text-align: center;
    top: 0;
    left: 0;
    display: none;
}

.logging-in .circular-loader-wrapper {
    display: block;
}

.circular-loader {
    display: inline-block;
    width: 60px;
    height: 60px;
    border: 5px solid #a3c8e6;
    border-radius: 50%;
    border-top-color: #00457c;
    animation: spin 1s ease-in-out infinite;
    -webkit-animation: spin 1s ease-in-out infinite;
    margin-top: 32px;
    margin-bottom: 24px;
}

.valign-wrapper {
    display: flex;
    align-items: center;
    height: 100%;
}

.circular-loader-container {
    width: 100%;
    padding-top: 0px;
}

.circular-loader-label {
    font-size: 1.4em;
    margin-top: -12px;
}

.reset-title,
.forgot-title {
    font-size: 1.8em;
    width: 100%;
    display: block;
    color: #505050;
}

.reset-description,
.forgot-description {
    font-size: 1.1em;
    color: grey;
    text-align: center;
    height: 100%;
    display: block;
    margin-top: 20px;
    padding-left: 12px;
}

ul.password-errors {
    background: #ffe1e1 !important;
    color: #f44336 !important;
    padding-top: 8px;
    padding-bottom: 8px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 12px;
}

ul.password-errors .error-icon {
    padding-left: 12px;
    padding-right: 12px;
    display: none !important;
}

ul.password-errors .error {
    line-height: 24px;
    list-style: circle;
    margin-left: 20px;
}


.copyright {
    display: block !important;
    text-align: center;
    color: #585858 !important;
}

.info {
    color: #1c79c3;
    background: #edf7ff;
    padding: 20px;
    font-size: 1em;
    margin-top: 32px;
    border-radius: 4px;
}

/** Error Login **/
.login #error-default {
    position: fixed;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 99;
    background: rgb(207 207 207 / 50%);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.login .error-default-container {
    background: #ffffff;
    width: 450px;
    padding-left: 20px;
    padding-right: 20px;
    height: auto;
    box-shadow: rgba(17, 12, 46, 0.15) 0px 48px 100px 0px;
    border-radius: 16px;
    text-align: center;
    margin: auto;
    padding-top: 12px;
    margin-top: 10%;
    min-height: 280px;
    padding-bottom: 20px;
}

.login .error-default-container i.material-icons {
    font-size: 4em;
    color: #686868;
    margin-top: 24px;
}

.login .error-default-container p {
    font-size: 1.2em;
    font-weight: 600;
    color: #4b4b4b;
    margin-bottom: 0px;
}

.login .error-default-container span {
    width: 100%;
    display: block;
}

.login .error-default-container a {
    right: 20px;
    text-align: center;
    width: 100px;
    padding-top: 8px;
    cursor: pointer;
    padding-bottom: 8px;
    display: block;
    margin: auto;
    margin-top: 20px;
    font-size: 1em;
    font-weight: 600;
    text-transform: capitalize !important;
    border-radius: 20px;
    color: #1a73e8 !important;
    background: #e7f1ff !important;
    border:none !important;
    min-width: 150px;
}

.login .error-default-container a:hover {
    box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px !important;
}

/** Password Rules **/
ul.password-rules li a {
    display: inline-block;
    width: 100%;
    text-align: left;
    color: #3e3e3ea3;
}

ul.password-rules i.left.material-icons {
    color: #cbcbcb;
}

label.password-rule-description {
    text-align: justify !important;
    display: block;
    color: #848484;
    margin-bottom: 12px;
    font-size: 1em;
    margin-top: 32px;
    border: none;
    background: #f7f7f7;
    padding: 12px;
    border-radius: 8px;
    margin-left: -16px;
    width: calc(100% + 32px);
}

ul.password-rules {
    padding: 20px;
    border-radius: 4px;
    border-bottom: 1px solid #e9e9e9;
    border-top: 1px solid #e9e9e9;
    margin-top: 32px;
}

.select-wrapper input.select-dropdown {
    position: relative;
    cursor: pointer;
    outline: 0;
    height: 3rem;
    line-height: 3rem;
    font-size: 1rem;
    margin: 0 0 15px 0;
    padding: 0;
    display: block;
    box-shadow: 0 2px 5px 0 rgb(0 0 0 / 16%), 0 2px 10px 0 rgb(0 0 0 / 12%) !important;
    border: none !important;
    width: 120px;
    background: white;
    padding-left: 60px;
}

.dropdown-content li > a, .dropdown-content li > span {
    color: black;
    font-size: 1em;
    padding-top: 8px;
    padding-bottom: 4px;
}

.dropdown-content li {
    border-bottom: 1px solid #e9e9e9;
    padding-left: 20px;
    min-height: 40px;
}

ul.dropdown-content {
    margin-top: 45px;
}

.select-wrapper input {
    font-size: 1.1em;
}

.locale-container {
    position: fixed;
    right: 20px;
    top: 14px;
}

.locale-container i {
    position: absolute !important;
    left: 29px !important;
    top: 11px !important;
    color: #858585 !important;
}

form .input-field {
    padding: 0px !important;
}

.select-wrapper span.caret {
    position: absolute;
    right: 10px;
    top: 12px;
    font-size: 12px;
    color: #707172 !important;
    width: 20px;
    z-index: 99;
}

button.btn-ghost[disabled] {
    background-color: #dfdfdf !important;
    box-shadow: none !important;
    -webkit-box-shadow: none;
    -moz-box-shadow: none;
    color: #9f9f9f !important;
    cursor: default !important;
    transition: none !important;
    pointer-events: none;
    border: none !important;
}

/** Support Page **/
.support .section {
    padding-top: 0px;
    border-radius: 12px;
    background: #FFFFFF;
    max-width: 800px;
    margin: auto;
    overflow: hidden;
    padding-bottom: 20px;
    margin-top: 0%;
    margin-bottom: 5%;
    text-align: left;
    padding-left: 20px !important;
    width: 100% !important;
}

.support .section .item {
    padding: 12px;
    border-top: 1px solid #e9e9e9;
    margin-bottom: 0px;
}

.support .section h2 {
    color: black;
    font-size: 2em;
    color: #333333;
    margin-top: 0px;
    margin-bottom: 20px;
    font-weight: 600;
    margin-left: 20px;
}

.support .section .header {
    display: flex;
    align-items: center;
    margin: 0px;
    padding-left: 12px;
}

.support .section .copyright {
    color: #484848 !important;
    font-weight: 600;
    margin-left: 4px;
}

.support .section .description {
    color: #484848;
    margin-top: 0px;
    font-weight: 600;
    padding-top: 0px;
    text-align: left;
    padding-bottom: 0px;
    margin-bottom: 0px;
    padding-left: 12px;
}

.support .section i {
    color: #1a73e8;
    margin-right: 15px;
    cursor: default !important;
}

.support .section .item .email,
.support .section .item .phone {
    color: rgba(0, 0, 0, 0.87) !important;
}

.support .section .close {
    color: black;
    position: absolute;
    top: -16px;
    right: 0px;
}


.support .section .col.s4 span {
    font-weight: 600;
}

/** Mobile & Tablet **/
@media screen and (max-width: 900px) {
    .login {
        background: transparent;
        padding: 0px;
    }

    .support-wrapper {
        display: block;
        margin-top: 38px;
    }

    .circular-loader-wrapper img {
        width: 100% !important;
    }

    .banner {
        display: none !important;
    }

    .login-wrapper, .support-wrapper, .password-recovery-wrapper {
        width: 100% !important;
        box-shadow: none !important;
        padding: 0px !important;
    }

    .login .error-default-container {
        width: 354px !important;
    }

    .support .section {
        width: 100% !important;
        max-width: 100% !important;
        padding-right: 20px !important;
        padding: 0px !important;
    }

    .support {
        background: #FFFFFF !important;
    }
}

/** Mobile Media Query **/
@media screen and (max-width: 600px) {
    .login .fields {
        width: 80% !important;
    }

    .password-recovery-wrapper .fields .fields {
        width: 100% !important;
    }

    .support .section {
        max-width: 100% !important;
    }

    .locale-container {
        position: fixed;
        right: -2px !important;
        top: -14px !important;
        z-index: 998 !important;
        transform: scale(0.8);
        transform-origin: right;
    }

    .select-wrapper input.select-dropdown {
        box-shadow: none !important;
        border: 1px solid #e9e9e9 !important;
    }

}

@media screen and (max-width: 1024px) {
    .support .section .item .col .days,
    .support .section .item .col .time {
        height: 40px !important;
    }
}

.browser_not_supported {
    display: none;
    position: absolute;
    background-color: #f44336;
    color: white;
    top: 0;
    width: 100%;
    height: 60px;
    padding: 15px;
    text-align: center;
    font-size: 1.1em;
    font-weight: 600;
}

.splash-page {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    background: #00457c;
}

.splash-page img {
    height: auto !important;
    width: 300px !important;
    filter: brightness(0) invert(1);
}

.authenticators a.disabled {
    pointer-events: none;
}

.authenticators a.disabled .lds-ring {
    display: inline-block;
}

.login .disabled .oauth-component {
    background-color: #c5c5c5 !important;
    box-shadow: none;
}

.authenticators a.disabled img {
    opacity: 0;
}

.lds-ring {
    display: none;
    position: absolute;
    width: 32px;
    height: 32px;
    margin-left: -4px;
    top: 6px;
}

.lds-ring div {
    box-sizing: border-box;
    display: block;
    position: absolute;
    width: 32px;
    height: 32px;
    margin: 4px;
    border: 4px solid #fff;
    border-radius: 50%;
    animation: lds-ring 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    border-color: #fff transparent transparent transparent;
}

.lds-ring div:nth-child(1) {
    animation-delay: -0.45s;
}

.lds-ring div:nth-child(2) {
    animation-delay: -0.3s;
}

.lds-ring div:nth-child(3) {
    animation-delay: -0.15s;
}

@keyframes lds-ring {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

@media only screen and (min-width: 1024px) and (max-width: 1366px) {
    .login-wrapper,
    .support-wrapper,
    .password-recovery-wrapper {
        width: 900px !important;
    }

    .login .fields {
        margin-top: -66px;
        padding: 16px;
    }

    .login .fields.oauth-only {
        margin-top: 0px;
    }

    .login-wrapper,
    .support-wrapper,
    .password-recovery-wrapper,
    .password-recovery-wrapper .success-overlay {
        max-height: 160px !important;
    }

    .login-wrapper iframe,
    .support-wrapper iframe,
    .password-recovery-wrapper iframe {
        width: 360px !important;
    }

    .login .page-links {
        margin-top: 0px !important;
    }

    .support .section .copyright {
        margin-top: 8px !important;
        float: left;
    }

    .locale-container {
        top: 0px !important;
    }

    .support .copyright.grey-text {
        margin-top: -20px !important;
    }

    .mfa-wrapper,
    .login,
    .support {
        margin-top: 28px !important;
    }

    .support .section .header {
        display: ruby-text !important;
        font-size: 0.9em !important;
    }

    .support .header .copyright {
        margin-bottom: -30px !important;
    }

}

/* Dark mode styles based on user preference */
@media (prefers-color-scheme: dark) {
    body {
        background: #1e1e1e !important;
        color: #ffffff;
    }

    a {
        color: #40c0ff
    }

    .input-field label {
        color: #c1c1c1;
    }

    input:not([type]):focus:not([readonly]) + label, input[type=text]:focus:not([readonly]) + label, input[type=password]:focus:not([readonly]) + label, input[type=email]:focus:not([readonly]) + label, input[type=url]:focus:not([readonly]) + label, input[type=time]:focus:not([readonly]) + label, input[type=date]:focus:not([readonly]) + label, input[type=datetime-local]:focus:not([readonly]) + label, input[type=tel]:focus:not([readonly]) + label, input[type=number]:focus:not([readonly]) + label, input[type=search]:focus:not([readonly]) + label, textarea.materialize-textarea:focus:not([readonly]) + label {
        color: #97c4ff;
    }

    .login .secondary-actions .forgot-password a:hover {
        color: #82b8ff !important;
    }

    .login .error-default-container a {
        color: white !important;
        background: #008eff47 !important;
    }

    .login .error-default-container a:hover {
        box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px !important;
        background: rgb(17 112 196 / 67%) !important;
    }

    .login .error-default-container {
        background: #383838 !important;
    }

    .login .error-default-container p {
        color: white !important;
    }

    .login-wrapper,
    .support-wrapper,
    .password-recovery-wrapper,
    .password-recovery-wrapper .success-overlay {
        background: #292929 !important;
        box-shadow: none;
    }

    .info {
        background: #3d8fe07d !important;
        color: #fff !important;
    }

    .copyright {
        color: #b5b5b5 !important;
    }

    ul.password-errors {
        color: #FFBDB8 !important;
        background: #ff3c2a63 !important;
    }

    .password-recovery-wrapper button.btn-ghost[disabled] {
        background: #77777736 !important;
    }

    input:-webkit-autofill,
    textarea:-webkit-autofill,
    .login .input-field input:focus,
    input:-webkit-autofill:focus:not([readonly]),
    .login .input-field input {
        border: none !important;
        border-bottom: 2px solid #545454 !important;
        -webkit-box-shadow: 0 0 0px 1000px #323232 inset;
        -webkit-text-fill-color: white;
        font-size: 16px;
        transition: background-color 5000s ease-in-out 0s;
        border-radius: 0px !important;
        caret-color: white;
    }

    .support .section h2,
    .support .section .close {
        color: #4bafff !important;
    }

    .login .secondary-actions .remember-me label, .login .secondary-actions .forgot-password a {
        color: #aaaaaa !important;
    }

    .banner {
        background: #1a3c59;
    }

    .select-wrapper input.select-dropdown {
        background: #323232 !important;
        border: none !important;
        border-bottom: 2px solid #545454 !important;
    }

    .dropdown-content li {
        color: white !important;
        background: #323232 !important;
        border-bottom: 1px solid #464646;
    }

    ul.dropdown-content {
        background: #323232 !important;
        color: white !important;
    }

    .login .page-links ul li a {
        color: #82b8ff !important;
    }

    .dropdown-content li:hover {
        background: #323232 !important;
    }

    .dropdown-content li > span {
        color: white !important;
    }

    .login h5.or-separator {
        border-bottom: 1px solid #383838;
    }

    /** Forgot Reset **/
    .reset-title, .forgot-title {
        color: #ffffff;
    }

    .login h5.or-separator span {
        color: #ffffff;
        background: #292929;
    }

    /** Support **/
    .support .section {
        background: #292929;
        border: #4c4c4ce9;
    }

    .support .section .item {
        border-top: 1px solid #4c4c4ce9;
        color: #ffffff;
    }

    .support .section .description,
    .support .section .copyright {
        color: #c0c0c0 !important;
    }

    .support .section .item .email, .support .section .item .phone {
        color: #ffffff !important;
    }

    .circular-loader-wrapper {
        background-color: rgb(35 35 35 / 60%) !important;
    }

    button.disabled {
        background: #646464 !important;
    }

    .brand-logo {
        filter: brightness(1.5);
    }

    ul.password-rules a {
        color: white !important
    }

    label.password-rule-description {
        background: #292929;
    }

    ul.password-rules {
        border-bottom: 1px solid #292929;
        border-top: 1px solid #292929;
    }

    .success-overlay.open {
        background: #1e1e1e !important;
    }
}

/** Mobile and Tablet Dark mode **/
@media (prefers-color-scheme: dark) and (max-width: 900px) {

    .support,
    .support .section,
    .login h5.or-separator span,
    .login-wrapper, .support-wrapper, .password-recovery-wrapper, .password-recovery-wrapper .success-overlay {
        background: #1e1e1e !important;
    }


}