fieldset {
    border: none;
    padding: 0;
    margin: 0;
}

html, body {
    height: 100%;
    min-height: 100vh;
}

.login-pf body {
    background-image: url("../img/Aerialnature.jpeg");
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100%;
    font-family: 'Mulish', 'Avenir Next', 'Helvetica Neue', Helvetica, Arial, sans-serif;
    color: var(--baseText);
}

.logo-image-container {
    width: max-content;
    max-width: 100%;
}

#additionalLogo {
    display: none;
    margin: 0;
    width: 200px;
    max-width: 100%;
    padding-top: 5em;
}

#logoImage {
    visibility: hidden;
    margin: 0;
    max-width: 100%;
    margin: 5px 0;
}

#poweredBy {
    height: var(--poweredByImageHeight, 30px);;
    width: auto;
    position: relative;
    margin-left: auto;
    display: none;
}

h4 {
    font-size: 17px;
}

#logoContainerOnSmall {
    display: none;
    text-align: center;
}

#additionalLogoContainerOnSmall {
    display: none;
    text-align: center;
}

#additionalLogoOnSmall {
    visibility: hidden;
    display: block;
    margin: 0;
    width: 150px;
    max-width: 100%;
    margin: auto;
}

#logoOnSmall {  
    visibility: hidden;
    width: 200px;
    max-width: 100%;
    margin: 5px 0;
}

#poweredByOnSmall {
    height: 20px;
    width: auto;
    position: relative;
    margin-left: auto;
    display: none;
}

a {
    font-size: 16px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    color: var(--activeColorV2);
}

.required {
    font-size: 12px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.42;
    letter-spacing: normal;
    color: var(--danger) !important;
    margin-top: 8px;
    display: block;
}

a:hover {
    text-decoration: none;
    color: var(--activeColorV2) !important;
}

a:focus {
    outline: none;
}

.login-pf-page {
    padding: 0;
    height: 100vh;
}

legend {
    display: block;
    width: unset;
    padding-inline-start: 2px;
    padding-inline-end: 2px;
    border-width: initial;
    border-style: none;
    border-color: initial;
    border-image: initial;
}

.flex {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    height: var(--baseContainerHeight, 100%);
}

.bev-info {
    width: 50%;
    position: relative;
    padding: 10px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: column;
}

.bev-info .center {
    text-align: center;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    flex: 1;
    margin-bottom: 150px;
    /* padding: 20px 6%; */
}

.bev-info img {
    width: var(--infoLogoImageWidth, 300px);
    margin-bottom: 24px;
    max-width: 90%;
}

.bev-info .welcome-heading {
    font-size: 34px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.35;
    letter-spacing: normal;
    color: var(--text-primary);
}

.bev-info .welcome-text {
    font-size: 17px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.63;
    letter-spacing: normal;
    color: var(--text-primary);
}

.bev-login {
    width: 50%;
    height: 100%;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bev-login .login-container {
    width: var(--loginContainerWidth, 500px);
    min-width: 300px;
    height: fit-content;
    max-width: 100%;
    max-height: var(--loginContainerHeight, calc(100vh - 40px));
    display: flex;
    flex-direction: column;
    padding: var(--loginContainerPadding, 1.4vh);
    background: var(--loginContainerBg);
    border: 1px solid var(--hairline);
    border-radius: var(--loginContainerRadius, 16px);
    position: relative;
    box-shadow: var(--loginContainerShadow, none);
    backdrop-filter: var(--loginContainerBackdrop, blur(16px));
    -webkit-backdrop-filter: var(--loginContainerBackdrop, blur(16px));
}

.login-content {
    position: relative;
    max-height: 100%;
    overflow-y: auto;
    padding: 20px;
    max-width: 100%;
    width: 100%;
}

.login-title {
    font-size: 32px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.35;
    letter-spacing: normal;
    color: var(--baseText) !important;
}

.login-text {
    font-size: 17px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.63;
    letter-spacing: normal;
    color: var(--baseText) !important;
    margin: 0;
}

#kc-page-title {
    color: var(--baseText);
    font-size: 32px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.35;
    letter-spacing: normal;
    margin-top: 0px !important;
}

