:root {
    --base-grid-scale: 40px;
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #e5e5e5;
    --primary: #002a64;
    --secondary: #00bee6;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: white;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;
    --font-family-sans-serif: "Eina01", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    --font-family-monospace: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

body {
    color: var(--primary);
    font-family: Eina01, -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica Neue, Arial, Noto Sans, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol, Noto Color Emoji;
    font-size: .9722222222vw;
    font-weight: 400;
    line-height: 1.86;
}

a {
    color: var(--primary);
}

#kc-page-title, .pf-c-form__label {
    font-weight: bold;
}

#kc-content-wrapper {
    margin-top: 0;
}

#kc-form-wrapper h1 {
    margin-top: 0;
}

#service-msg-row {
    background: rgb(0, 42, 100, 0.2);
    backdrop-filter: blur(13px) saturate(1.2);
    -webkit-backdrop-filter: blur(13px) saturate(1.2);
    padding: 15px 20px;
    margin-block: .5rem;
    border-radius: 20px;
    font-size: 10pt;
    p {
        color: black;
    }
    h3 {
        margin: 0;
    }

}

#content-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
    /*flex-direction: row-reverse;*/
}

#login-col {
    margin-right: 1rem;
    flex-basis: 40%;
    min-width: 40%;
}

#cms-msg-col {
    align-self: self-end;
}

#cms-frame {
    width: 550px;
    body {
        background: transparent;
    }
}

.login-pf body {
    background: var(--light);
    /*background-position: right 20px top 10px;*/
    /*background-repeat: no-repeat;*/

    /*background-image: url("../img/keyvisual_logo.svg");*/
    /*background-size: 171px 33px;*/
}

.card-pf {
    border-radius: 30px;
    border: 2px;
    margin-top: 21vh;
    max-width: 1200px;
    background: rgba(255,255,255, .45);
    backdrop-filter: blur(13px) saturate(1.2);
    -webkit-backdrop-filter: blur(13px) saturate(1.2);
}

.card-pf:has(#kc-select-mfa-method-login-form) {
    max-width: 575px;
    margin-top: 15vh;
    .form-horizontal .form-group {
        margin-left: 0;
        margin-right: 0;
    }
    #kc-info-wrapper {
        margin-bottom: 1rem;
    }
}

.card-pf:has(#kc-totp-settings) {
    max-width: 700px;
}

#kc-header {
    background-image: url("../img/dzr-header.jpg");
    background-position: center top;
    background-repeat: no-repeat;
    background-size: 100vw auto;
    height: 295px;
    width: 100vw;
    position: absolute;
    z-index: -9999;
    border-top: 3px solid #0a3e72;
}

#kc-header-wrapper {
    text-transform: none;
    color: var(--primary);
    > h2 {
        visibility: hidden;
    }
}

.pf-c-form-control {
    border-radius: 5px;
    border: 1px solid #444;
}

.pf-c-form-control#password , .pf-c-form-control#password-new, .pf-c-form-control#password-confirm{
    border-right: none;
    border-bottom-right-radius: 0;
    border-top-right-radius: 0;
}

button.pf-c-button.pf-m-control {
    border-top-right-radius: 5px;
    border-bottom-right-radius: 5px;
    border: 1px solid #444;
    padding-block: 5px;
}

button.pf-c-button.pf-m-control:after {
    border-radius: 5px;
    border-bottom: none;
}

button.pf-c-button.pf-m-control:hover:after {
    border-bottom: none;
}

.login-pf-page {
    padding-top: 63px;
    background-image: url("../img/DZR_ABZ_PraxisPortal.svg");
    background-repeat: no-repeat;
    background-size: 357px 20px;
    background-position: 20px 20px;
}

.login-pf-page .login-pf-header h1 {
    text-align: left;
}

.login-pf-header {
    display: none !important;
}

.pf-c-button.pf-m-primary {
    background-color: var(--primary);
    margin-bottom: 10px;
    border-radius: 5px;
    padding: 7px 10px;
}

.select-auth-box-headline {
    color: var(--primary);
}

.pf-c-button.btn-default {
    margin-bottom: 10px;
    border-radius: 5px;
    padding: 7px 10px;
}

.btn-default {
    background-color: #fff;
    color: #002a64;
    border: 1px solid #002a64;
    background-image: none;
    padding: 7px 10px;
}

.alert-warning {
    margin-bottom: 1rem;
    border: 1px solid #ec7a08;
    border-radius: 5px;
}

#mfa-delete-credential-name {
    text-align: center;
}

#kc-login-footer-links {
    display: flex;
    justify-content: center;
    margin-bottom: 0 !important;
    li {
        margin-inline: 2rem;
    }
}

#authenticateWebAuthnButton {
    margin-top: 15px;
}

.select-auth-container {
    margin-top: 1rem;
    button[name=action] {
        margin-top: 1rem;
        border-radius: 5px;
        color: var(--primary);
    }
}


/* MFA method selection */

.select-auth-container {
    margin-top: 1rem;
    button[name=action] {
        margin-top: 1rem;
        border-radius: 5px;
        color: var(--primary);
    }
}

