/**
 * Copyright © 2022 Dell Inc. or its subsidiaries. All Rights Reserved.
 */

/*
Overwrite parent=base theme
*/
body {
    width: 100%;
    height: calc(100vh);    
    overflow: auto;
} 

div#kc-header {    
    display: none;
}

h1#kc-page-title {    
    background-color: var(--dds-color-brand-blue);
    width: 100%;
    height: 400px;
    color: var(--dds-color-white);
}

.title-text {
    font-size: var(--dds-font-size-medium);;
    margin-bottom: var(--dds-space-medium);
}

.sub-title {
    margin-bottom: var(--dds-space-x-large);
}

.app-login-header {
    width: 100%;
    height: 400px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    text-align: center;
    justify-content: space-around;
}

.overlay-cloud-image {
            padding-top: 3rem;
            position: relative;
            display: block;
            left: 0;
            /* width: 102px; */
            height: 104px;
            object-fit: cover;
            /* Adjusts the image to cover the entire parent div */
        }

.app-logo {
    padding-top: 6rem;
    font-size: 3rem;
    font-weight: 400;
    /* height: 12rem; */
    line-height: 3rem;
}

.app-desc {
    padding-bottom: var(--dds-space-x-large);
}

.app-login-title {
    margin-top: var(--dds-space-large);
    margin-bottom: var(--dds-space-xxxx-large);
    font-style: normal;
    font-weight: normal;
    font-size: 28px;
    line-height: 64px;    
}

.app-login-copy-right {
    font-style: normal;
    font-weight: 300;
    font-size: var(--dds-font-size-x-small);
    line-height: 25px;    
}

div#kc-form, form#kc-update-profile-form {
    width: 320px;
    margin: var(--dds-space-xx-large) auto 0;
    color: var(--dds-color-carbon-darkest);
    display: flex;
    flex-direction: column;
    font-style: normal;
    font-weight: normal;
    font-size: var(--dds-font-size-small);
}

div#kc-form.update-password-form {
    margin: var(--dds-space-xx-large);
}


form#kc-form-login, form#kc-reset-password-form, form#kc-passwd-update-form, form#kc-update-profile-form {
    display: flex;
    flex-direction: column; 
}

form#kc-form-login #kc-social-providers li a span {
    justify-content: center;
    margin-bottom: var(--dds-space-medium);
}

form#kc-reset-password-form .mdc-button {
    margin-bottom: var(--dds-space-medium);
}

form#kc-reset-password-form .mdc-button:disabled {
    background-color: var(--edf-color-gray-lighter)!important;
    color: var(--edf-color-gray-darkest)!important;
    cursor: no-drop;
}

#kc-form.reset-password-sent-mode {
    width: fit-content;
}

#kc-form.reset-password-sent-mode #reset-password-statement .confirm-msg-failed {
    display: none;
}

#kc-form.reset-password-sent-mode.failed #reset-password-statement .confirm-msg-success{
    display: none;
}

#kc-form.reset-password-sent-mode #reset-password-statement .confirm-msg-success .ldap-user-msg {
    display: none;
}

#kc-form.reset-password-sent-mode.ldap #reset-password-statement .confirm-msg-success .ldap-user-msg {
    display: block;
}

#kc-form.reset-password-sent-mode.ldap #reset-password-statement .confirm-msg-success .local-user-msg {
    display: none;
}

#kc-form.reset-password-sent-mode.ldap #reset-password-statement .confirm-msg-success .check-mail-sub-msg {
    display: none;
}

#kc-form.reset-password-sent-mode.failed #reset-password-statement .confirm-msg-failed{
    display: block;
}

#reset-password-statement {
    display: none;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

#reset-password-statement .back-to-login-btn {
    margin-right: auto;
    margin-bottom: var(--dds-space-x-large);
}

#kc-form.reset-password-sent-mode #reset-password-statement {
    display: flex;
}
#kc-form.reset-password-sent-mode #reset-password-form {
    display: none;
}

#reset-password-statement .check-mail-msg {
    font-size: var(--dds-font-size-medium);
    margin-bottom: var(--dds-space-x-large);
    font-weight: var(--dds-font-weight-semi-bold);
}

#reset-password-statement .check-mail-sub-msg {
    margin-bottom: var(--dds-space-x-large);
}

form#kc-form-login, form#kc-update-profile-form label {
    line-height: 25px;
}

.link-btn {
    border: none;
    background-color: transparent;
    color: var(--dds-color-brand-blue);
    cursor: pointer;
}

.link-btn:disabled {
    color: var(--edf-color-gray-darkest)!important;
    cursor: no-drop;
}

form#kc-form-login input[type=text], form#kc-update-profile-form input:is([type=text],[type=email]) {
    width: 100%;
    border: 1px solid var(--dds-color-carbon-lighter);
    padding: var(--dds-space-x-small) var(--dds-space-x-large) var(--dds-space-x-small) var(--dds-space-x-small);
    margin-bottom: var(--dds-space-x-small);
    box-sizing: border-box;
}