#kc-page-title .image-div {
    width: 96px;
    height: 96px;
    border: solid 0.5px var(--baseText);
    padding: 24px 22.3px 23.3px 23px;
    margin: auto;
    margin-bottom: 4vh;
    border-radius: 8px;
}

#kc-page-title .image-div .image {
    background: var(--baseText);
    display: block;
    -webkit-mask-size: cover;
    mask-size: cover;
    max-width: 100%;
    width: 100%;
    height: 100%;
}

#kc-page-title .image-div .image.reset-password {
    -webkit-mask-image: url(../img/forgot_password.svg);
    mask-image: url(../img/forgot_password.svg);
}

#kc-page-title .image-div .image.verify-email {
    -webkit-mask-image: url(../img/Email.svg);
    mask-image: url(../img/Email.svg);
}

#kc-page-title .title-info {
    font-size: 17px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.63;
    letter-spacing: normal;
    color: var(--baseText);
    margin-top: 10px;
}

#kc-page-title .title-info.small {
    font-size: 16px;
    margin-top: 1.4vh;
}

.form-group {
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

.normal-input {
    position: relative;
    max-width: 100%;
    margin: auto;
    width: 100%;
    display: flex;
    flex-direction: column;
}

.normal-input.has-error input {
    border: solid 1px var(--danger) !important;
    background-image: none !important;
    padding-right: 18px !important;
}

.normal-input.has-error legend {
    color: var(--danger);
}

.normal-input.have-m-width {
    max-width: 400px;
}
.normal-input legend {
    font-size: 12px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: normal;
    text-align: left;
    color: var(--inputColor);
    margin-bottom: 10px;
    transition: inherit;
}
.normal-input input {
    height: 54px;
    width: 100% !important;
    padding: 0 18px;
    background-color: var(--inputBgColor) !important;
    border-radius: 6px;
    border: solid 1px var(--defaultInputBorder) !important;
    font-size: 14px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.36;
    letter-spacing: normal;
    color: var(--inputColor);
    box-sizing: border-box;
    max-width: 100%;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

/* Fix browser autofill removing background */
.normal-input input:-webkit-autofill,
.normal-input input:-webkit-autofill:hover, 
.normal-input input:-webkit-autofill:focus, 
.normal-input input:-webkit-autofill:active{
    -webkit-box-shadow: 0 0 0 30px var(--inputBgColor) inset !important;
    -webkit-text-fill-color: var(--inputColor) !important;
    transition: background-color 5000s ease-in-out 0s;
}

.normal-input input[type="password"] {
    letter-spacing: 10px;
    font-size: 20px;
}

.normal-input input[aria-invalid="true"] {
    background-color: var(--inputBgColor) !important;
}
.normal-input input:focus {
    outline: none;  
    padding-bottom: 0 !important;
    border: solid 1px var(--action) !important;
    box-shadow: 0 0 0 1px var(--action);
}

.normal-input.has-error input:focus {
    border: solid 1px var(--danger) !important;
    box-shadow: none; /* No focus ring for error state per design */
}

.normal-input input:focus ~ legend {
    color: var(--action);
}

.normal-input.has-error input:focus ~ legend {
    color: var(--danger);
}

.terms-container {
    margin-bottom: 0px;
}

.terms-container .checkbox-container {
    font-weight: normal;
}

.terms-container .terms-link {
    display: inline !important;
    font-size: 20px;
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    color: var(--activeColorV2);
}

/* Checkbox */

.checkbox-container {
    display: block;
    position: relative;
    padding-left: 32px !important;
    cursor: pointer;
    font-size: 20px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: var(--defaultInputBorder);
}

.checkbox-container.terms {
    padding-left: 0 !important;
}

.form-horizontal .form-group {
    margin-bottom: 0px;
}
  
/* Hide the browser's default checkbox */
.checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
  
/* Create a custom checkbox */
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: transparent;
    border-radius: 3px;
    border: 0.5px solid var(--defaultInputBorder);
}

/* On mouse-over, add a grey background color */
/* .checkbox-container input:focus ~ .checkmark {
    border: 2px solid var(--text-primary);
} */
  
/* When the checkbox is checked, add a blue background */
.checkbox-container input:checked ~ .checkmark {
    background-color: var(--text-primary);
}
  
/* Create the checkmark/indicator (hidden when not checked) */
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
  
/* Show the checkmark when checked */
.checkbox-container input:checked ~ .checkmark:after {
    display: block;
}
  
/* Style the checkmark/indicator */
.checkbox-container .checkmark:after {
    left: 7px;
    top: 4px;
    width: 7px;
    height: 11px;
    border: solid var(--baseLight);
    border-width: 0 3px 3px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

.bev-button {
    border-radius: var(--buttonBorderRadius);
    padding: 18px 0;
    border: none;
    font-size: 16px;
    font-weight: 700;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.36;
    letter-spacing: normal;
    max-width: 100%;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.emailExistButton {
    margin-bottom: 0.65vh;
}

.popup-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: var(--img-overlay-dark);
    z-index: 0;
    opacity: 0;
    transition: 0.3s all ease-in-out;
}

.popup {
    width: 925px;
    padding: 30px;
    border-radius: 8px;
    background-color: var(--modal-bg);
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 0;
    opacity: 0;
    transition: 0.5s all ease-in-out;
}

.popup .popup-heading {
    font-size: 26px;
    font-weight: bold;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.38;
    letter-spacing: normal;
    color: var(--baseText);
    text-align: center;
    width: 460px;
    max-width: 100%;
    margin: auto;
    margin-bottom: 10px;
}

.popup .popup-info {
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.64;
    letter-spacing: normal;
    text-align: center;
    color: var(--baseText);
    width: 460px;
    max-width: 100%;
    margin: auto;
}

.popup .term-text {
    width: 100%;
    height: 536px;
    max-height: calc(100vh - 400px);
    overflow: auto;
    padding: 0px;
    background-color: var(--baseLight);
    margin-top: 4vh;
}

.popup .term-text .content {
    padding: 10px 20px;
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 2;
    letter-spacing: normal;
    color: var(--baseText);
}

.popup .button-actions {
    margin-top: 4vh;
    text-align: center;
}

.popup .button-actions .bev-button {
    margin: 0 8px;
    width: 190px;
    padding: 0;
    max-width: 50%;
    height: 6vh;
}

.close-image {
    background: var(--baseText);
    -webkit-mask-image: url(../img/Cross.svg);
    mask-image: url(../img/Cross.svg);
    height: 22px;
    width: 22px;
    display: block;
    -webkit-mask-size: cover;
    mask-size: cover;
    position: absolute;
    right: 41px;
    top: 1.6vh;
    cursor: pointer;
}

.emailAlreadyExist {
    margin-bottom: 1.6vh !important;
}


.bev-button:focus {
    outline: none;
}

.bev-button.bev-button-primary {
    background-color: var(--buttonPrimary);
    color: var(--buttonPrimaryColor);
}

.bev-button-primary:hover {
    background-color: var(--buttonPrimaryHover);
    box-shadow: var(--glow-pink);
    transform: translateY(-1px);
}

.bev-button-primary:active {
    transform: translateY(0);
    box-shadow: none;
}

.bev-button.bev-button-secondary {
    background-color: var(--buttonSecondary);
    color: var(--buttonSecondaryColor);
    border: 1px solid var(--hairline);
}

.bev-button-secondary:hover {
    background-color: var(--buttonSecondaryHover);
}

.bev-button-lg {
    width: 100%;
    margin: auto;
}

#kc-error-message p {
    font-size: 20px;
    color: var(--baseText);
    text-align: center;
}

/* Checkbox end */

#kc-locale ul {
    display: none;
    position: absolute;
    background-color: var(--text-primary);
    list-style: none;
    right: 0;
    top: 1.4vh;
    min-width: 100px;
    padding: 2px 0;
    border: solid 1px var(--panel-grey);
}

