@import "buttons.css";
:after,
:before {
    box-sizing: border-box;
}

html {
    font-family: "Source Sans Pro", sans-serif;
    font-weight: 400;
    color: #1A1D20;
    -webkit-font-smoothing: antialiased;
    min-height: 100%;
    display: flex;
    flex-direction: row;
    font-size: 0.875rem;
}

* {
    margin: 0;
    padding: 0;
    border-width: 0;
    font-size: 1rem;
    line-height: normal;
    box-sizing: border-box
}

html, body {
    padding: 0;
    margin: 0;
}

body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
    flex-grow: 1;
    /*padding: 0 2.5rem 3.375rem 2.5rem;*/
    padding-top: 2.5rem;
}

button:active,
input:active,
a:active {
    outline: solid 0.188rem #89c3ff !important;
}


:focus-visible,
/* focus-visible wins: */
button:active:focus-visible,
input:active:focus-visible,
a:active:focus-visible {
    outline: solid 0.188rem #ED7102 !important;
}

.content {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.footer-wrapper {
    width: 100%;
}


/* show KIDICAP Logo instead of Realm Name Text */
#kc-header-wrapper {
    display: none;
}

#kc-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 3rem;
    flex-direction: column;
    padding: 1rem 1rem 0 1rem;
}

#kc-header picture {
    padding-left: 4.625rem;
    margin-top: 0.75rem;
}

#kc-locale {
    align-self: end;
}

#kc-locale ul {
    display: none;
    list-style: none;
}

#kc-locale-dropdown {
    position: relative;
    display: inline-block;
}

header {
    margin-bottom: 2rem;
}

header h1 {
    color: #1E232D;
    font-size: 2rem;
    font-style: normal;
    font-weight: 400;
    line-height: 3rem;
}

header .note {
    display: block;
    padding-top: .5rem;
}

header .note b {
  font-weight: 600;
}

.login-container {
    border-radius: 0.125rem;
    background-color: rgba(255, 255, 255, 0.89);

    position: relative;

    width: 100%;
    max-width: 38.438rem;
}

.login-card {
    padding: 0 5.625rem 5rem 5.625rem;
}

label,
.form-horizontal .control-label {
    color: #666A6E;
    margin-bottom: 0.25rem;
    display: inline-block;
}

input[type="text"],
input[type="password"],
input[type="checkbox"],
textarea,
select {
    border: 0.063rem solid #babdc0;
    border-radius: 0.25rem;
    padding: 0.375rem 0.5rem;
    width: 100%;
    min-height: 2.3rem;
}

input[aria-invalid="true"] {
    background-image: url('data:image/svg+xml;charset=UTF-8, <svg fill="%23D2001E" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512"><!--!Font Awesome Free 6.5.2 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2024 Fonticons, Inc.--><path d="M256 48a208 208 0 1 1 0 416 208 208 0 1 1 0-416zm0 464A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM175 175c-9.4 9.4-9.4 24.6 0 33.9l47 47-47 47c-9.4 9.4-9.4 24.6 0 33.9s24.6 9.4 33.9 0l47-47 47 47c9.4 9.4 24.6 9.4 33.9 0s9.4-24.6 0-33.9l-47-47 47-47c9.4-9.4 9.4-24.6 0-33.9s-24.6-9.4-33.9 0l-47 47-47-47c-9.4-9.4-24.6-9.4-33.9 0z"/></svg>');
    background-size: auto 60%;
    background-repeat: no-repeat;
    background-position: 98% center;
    padding-right: 2rem;
}

.error-message {
    padding: 0.5rem 0.375rem 0.5rem 0.625rem;
    border-left: 0.25rem solid #D2001E;
    background-color: #FFEFF1;
    display: flex;
    gap: 0.5rem;
    border-radius: 0.25rem;
    align-items: flex-start;
}

.error-message:before {
    content: "\f057";
    font-family: 'Font Awesome 6 Pro';
    font-style: normal;
    color: #D2001E;
    padding-top: 0.25rem;
}

input[type="checkbox"] {
    width: auto;
    min-height: auto;
}

.form-group {
    margin-bottom: 0.5rem;
}

.password-group {
    position: relative;
    border-radius: 0.25rem;
    border: 0.063rem solid #babdc0;
    display: flex;
}

.password-group input {
    border: none;
    border-radius: 0.25rem 0 0 0.25rem;
    flex-grow: 1;
}

.password-group input:focus-visible {
    z-index: 5;
}

.password-visibility-button {
    border-radius: 0 0.25rem 0.25rem 0;
    padding: 0.375rem 0.5rem;
    background-color: #fff;

    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: center;
    width: 2.5rem;
    margin: 0;
    border: 1px solid transparent;

    -moz-transition: border .3s;
    -o-transition: border .3s;
    -webkit-transition: border .3s;
    transition: border .3s;
}

.password-visibility-button:focus-visible {
    z-index: 5;
}

.password-visibility-button i:before {
    font-size: 1rem;
    color: #666A6E;
    -moz-transition: color .3s;
    -o-transition: color .3s;
    -webkit-transition: color .3s;
    transition: color .3s;
}

.password-visibility-button:hover {
    cursor: pointer;
    background-color: #fff;
    border-color: #0246A1;
}

.password-visibility-button:hover i:before {
    color: #0246A1;
}

.login-pf-settings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.login-pf-settings > div {
    padding: 0.375rem 0;
}

.checkbox label,
input[type="checkbox"] + label {
    display: inline-flex;
    gap: 0.5rem;
    margin-bottom: 0;
    color: #1A1D20;
    align-items: center;
}

input[type="checkbox"] + label {
    margin-left: 0.3rem;
}

label:hover {
    cursor: pointer;
}