form#kc-form-login input[type=text]:focus, form#kc-update-profile-form input[type=text]:focus {
    border: 1px solid var(--dds-color-brand-blue);
    outline: 1px solid var(--dds-color-brand-blue);
}

form#kc-form-login input[type=text]:focus-visible, form#kc-update-profile-form input[type=text]:focus-visible {
    border: 1px solid var(--dds-color-brand-blue);
    outline: 1px solid var(--dds-color-brand-blue);
}

form#kc-form-login input[type=password], form#kc-update-profile-form input[type=password] {
    width: 100%;
    border: 1px solid var(--dds-color-carbon-lighter);
    padding: var(--dds-space-x-small) var(--dds-space-x-large) var(--dds-space-x-small) var(--dds-space-x-small);
    box-sizing: border-box;
}

form#kc-form-login input[type=password]:focus {
    border: 1px solid var(--dds-color-brand-blue);
    outline: 1px solid var(--dds-color-brand-blue);
}

form#kc-form-login input[type=password]:focus-visible {
    border: 1px solid var(--dds-color-brand-blue);
    outline: 1px solid var(--dds-color-brand-blue);
}

form#kc-form-login span, form#kc-update-profile-form span {
    display: flex;
    /* justify-content: flex-end; */
    margin-bottom: var(--dds-space-xxx-large);
    margin-top: var(--dds-space-medium);
}

div#kc-form-buttons {
    display: flex;
    width: 100%;
    justify-content: center;
}    

form#kc-update-profile-form input[type=submit], form#kc-form-login input[type=submit], form#kc-u2f-login-form .verify-wrapper input{
    background-color: var(--dds-color-brand-blue);
    border: none;
    color: var(--dds-color-white);
    font-size: var(--dds-font-size-small);
    height: 40px;
    width: 86px;
    cursor: pointer;
    transition: all 0.4s ease-in-out;
}

form#kc-form-login input[type=submit]:disabled {
    background-color: var(--edf-color-gray-lighter)!important;
    color: var(--edf-color-gray-darkest)!important;
    border: none!important;
}

form#kc-u2f-login-form .verify-wrapper input:disabled {
    background-color: var(--edf-color-gray-lighter)!important;
    color: var(--edf-color-gray-darkest)!important;
    border: none!important;
}

input[type=submit]:hover {
    filter: brightness(1.1);
    transition: all 0.4s ease-in-out;
}

.alert-success.pf-m-success {
    padding-top: var(--dds-space-small);
    text-align: center;
    color: var(--dds-color-carbon-darkest);
    font-size: var(--dds-font-size-small);
}

.alert-error {
    padding-top: var(--dds-space-small);
    padding-bottom: var(--dds-space-small);
    text-align: center;
    color: var(--dds-color-carbon-darkest);
    font-size: var(--dds-font-size-small);
    border: 1px solid #D0021B;
    background-color: var(--dds-color-danger-lightest);
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert-warning {
    padding-top: var(--dds-space-small);
    padding-bottom: var(--dds-space-small);
    text-align: center;
    color: var(--dds-color-carbon-darkest);
    font-size: var(--dds-font-size-small);
    display: flex;
    justify-content: center;
    align-items: center;
}

.alert-error span {
    /*margin-left: var(--dds-space-small);*/
}

.alert-error:not(.show-org-alerts) span {
    margin-left: var(--dds-space-small);
    display: none;
}

.alert-error .pf-c-alert__icon:after  {
    display: block;
    content: "";
    background-size: 20px 20px;
    height: 20px;
    width: 20px;
    background-image: url('status-critical-square-solid.svg');
    margin-right: var(--dds-space-small);
}

.alert-error:not(.show-org-alerts):after {
    content: '\a0The username or password you entered is incorrect. Please try again.';
}

form#kc-reset-password-form label {
    line-height: 25px;
}

form#kc-reset-password-form input[type=email] {
    width: 100%;
    border: 1px solid var(--dds-color-carbon-lighter);
    padding: var(--dds-space-x-small);
    margin-bottom: var(--dds-space-x-small);
}

form#kc-reset-password-form input[type=email]:focus {
    border: 1px solid var(--dds-color-brand-blue);
    outline: 1px solid var(--dds-color-brand-blue);
}

form#kc-reset-password-form input[type=email]:focus-visible {
    border: 1px solid var(--dds-color-brand-blue);
    outline: 1px solid var(--dds-color-brand-blue);
}

div#kc-form-options span button {
    border: none;
    background-color: transparent;
    color: var(--dds-color-brand-blue);
    cursor: pointer;
}

div#kc-form-buttons button {
    background-color: var(--dds-color-brand-blue);
    border: none;
    color: var(--dds-color-white);
    font-size: var(--dds-font-size-small);
    height: 40px;
    cursor: pointer;
    padding: var(--dds-space-medium);
}

div#kc-error-message {
    text-align: center;
    transform: translateY(50%);
}

div#kc-info-message {
    text-align: center;
    transform: translateY(50%);
}

form#kc-passwd-update-form label {
    line-height: 25px;
}

form#kc-passwd-update-form input {
    width: 100%;
    border: 1px solid var(--dds-color-carbon-lighter);
    padding: var(--dds-space-x-small);
    margin-bottom: var(--dds-space-x-small);
}