#kc-locale:hover ul {
    display: block;
    margin: 0;
}

#kc-locale ul li a {
    display: block;
    padding: 5px 16px;
    color: var(--text-on-light) !important;
    text-decoration: none;
    line-height: 1.4vh;
}

#kc-locale ul li a:hover {
    color: var(--text-on-light-soft);
    background-color: var(--surface-light-hover);
}

#kc-locale-dropdown a {
    color: var(--text-on-light-soft);
    background: 0 0;
    padding: 0 17px 0 0;
    font-weight: 300;
}

#kc-locale-dropdown a:hover {
    text-decoration: none;
}

a#kc-current-locale-link {
    display: block;
    padding: 0 5px;
}

#instruction1 {
    font-size: 17px;
    text-align: center;
}

#instruction1 p {
    color: var(--baseText) !important;
}

#passwordInfo {
    display: none;
    margin-top: -10px !important;
    margin-bottom: 10px !important;
}

#passwordInfo .strong, #passwordInfo .medium, #passwordInfo .weak {
    display: none;
}

#passwordInfo.strong .strong {
    display: block;
    color: var(--activeColorV1);
}

#passwordInfo.medium .medium {
    display: block;
    color: var(--warning);
}

#passwordInfo.weak .weak {
    display: block;
    color: var(--danger);
}