#kc-form-buttons {
    margin-top: 2rem;
    width: 100%;
}

#kc-info {
    margin-bottom: 2rem;
}

a {
    color: #0071DA;
    text-decoration: none;
}

a:hover {
    color: #003C8C;
    text-decoration: none;
}

a:active {
    color: #1A1D20;
}

a.disabled {
    pointer-events: none;
    cursor: default;
    color: #999DA1;
}



/*-- MESSAGES / ERRORS START --*/

/* INFO */
#kc-info,
.alert-info,
.alert-error,
.alert-warning,
.alert-success,
.recovery-codes-warning {
    margin: 0 0 1rem 0;
    border: 0.063rem solid #33B5E5;
    border-left: 0.188rem solid #33B5E5;
    background-color: #f5faff;
    padding: 1rem 2rem 1rem 1rem;
    display: flex;
    border-radius: 0.25rem;
}

#kc-info::before {
    content: "\f05a";
    font-family: 'Font Awesome 6 Pro';
    font-size: 1rem;
    color: #33b5e5;
    margin-right: 1rem;
}

#kc-info-wrapper,
.kc-feedback-text {
    background-color: unset;
    padding: 0;
    text-align: left;
    font-size: 0.875rem;
    color: #1A1D20;
    font-weight: normal;
}

.pf-c-alert__icon span::before,
.pf-c-alert__icon i::before {
    font-size: 1rem;
    font-family: 'Font Awesome 6 Pro';
    font-style: normal;
}

/* INFO */

.alert-info .pf-c-alert__icon span::before {
    content: "\f05a";
}

/* ERROR */

.alert-error {
    border: 0.063rem solid #FF3646;
    border-left: 0.188rem solid #D2001E;
}

.alert-error .pf-c-alert__icon span::before {
    color: #FF3646;
    content: "\f057";
}

.pf-c-alert__icon {
    margin-top: 0;
    margin-right: 1rem;
}

/* WARNING */

.alert-warning,
.recovery-codes-warning {
    border: 0.063rem solid #ed7102;
    border-left: 0.188rem solid #ed7102;
}

.alert-warning .pf-c-alert__icon span::before,
.recovery-codes-warning .pf-c-alert__icon i::before {
    color: #ED7102;
    content: "\f071";
}

.recovery-codes-warning {
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-rows: auto;
    grid-template-areas:
        "icon title"
        "icon description";
}

.recovery-codes-warning .pf-c-alert__icon {
    grid-area: icon;
}

.recovery-codes-warning .pf-c-alert__title {
    grid-area: title;
}

.recovery-codes-warning .pf-c-alert__description {
    grid-area: description;
}

.recovery-codes-warning .pf-screen-reader {
    display: none;
}

#kc-recovery-codes-list {
    columns: 2;
    box-shadow: 0 0 4px 0 rgba(26, 29, 32, 0.60);
    border-radius: 0.25rem;
    margin-bottom: 0.5rem;
}

#kc-recovery-codes-list li {
    font-size: 1rem;
    margin-left: 2rem;
}

.recovery-codes-actions {
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.recovery-codes-actions button {
    width: auto;
}


#kc-recovery-codes-list li span {
    display: none;
}

#saveRecoveryAuthnCodesBtn {
    margin-top: 2rem;
}

    /* SUCCESS */
.alert-success {
    border: 0.063rem solid #51AE32;
    border-left: 0.188rem solid #1E8200;
}

.alert-success .pf-c-alert__icon span::before {
    color: #51AE32;
    content: "\f058";
}

/*-- MESSAGES / ERRORS END --*/


/*-- LOCALE SWITCH START --*/

#kc-locale-dropdown.open #kc-locale-list {
    display: block;
}

#kc-locale-dropdown a {
    color: #1E232D;
    font-size: 1rem;
    text-decoration: none;
}

#kc-current-locale-link {
    padding: 0.25rem;
    display: flex;
    gap: 0.25rem;
    background-color: transparent;
    line-height: 1.5rem;
    color: #1A1D20;
}

#kc-current-locale-link:hover {
    cursor: pointer;
    color: #0071DA;
}

button#kc-current-locale-link::after {
    font-family: 'Font Awesome 6 Pro';
    font-style: normal;
    content: "\f078";
}

#kc-current-locale-link[aria-expanded="true"] {
    color: #0071DA;
}

#kc-locale-dropdown:hover a#kc-current-locale-link {
    color: #0064c8;
    text-decoration: none;
}

#kc-locale ul {
    top: 100%;
    right: 0;
    position: absolute;
    z-index: 200;
    background-color: #fff;
    border-radius: 0.25rem;
    padding: 0.5rem 0;

    box-shadow: 0 0 0.25rem 0 rgba(26, 29, 32, 0.60);
    width: 11.25rem;
}

#kc-locale a {
    display: block;
    padding: 0.75rem 0.5rem 0.75rem 1rem;
}

#kc-locale a:hover,
#kc-locale a:focus-visible,
#kc-locale a:active {
    background-color: #E6F2FF;
}

/*-- LOCALE SWITCH END --*/

ul, ol {
    padding: 1rem 0 1rem 0.813rem;
}

.social-providers-list {
    list-style-type: none;
    padding: 0;
    margin-top: 8px;
}

#kc-totp-settings-form,
#saveTOTPBtn {
    margin-top: 2rem;
}

.instruction {
    margin-bottom: 2rem;
}


/*-- MEDIA QUERIES START --*/
@media (min-width: 841px) {
    body {
        background-image: url("../img/background.jpg");
        background-position: center center;
        background-repeat: no-repeat;
        background-attachment: fixed;
        background-size: cover;
    }
}

@media (max-width: 486px) {
    #kc-recovery-codes-list {
        columns: 1;
    }
}