form#kc-passwd-update-form input:focus {
    border: 1px solid var(--dds-color-brand-blue);
    outline: 1px solid var(--dds-color-brand-blue);
}

form#kc-passwd-update-form input:focus-visible {
    border: 1px solid var(--dds-color-brand-blue);
    outline: 1px solid var(--dds-color-brand-blue);
}

form#kc-passwd-update-form input[type=submit] {
    background-color: var(--dds-color-brand-blue);
    border: none;
    color: var(--dds-color-white);
    font-size: var(--dds-font-size-small);
    height: 40px;
    width: 86px;
}

span#input-error-password-confirm:before {    
    display: flex;
    content: "";
    background-size: 20px 20px;
    height: 20px;
    width: 20px;
    background-image: url('status-critical-square-solid.svg');
    margin-right: var(--dds-space-x-small);
}

span#input-error-password-confirm {
    display: flex;
    align-items: center;
}

#update-password-form {
    display: flex;justify-content: center; padding-right: var(--dds-space-xxxx-large);
}

.info-box {
    display: none;
    position: relative;
    width: 360px;
    margin: var(--dds-space-xx-large);
    margin-right: var(--dds-space-xxxx-large);
}

.info-box-list {
    list-style: inside;
    padding: 0 1.75rem;
    color: #555;
}

.info-box-list li {
    color: #555;
    display: none;
}

.info-box-list li.valid {
    color: #555;
}

.info-box-list li.invalid {
    color: #ce1126;
}

.info-box-content {
    line-height: 2;
    cursor: initial;
    text-align: left;
    display: flex;
    flex-direction: column;
    font-size: 0.875rem;
    box-shadow: 0 2px 20px 0 rgba(0, 0, 0, 0.2);
    margin-bottom: 1.25rem;
    background-color: #e7f2fb;
    padding: 1rem 0.25rem;
    border: 1px solid #0076ce;
    border-left: 0.25rem solid #0076ce;
}

.info-box-header {
    display: flex;
}

.info-box-title {
    display: flex;
    font-size: 1rem;
    margin: -7px 0 0.75rem;
}

.info-box-icon {
    margin: 0 0.25rem 0 1.75rem;
}

.change-password-btn {
    border: none;
    cursor: pointer;
    font-size: 0.875rem;
    text-decoration: none !important;
    background: #fff;
    color: #555 !important;
    transition: all ease-in-out 500ms;
    padding: 1.25rem 2rem;
    border-bottom: 0.125rem solid #ddd;
}

.change-password-btn:hover {
    background: #f7f7f7;
    color: #0076ce !important;
    transition: all ease-in-out 500ms;
}

#changePasswordForm {
    display: table-caption;
}

#error-confirm-pass-not-match {
    color: #ce1126;
    visibility: hidden;
}

.update-pass-submit-btn:disabled {
    background-color: var(--edf-color-gray-lighter)!important;
    color: var(--edf-color-gray-darkest)!important;
}

.email-code-form-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.email-code-form-content {
    padding-top: var(--dds-space-xxxx-large);
}

.email-code-form-content form#kc-u2f-login-form {
    padding-top: var(--dds-space-xxxx-large);

}

.email-code-form-content form#kc-u2f-login-form .email label {
    display: block;
}

.email-code-form-content form#kc-u2f-login-form .email input {
    margin-top: var(--dds-space-x-small);
    padding: var(--dds-space-xx-small);
    display: block;
    width: 100%;
}

.email-code-form-content form#kc-u2f-login-form .back-to-login {
    margin-top: var(--dds-space-x-small);
}

.email-code-form-content form#kc-u2f-login-form .verify-wrapper {
    display: flex;
    justify-content: center;
}
.email-code-form-content form#kc-u2f-login-form .verify-wrapper input{
    margin-top: var(--dds-space-x-large);
    width: auto;
    padding: var(--dds-space-x-small) var(--dds-space-medium);
}

.email-code-form-content form#kc-u2f-login-form input[type=submit].resend {
    margin-left: var(--dds-space-x-small);
    background-color: transparent;
    color: var(--edf-color-brand-blue);
    border: 1px solid var(--edf-color-brand-blue);
}

.email-code-form-content .check-mail-msg {
    color: var(--dds-color-carbon-darkest);
}

div.password-wrapper {
    position: relative;
    display: inline-block;
    width: 100%;
}

div.password-wrapper input {
    margin-bottom: var(--dds-space-x-small);
}

div.password-wrapper input::-ms-reveal {
    display: none;
}

div.password-wrapper span#password-toggle, div.password-wrapper span.password-toggle {
    position: absolute;
    right: 5px;
    top: 45%;
    transform: translateY(-50%);
    z-index: 100;
    margin: 0;
    display: block;
    width: 1.3em;
    height: 1.3em;
}

div.password-wrapper span.password-toggle {
    top: 1.2em
}

svg.hidden {
    display: none!important;
}

div.password-wrapper span#password-toggle svg, div.password-wrapper span.password-toggle svg {
    background-color: white;
    display: block;
    width: 100%;
    height: 100%;
}