.alert {
    width: 100%;
    border-radius: 5px;
    height: auto;
    padding: 6px 10px;
    background-color: var(--alertBg);
    text-align: center;
    font-size: 16px;
}

.alert-error {
    color: var(--danger) !important;
    border: 0.5px solid var(--danger);
}

.alert-success {
    color: var(--activeColorV1) !important;
    border: 0.5px solid var(--activeColorV1);
}

.alert-warning {
    color: var(--warning) !important;
    border: 0.5px solid var(--warning);
}

.alert-info {
    color: var(--veryLightSecondary) !important;
    border: 0.5px solid var(--veryLightSecondary);
}

/* a#kc-current-locale-link:hover {
    background: var(--img-overlay-light);
} */

a#kc-current-locale-link::after {
    content: "\2c5";
    margin-left: 4px;
}

.login-pf .container {
    padding-top: 4vh;
}

.login-pf a:hover {
    color: var(--activeColorV3);
}

.login-pf-settings {
    margin-top: 4vh;
    margin-bottom: 0px;
}

.login-pf-header {
    max-width: 100%;
    margin: auto;
}

#kc-logo {
    width: 100%;
}

#kc-logo-wrapper {
    background-image: url(../img/keycloak-logo-2.png);
    background-repeat: no-repeat;
    height: 63px;
    width: 300px;
    margin: 62px auto 0;
}

div.kc-logo-text {
    background-image: url(../img/keycloak-logo-text.png);
    background-repeat: no-repeat;
    height: 63px;
    width: 300px;
    margin: 0 auto;
}

div.kc-logo-text span {
    display: none;
}

#kc-header {
    color: var(--text-secondary);
    overflow: visible;
    white-space: nowrap;
}

#kc-header-wrapper {
    font-size: 29px;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.2em;
    padding: 62px 10px 20px;
    white-space: normal;
}

#kc-content {
    max-width: 100%;
    margin: auto;
}

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

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

#kc-webauthn-settings-form {
    padding-top: 8px;
}

#kc-content-wrapper {
    margin-top: 1.4vh;
}

/* #kc-info {
    margin: 20px -40px -30px;
} */

#kc-info-wrapper {
    font-size: 16px;
    padding: 0.91vh 35px;
    background-color: transparent;
}

#kc-info-wrapper .instruction {
    color: var(--baseText);
    font-size: 16px;
}

#kc-info-wrapper .instruction a {
    font-size: 16px;
}


#kc-form-options span {
    display: block;
}

#kc-form-options {
    float: left;
}

#kc-form-options + div {
    float: right;
}

#kc-form-options .checkbox {
    margin-top: 0;
    color: var(--text-secondary);
}

#kc-terms-text {
    margin-bottom: 1.4vh;
}

#kc-registration {
    margin-bottom: 0;
    color: var(--baseText);
    font-size: 16px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1;
    letter-spacing: normal;
    text-align: center;
}

.normal-input {
    margin-bottom: 1.4vh;
}