.select-auth-list-header {
    cursor: default;
    font-size: 0.85rem;
    color: var(--pf-global--Color--200, #6a6e73);
    min-height: auto;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
    border: none;
    background: none;
}

.select-auth-list-item--configured,
.select-auth-list-item--selectable {
    align-items: center;
}

.select-auth-list-item--configured {
    cursor: default;
}

.select-auth-list-item--selectable {
    cursor: pointer;
}

.mfa-credential-detail {
    font-size: 0.8rem;
    color: var(--pf-global--Color--200, #6a6e73);
    line-height: 1.3;
}


.select-auth-radio-col {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 4.5rem;
    min-width: 4.5rem;
}

.select-auth-spacer-col {
    width: 4.5rem;
    min-width: 4.5rem;
}

.visibility-hidden {
    visibility: hidden;
}

.mfa-check-icon {
    color: var(--success);
}

.mfa-delete-col {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    min-width: 2rem;
}

.mfa-delete-btn {
    background: none;
    border: none;
    color: var(--pf-global--Color--200, #6a6e73);
    cursor: pointer;
    padding: 0.25rem 0.5rem;
    font-size: 1rem;
}

.mfa-delete-btn:hover {
    color: var(--danger);
}

.mfa-delete-dialog {
    border: 1px solid var(--gray);
    border-radius: 8px;
    padding: 1rem 2rem;
    max-width: 400px;
}

.mfa-delete-dialog::backdrop {
    background: rgba(0, 0, 0, 0.4);
}

.mfa-delete-credential-name {
    font-weight: 600;
    margin: 0;
}

.mfa-delete-dialog-buttons {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

#kc-select-mfa-method-login-form #kc-form-buttons {
    text-align: center;
}

#kc-select-mfa-method-login-form #kc-form-buttons > div {
    display: inline-flex;
    justify-content: center;
    gap: 0.5rem;
}

#kc-modal-privacy, #kc-modal-downloads, #kc-modal-imprint {
    width: 1000px;
    /*height: 75vh;*/
    border: 1px solid white;
    border-radius: 20px;
    color: var(--primary);
    background: rgb(255,255,255, .8);
    backdrop-filter: blur(13px) saturate(1.5);
    -webkit-backdrop-filter: blur(13px) saturate(1.5);
    padding-inline: 2rem;
    padding-block: 1.5rem;

    #closeButton {
        background: transparent;
        border: none;
        padding-inline: 12px;
        border-radius: 20px;
        margin-bottom: .5rem;
        &:focus-visible {
            outline: none;
        }
    }
    #header {
        display: flex;
        justify-content: space-between;
        padding-bottom: 5px;
        h1 {
            margin: 0;
        }
        border-bottom: 1px solid rgb(0, 42, 100, 0.1);
    }
}

#kc-modal-privacy {
    height: 75vh;
    iframe {
        height: calc(75vh - 105px);
    }
}

#kc-modal-imprint {
    height: 75vh;
    iframe {
        height: calc(75vh - 105px);
    }
}

#kc-modal-downloads {
    height: 70vh;
    iframe {
        height: calc(70vh - 105px);
    }
}

#dzr-selectMfaMethodInstructionHint{
  font-weight: bold;
  font-size: small;
}

.pf-m-inline{
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 5px;
}

.pf-c-form-control input{
  width: 100%;
}

.pf-c-form-control:not(textarea) {
    height: 100%;

}

.form-horizontal .form-group {
    margin-right: 0;
    margin-left: 0;
}

.alert-error, #input-error, #input-error-otp-label, #input-error-otp-code {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-success {
  background-color: #d4edda;
  border-color: #c3e6cb;
  color: #155724;
}

.alert-danger {
  background-color: #f8d7da;
  border-color: #f5c6cb;
  color: #721c24;
}

.alert-warning {
  background-color: #fff3cd;
  border-color: #ffeeba;
  color: #856404;
}

.alert-info {
  background-color: #d1ecf1;
  border-color: #bee5eb;
  color: #0c5460;
}

#totp,#userLabel {
 border: 1px solid silver;
 border-radius: 5px;
 height: 35px;
}

.totpBorder{
 border: none;
 padding: 0px;
}

#kc-totp-settings-form{
 margin-bottom: 15px;
}


body[data-page-id="login-login"] .card-pf{
	display: block;
	max-width: 575px;
}

body[data-page-id="login-login"] .pf-c-form-control{
	height: calc(var(--pf-c-form-control--FontSize) * var(--pf-c-form-control--LineHeight) + var(--pf-c-form-control--BorderWidth) * 2 + var(--pf-c-form-control--PaddingTop) + var(--pf-c-form-control--PaddingBottom) +2);
}

body[data-page-id="login-login-update-password"] .pf-c-form-control{
	height: calc(var(--pf-c-form-control--FontSize) * var(--pf-c-form-control--LineHeight) + var(--pf-c-form-control--BorderWidth) * 2 + var(--pf-c-form-control--PaddingTop) + var(--pf-c-form-control--PaddingBottom) +2);
}

.login-pf-page .card-pf {
	padding: 40px 80px 50px 80px;
}

#try-another-way{
  margin-left: 20px;
}

body[data-page-id="login-login"] #cms-frame {
    border: 0;
}


#content-row {
    display: flex;
    align-items: flex-start;
    gap: 50px;
}

#login-col {
    width: 400px;
    min-width: 400px;
    margin-right: 0;
    flex-basis: auto;
}

#cms-msg-col {
    
    width: 360px;
    min-width: 360px;
}

#cms-msg-col.is-visible {
    display: block;
}

#cms-frame {
    width: 100%;
    border: 0;
}

body[data-page-id="login-login"] .card-pf {
    width: fit-content;
}

body[data-page-id="login-login"] .card-pf:has(#cms-msg-col.is-visible) {
    max-width: 1100px;
}

body[data-page-id="login-login"] .card-pf:not(:has(#cms-msg-col.is-visible)) {
    max-width: 575px;
}

#kc-login:disabled {
  opacity: .5;
  cursor: not-allowed;
}

#mfa-save-success-dialog{
  width: 250px;
}