body {
    background-color: #f7f7f7;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    line-height: 1.42857143;
    color: #2a2f32;
    margin: 0;
    text-align: center;
    position: relative;
    min-height: calc(100vh - 60px);
}

.main-logo {
    background-image: url("../img/sf-logo.png");
    background-repeat: no-repeat;
    background-size: cover;
    height: 100%;
    width: 100%;
}

.logo-holder {
    width: 540px;
    height: 131.36px;
    margin: 60px auto 100px;
}

#kc-header {
    width: 100%;
    margin: 60px auto 40px;
}

#kc-header-wrapper {
    display: none;
}

#kc-content {
    margin: 0 auto 50px;
    width: 570px;
}

#kc-content::after {
    content: '';
    display: block;
    height: 70px;
}

#kc-page-title {
    text-transform: uppercase;
    font-size: 20px;
    letter-spacing: 1px;
    font-weight: 300;
    margin: 40px 0;
    font-variant-caps: titling-caps;
}

#kc-form form input:not([type=checkbox]):not([type=radio]),
#kc-passwd-update-form input:not([type=checkbox]):not([type=radio]),
#kc-otp-login-form input:not([type=checkbox]):not([type=radio]) {
    box-sizing: border-box;
    height: 46px;
    width: 100%;
    padding: 10px 16px;
    font-size: 18px;
    line-height: 1.33;
    border-radius: 6px;
    margin-bottom: 15px;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    font-family: inherit;
}

#kc-form form input:read-only {
    background-color: #ddd;
}

#kc-form form input:focus, #kc-passwd-update-form input:focus, #kc-otp-login-form input:focus {
    border-color: #66afe9;
    outline: 0;
    -webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.6);
    box-shadow: inset 0 1px 1px rgba(0, 0, 0, .075), 0 0 8px rgba(102, 175, 233, 0.6);
}

body:not([data-page-id="login-login-username"]) #kc-form-options {
    margin: 14px 0;
}

input[type=password], input[type=text] {
    padding-right: 30px !important;
}

.btn {
    -webkit-transition: background-color .1s linear 0s;
    -moz-transition: background-color .1s linear 0s;
    -ms-transition: background-color .1s linear 0s;
    -o-transition: background-color .1s linear 0s;
    transition: background-color .1s linear 0s;
}

.btn-primary {
    color: #fff !important;
    background-color: #00a1e0 !important;
    border-color: #08496f !important;
    text-transform: uppercase;
}

.btn-primary:hover {
    color: #fff !important;
    background-color: #0e75b2 !important;
    border-color: #08496f !important;
    cursor: pointer;
}

.btn-primary:focus {
    color: #fff !important;
    background-color: #0e75b2 !important;
    border-color: #08496f !important;
}

.btn-default {
    color: #457d78 !important;
    background-color: #fff !important;
    border-color: #488378 !important;
    text-transform: uppercase;
}

.btn-default:hover {
    color: #457d78 !important;
    background-color: #e6e6e6 !important;
    border-color: #325b54 !important;
    cursor: pointer;
}

.btn-default:focus {
    color: #fff !important;
    background-color: #e6e6e6 !important;
    border-color: #325b54 !important;
}

.footer {
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 70px;
    box-sizing: border-box;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, .1);
    background-color: rgba(0, 0, 0, .04);
    padding: 10px;
}

.footer p {
    margin: 0 0 10px 0;
}

.text-muted {
    color: #777;
}

a {
    color: #457d78;
    text-decoration: none;
}

a:hover, a:focus {
    color: #777;
    text-decoration: underline;
}

.am-select {
    display: block;
    width: 100%;
    height: 34px;
    padding: 6px 12px;
    font-size: 14px;
    color: #555;
    background-color: #fff;
    background-image: none;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-bottom: 15px;
}

.alert-warning {
    margin: 15px 0;
}

/*hide unwanted elements/text*/

hr {
    display: none;
}

#kc-social-providers h4 {
    display: none;
}

#kc-social-providers ul {
    padding: 0;
}

#kc-select-try-another-way-form {
    display: none;
}

.btn-password-visibility {
    display: none;
}

[data-page-id="login-am-prompt-account-link"] #kc-username { /* optional SSO linking page: username and restart login link */
    display: none;
}

div[class="checkbox"]:has(input[type="checkbox"][id="logout-sessions"]) {
    display: none;
}

[data-page-id="login-login-password"] #kc-page-title { /* additional text on password page */
    display: none;
}

/* change SF-IDM text */

#social-sf-idm span {
    display: none;
}

#social-sf-idm:after {
    content: 'Link for Single Sign-On';
}


/* additional links should be below login button */

#kc-form-login {
    display: flex;
    flex-direction: column;
}

#kc-form-buttons {
    order: 2;
}

div:has(#kc-form-options) {
    order: 3;
}

#kc-error-message p.instruction, div.alert-error, #input-error, #input-error-otp-code {
    color: #a94442 !important;
    background-color: #f2dede !important;
    border-color: #ebccd1 !important;
}

#kc-error-message p.instruction::before, div.alert-error > span:last-of-type::before, #input-error::before, #input-error-otp-code:before {
    font: normal normal normal 14px FontAwesome;
    content: "\f06a";
    display: inline-block;
    margin-right: 10px;
}

p.instruction, div.alert-info, div.alert-warning, div.alert-error, #input-error, #input-error-otp-code {
    color: #31708f;
    background-color: #d9edf7;
    border-color: #bce8f1;
    padding: 10px 10px;
    border-radius: 5px;
    margin-bottom: 15px;
    display: block;
}

p.instruction::before, div.alert-info > span:last-of-type::before, div.alert-warning > span:last-of-type::before {
    font: normal normal normal 14px FontAwesome;
    content: "\f05a";
    display: inline-block;
    margin-right: 10px;
}

.otp-credential-label {
    background-color: #fff;
    box-sizing: border-box;
    cursor: pointer;
    display: inline-grid;
    grid-template-rows: 25px;
    height: 110px;
    max-width: 100%;
    padding: 10px;
    margin: 10px;
    position: relative;
    text-align: center;
    border-radius: 6px;
    border: 1px solid #ccc;
    transition: transform 0.2s ease-in-out;
}

.otp-credential-label:hover {
    border: 1px solid #00a1e0;
    background-color: #f8fbff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 161, 224, 0.15);
}

.otp-credential-input {
    display: none;
}

.otp-credential-input:checked + .otp-credential-label {
    background-color: #e6f3ff;
    border: 2px solid #00a1e0;
    box-shadow: 0 0 8px rgba(0, 161, 224, 0.3);
}

.otp-credential-icon {
    display: block;
    font-size: 50px;
}

#kc-username {
    margin-bottom: 10px;
}

#kc-attempted-username {
    font-size: 20px;
    font-family: inherit;
    font-weight: normal;
    padding-right: 10px;
}

.kc-login-tooltip {
    font-size: 20px;
    position: relative;
    display: inline-block;
}

.kc-login-tooltip .kc-tooltip-text {
    font-size: 14px;
    top: -3px;
    left: 160%;
    background-color: black;
    visibility: hidden;
    color: #fff;

    min-width: 130px;
    text-align: center;
    border-radius: 2px;
    box-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    padding: 5px;

    position: absolute;
    opacity: 0;
    transition: opacity 0.5s;
}

.kc-login-tooltip:hover .kc-tooltip-text {
    visibility: visible;
    opacity: 0.7;
}

.kc-login-tooltip .kc-tooltip-text::after {
    content: " ";
    position: absolute;
    top: 15px;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent black transparent transparent;
}