.input-error {
    margin-top: -5px;
    margin-bottom: 10px;
}

.input-success {
    margin-top: -10px;
    margin-bottom: 10px;
}

.input-success .valid {
    color: var(--sea-green) !important;
}

.input-success .invalid {
    color: var(--danger) !important;
}

/* TOTP */

.subtitle {
    text-align: right;
    margin-top: 1.6vh;
    color: var(--text-secondary);
}

.required {
    color: var(--danger); /* default - IE compatibility */
    color: var(--pf-global--danger-color--200);
}

ol#kc-totp-settings {
    margin: 0;
    padding-left: 20px;
}

ul#kc-totp-supported-apps {
    margin-bottom: 10px;
}

#kc-totp-secret-qr-code {
    max-width:150px;
    max-height:150px;
}

#kc-totp-secret-key {
    background-color: var(--text-primary);
    color: var(--text-primary);
    font-size: 17px;
    padding: 10px 0;
}

/* OAuth */

#kc-oauth h3 {
    margin-top: 0;
}

#kc-oauth ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

#kc-oauth ul li {
    border-top: 1px solid var(--hairline);
    font-size: 12px;
    padding: 10px 0;
}

#kc-oauth ul li:first-of-type {
    border-top: 0;
}

#kc-oauth .kc-role {
    display: inline-block;
    width: 50%;
}

/* Code */
#kc-code textarea {
    width: 100%;
    height: 8em;
}

/* Social */
#kc-social-providers {
    margin-top: 4vh;
    font-size: 20px;
    font-weight: normal;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.33;
    letter-spacing: normal;
    color: var(--baseText);
}

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

.kc-social-links {
    margin-top: 3vh;
    display: flex;
    align-items: center;
    justify-content: space-evenly;
}


.kc-social-provider-logo {
    font-size: 20px;
    margin-right: 4px;
}

.kc-social-gray {
    color: var(--text-secondary); /* default - IE compatibility */
    color: var(--pf-global--Color--200);
}

.kc-social-item {
    height: 6.8vh;
    padding: 0;
    border-radius: 6px;
    margin-bottom: 0.5rem; /* default - IE compatibility */
    margin-bottom: var(--pf-global--spacer--sm);
    font-size: 17px;
    color: var(--text-primary);
    font-weight: 600;
    font-stretch: normal;
    font-style: normal;
    line-height: 6.8vh;
    letter-spacing: normal;
    text-align: center;
    border: none;
    flex-basis: 48%;
}

.kc-social-item:focus {
    color: var(--text-primary) !important;
    text-decoration: none;
}

.kc-social-item:hover {
    color: var(--text-primary) !important;
}

.kc-social-item#social-google {
    background-color: var(--danger);
}

.kc-social-item#social-facebook {
    background-color: var(--action);
    margin-left: 10px;
}

.kc-social-item#social-microsoft {
    background-color: var(--text-primary);
    color: var(--action) !important;
}

.kc-social-item::after {
    border: none;
}

.kc-social-provider-name {
    position: relative;
}

.kc-social-grid {
    display:grid;
    grid-column-gap: 10px;
    grid-row-gap: 5px;
    grid-column-end: span 6;
    --pf-l-grid__item--GridColumnEnd: span 6;
}

.kc-social-grid .kc-social-icon-text {
    left: -10px;
}

.kc-login-tooltip {
    position: relative;
    display: inline-block;
}

.kc-social-section {
    text-align: center;
}

.kc-social-section hr{
    margin-bottom: 10px
}

.kc-login-tooltip .kc-tooltip-text{
    top:-3px;
    left:160%;
    background-color: var(--surface-canvas);
    visibility: hidden;
    color: var(--text-primary);

    min-width:130px;
    text-align: center;
    border-radius: 2px;
    box-shadow: var(--shadow-md);
    padding: 5px;

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

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

/* Arrow for tooltip */
.kc-login-tooltip .kc-tooltip-text::after {
    content: " ";
    position: absolute;
    top: 0.91vh;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent var(--surface-canvas) transparent transparent;
}

@media (min-width: 768px) {
    #kc-container-wrapper {
        position: absolute;
        width: 100%;
    }

    .login-pf .container {
        padding-right: 80px;
    }

    #kc-locale {
        position: relative;
        text-align: right;
        z-index: 9999;
    }
}

@media (max-width: 767px) {
    #kc-header {
        padding-left: 17px;
        padding-right: 17px;
        float: none;
        text-align: left;
    }

    #kc-header-wrapper {
        font-size: 17px;
        font-weight: bold;
        padding: 1.4vh 60px 0 0;
        color: var(--text-secondary);
        letter-spacing: 0;
    }

    div.kc-logo-text {
        margin: 0;
        width: 150px;
        height: 32px;
        background-size: 100%;
    }

    #kc-form {
        float: none;
    }

    #kc-info-wrapper {
        border-top: 1px solid var(--hairline);
        background-color: transparent;
    }

    .login-pf .container {
        padding-top: 0.91vh;
        padding-bottom: 0.91vh;
    }

    #kc-locale {
        position: absolute;
        width: 200px;
        top: 20px;
        right: 20px;
        text-align: right;
        z-index: 9999;
    }

    #kc-logo-wrapper {
        background-size: 100px 21px;
        height: 21px;
        width: 100px;
        margin: 1.4vh 0 0 1.4vh;
    }

}

@media (min-height: 646px) {
    #kc-container-wrapper {
        bottom: 12%;
    }
}

@media (max-height: 645px) {
    #kc-container-wrapper {
        padding-top: 6vh;
        top: 20%;
    }
}

@media (max-width: 601px) { 
    .login-pf-header {
        width: 85%;
    }
    #kc-content {
        width: 85%;
    }
    .bev-info { 
        display: none;  
    }   
    .bev-login {    
        height: 100% !important;    
        background-color: var(--img-overlay) !important;  
    }   
    .bev-info .welcome-heading {    
        font-size: 18px !important; 
    }   
    .bev-info .welcome-text {   
        font-size: 12px !important; 
    }   
    .login-title {  
        font-size: 20px !important; 
    }
    #kc-page-title {
        font-size: 20px !important;
    }
    .login-content {    
        height: max-content !important; 
        padding: 10px 0 !important; 
    }   
    #logoContainerOnSmall {
        display: block;
    }
    #additionalLogoContainerOnSmall {
        display: block;
    }
    #logoOnSmall {
        margin: 5px auto;   
    }   
    .logo-image-container {
        margin: auto;
        padding-top: 20px;
    }
}

@media (min-width: 602px) and (max-width: 962px) {  
    .login-content {    
        position: relative; 
        border-radius: 0px; 
        padding: 30px 20px !important;  
        left: unset;    
        top: unset; 
        transform: unset;   
        max-height: unset;
    }   
    .bev-info {
        position: relative;
    }
}

@media (max-width: 962px) { 
    .root-container {   
        display: block; 
        overflow: auto;
    }
    .root-container.cera-theme-info {
        height: auto;
    }
    .bev-info { 
        width: 100%;    
        height: 50%;    
        min-height: 50vh;   
    }
    .bev-info.cera-theme-info { 
        width: 100%;    
        height: 50%;    
        min-height: unset;   
        padding: 20px 0;
    }
    .bev-info .center {
        margin-bottom: 0;
    }
    .bev-login {    
        padding: 0 !important;  
        width: 100%;    
        height: auto;   
        min-height: 50%;    
        background-color: var(--loginContainerBg);    
    }   
    .bev-login .login-container {   
        background-color: var(--loginContainerBgOnSmall);   
        min-height: 100%;   
    }   
    .card-pf {  
        box-shadow: none !important;    
    }   
    #kc-info-wrapper {  
        border-top: none;   
        font-size: 12px;    
        padding: 0; 
    }
}

@media (max-width: 1147px) {
    .bev-login {
        padding: 20px;
    }

    .bev-info .welcome-heading {
        font-size: 26px;
    }

    .bev-info .welcome-text {
        font-size: 16px;
    }

    .bev-login .login-container {
        padding: 0;
    }

    .login-title {
        font-size: 24px;
    }

    .login-text {
        font-size: 12px;
    }

    .normal-input {
        height: auto;
        margin-bottom: 20px;
    }

    .normal-input input {
        font-size: 12px;
        height: var(--pf-c-form-control--Height);
    }

    .normal-input legend {
        font-size: 10px;
    }

    .checkbox-container {
        font-size: 12px;
    }

    .checkmark {
        width: 18px;
        height: 18px;
    }
    
    .checkbox label {
        line-height: 18px;
    }

    .checkbox-container .checkmark:after {
        top: 3px;
        left: 5px;
        width: 6px;
        height: 10px;
    }

    a {
        font-size: 12px;
    }

    #kc-registration {
        font-size: 12px;
    }

    #kc-page-title .title-info, .title-info {
        font-size: 12px;
    }

    #kc-info-wrapper .instruction, #kc-info-wrapper .instruction a {
        font-size: 12px;
    }
    
    #kc-page-title {
        font-size: 24px;
    }

    .required {
        font-size: 9px;
    }

    .bev-button {
        font-size: 12px;
        padding: 18px 0;
    }

    .kc-social-item {
        font-size: 12px;
    }

    .kc-social-provider-logo {
        font-size: 14px;
    }

    .alert {
        font-size: 10px;
    }

    h4 {
        font-size: 14px;
    }
}

.card-pf form.form-actions .btn {
    float: right;
    margin-left: 10px;
}

#kc-form-buttons {
    clear: both;
    margin-top: 4vh;
    text-align: center;
    padding: 0;
}

.login-pf-page .login-pf-brand {
    margin-top: 1.4vh;
    max-width: 360px;
    width: 40%;
}

/* Internet Explorer 11 compatibility workaround for select-authenticator screen */
@media all and (-ms-high-contrast: none),
(-ms-high-contrast: active) {
    .select-auth-box-parent {
        border-top: 1px solid var(--panel-grey);
        padding-top: 1rem;
        padding-bottom: 1rem;
        cursor: pointer;
    }

    .select-auth-box-headline {
        font-size: 17px;
        color: var(--action);
        font-weight: bold;
    }

    .select-auth-box-desc {
        font-size: 16px;
    }

    .pf-l-stack {
        flex-basis: 100%;
    }
}
/* End of IE11 workaround for select-authenticator screen */

.select-auth-box-arrow{
    display: flex;
    align-items: center;
    margin-right: 2rem;
}

.select-auth-box-icon{
    display: flex;
    flex: 0 0 2em;
    justify-content: center;
    margin-right: 1rem;
    margin-left: 3rem;
}

.select-auth-box-parent{
    border-top: 1px solid var(--pf-global--palette--black-200);
    padding-top: 1rem;
    padding-bottom: 1rem;
    cursor: pointer;
}

.select-auth-box-parent:hover{
    background-color: var(--surface-light);
}

.select-auth-container {
    padding-bottom: 0px !important;
}

.select-auth-box-headline {
    font-size: var(--pf-global--FontSize--md);
    color: var(--pf-global--primary-color--100);
    font-weight: bold;
}

.select-auth-box-desc {
    font-size: var(--pf-global--FontSize--sm);
}

.card-pf {
    margin: 0 auto;
    box-shadow: var(--pf-global--BoxShadow--lg);
    padding: 0 20px;
    max-width: 500px;
    border-top: 4px solid;
    border-color: var(--action); /* default - IE compatibility */
    border-color: var(--pf-global--primary-color--100);
}

/*phone*/
@media (max-width: 767px) {
    .login-pf-page .card-pf {
        max-width: none;
        margin-left: 0;
        margin-right: 0;
        padding-top: 0;
        border-top: 0;
        box-shadow: 0 0;
    }

    .kc-social-grid {
        grid-column-end: 12;
        --pf-l-grid__item--GridColumnEnd: span 12;
    }

    .kc-social-grid .kc-social-icon-text {
        left: -17px;
    }
}

.login-pf-page .login-pf-signup {
    font-size: 17px;
    color: var(--text-secondary);
    margin-top: 3vh;
}
#kc-content-wrapper .row {
    margin-left: 0;
    margin-right: 0;
}

.login-pf-page.login-pf-page-accounts {
    margin-left: auto;
    margin-right: auto;
}

.login-pf-page .btn-primary {
    margin-top: 0;
}

.login-pf-page .list-view-pf .list-group-item {
    border-bottom: 1px solid var(--panel-grey);
}

.login-pf-page .list-view-pf-description {
    width: 100%;
}

#kc-form-login div.form-group:last-of-type,
#kc-register-form div.form-group:last-of-type,
#kc-update-profile-form div.form-group:last-of-type {
    margin-bottom: 0px;
}

.no-bottom-margin {
    margin-bottom: 0;
}

#kc-back {
    margin-top: 5px;
}

.d-none {
    display: none;
}

/* ═══════════════════════════════════════════════════════════════
   CERA-3220 Layout Updates
   ═══════════════════════════════════════════════════════════════ */

/* Right-align Forgot Password */
.login-pf-settings {
    display: flex;
    justify-content: flex-end !important;
    margin-top: 8px;
    margin-bottom: 24px;
}
#kc-form-options {
    display: none;
}

/* "Or" Divider */
.or-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: var(--text-secondary);
    font-size: 14px;
    margin: 24px 0;
}
.or-divider::before,
.or-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid var(--hairline);
}
.or-divider::before {
    margin-right: 16px;
}
.or-divider::after {
    margin-left: 16px;
}

/* Microsoft Button styling */
.kc-social-item#social-microsoft {
    background-color: var(--surface-light);
    color: var(--text-on-light-soft) !important;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 18px 0;
    gap: 12px;
    width: 100%;
    height: auto;
    line-height: 1.36;
    box-sizing: border-box;
}
.ms-logo-svg {
    width: 20px;
    height: 20px;
}

/* Force removal of any native or PatternFly background icons in inputs/textareas */
input, 
textarea, 
.pf-c-form-control,
.pf-c-form-control[aria-invalid="true"],
.normal-input input,
.normal-input.has-error input {
    background-image: none !important;
}

#background-video {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -100;
    display: none; /* Controlled by index.js */
}

.login-veil {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -99; /* Sit exactly between video (-100) and content */
    display: none; /* Controlled by index.js */
    pointer-events: none;
}

/* ==========================================================================
   CERA Theme Layout Customizations ("See risk clearly" & Partnership Logo)
   ========================================================================== */

/* Left Side Layout Alignments */
.cera-theme-info .center {
    align-items: flex-start;
    justify-content: center;
    text-align: left;
    padding: 0 10%;
}

/* See risk clearly Text & Underline */
.cera-welcome-container {
    margin-top: 24px;
    width: 100%;
}

.cera-see-risk {
    font-size: 72px;
    font-weight: 300;
    line-height: 1.15;
    color: #FFFFFF;
    font-family: 'Mulish', sans-serif;
}

.cera-see-risk .pink-text {
    color: var(--activeColorV2, #FF6CAA);
}

.cera-underline {
    width: 100px;
    height: 4px;
    background-color: var(--activeColorV2, #FF6CAA);
    margin-top: 24px;
    border-radius: 2px;
}

/* Top-Right Partnership Block */
.cera-partnership-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    width: 100%;
    z-index: 10;
    padding-right: 40px;
    padding-top: 30px;
}

.cera-partnership-bev-logo {
    height: 32px;
    width: auto;
    margin-bottom: 8px;
}

.cera-partnership-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.cera-partnership-text {
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: rgba(255, 255, 255, 0.6);
    text-transform: uppercase;
}

.cera-partnership-esa-logo {
    height: 18px;
    width: auto;
}

.cera-theme-login {
    display: flex;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 0;
}

/* Responsive Overrides */
@media (max-width: 1200px) {
    .cera-see-risk {
        font-size: 56px;
    }
    .cera-underline {
        margin-top: 18px;
        width: 80px;
    }
}

@media (max-width: 962px) {
    /* Re-center the left side content when stacked on tablet */
    .cera-welcome-container {
        margin-top: 16px;
    }
    .cera-see-risk {
        font-size: 40px;
    }
    .cera-underline {
        width: 60px;
    }
}