.login-pf body {
    background: none;
}

.alert-error {
    background-color: #ffffff;
    /* border-color: #cc0000; */
    color: #F30C0C;
}

.input-error {
    border-color: #F30C0C !important;
}

.numberPhone-msg {
    font-weight: 600;
    color: #00176b !important;
}

#kc-locale ul {
    display: none;
    position: absolute;
    background-color: #fff;
    list-style: none;
    right: 20px;
    top: 30px;
    width: 200px;
    padding: 2px;
}

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

#kc-locale ul li a {
    display: block;
    padding: 1px 11px;
    color: #000 !important;
    border: 1px solid #fff;
    text-decoration: none;
    display:block;
    line-height: 20px;
}

#kc-locale ul li a:hover {
    color: #4d5258;
    background-color: #d4edfa;
    border-color: #b3d3e7;
}

#kc-locale-dropdown a {
    color: #fff;
}

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

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

a#kc-current-locale-link:hover {
    background-color: rgba(0,0,0,0.2);
}

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

#kc-container-wrapper {
    display: flex;
    height: 100vh;
    width: 100vw;
    padding: 1%; 
    flex-direction: row;
}

#kc-left-container {
    width: 40%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    z-index: 1;
    background: rgba(255, 255, 255, 0.8);
}

#kc-right-container {
    width: 60%;
    position: relative;
    
}

.login-pf .container {
    padding-top: 20px;
    color: #333333;
}

.login-pf a:hover {
    color: #34358b;
}

.footer-groups{
    display: flex;
    align-items: center;
    justify-content: space-between;
}

#kc-logo {
    width: 100%;
}

.kcAbBrandPic-back {
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/a/ab/ArrowLeft.png?20241203032732");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 20px;
    height: 20px;
}
.kcAbBrandPic-search {
    background-image: url("https://upload.wikimedia.org/wikipedia/commons/1/1e/Icon_search.png?20241205023622");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    width: 20px;
    height: 20px;
}

.kcAbBrandPic-vi {
    background-image: url("../img/main-banner-vi.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.kcAbBrandPic-en {
    background-image: url("../img/main-banner-en.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

.kcAbBrandPic-id {
    background-image: url("../img/main-banner-id.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    width: 100%;
    height: 100%;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

div.kc-logo-text span, div.kcAbBrandPic-vi span,
div.kc-logo-text span, div.kcAbBrandPic-en span, div.kcAbBrandPic-id span{
    display: none;
}

div.kc-logo-text {
    background-image: url("../img/antbuddy-logo.png");
    background-repeat: no-repeat;
    background-size: contain;
    width: 150px;
    height: 60px;
}

div.kc-empower {
    margin-top: 10px;
    font-size: 16px;
    color: #34358b;
}

#kc-header {
    overflow: visible;
    white-space: nowrap;
}

#kc-header-wrapper {
    font-size: 26px;
    line-height: 1.2em;
}

#kc-header-name {
    color: #676767;
    font-weight: 700;
    font-size: 36px;
    text-align: center;
    margin-bottom: 75px;
}

#kc-header-name-ant {
    font-weight: 100;
}

#kc-content {
    position: relative;
}

.turnBack{
    font-weight: 700;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 0 7px;
    border-radius: 4px;
}

.turnBack span {
    margin-left: 8px;
}

.turnBack:hover {
    background-color: #F7F9FC;
}

#kc-content-wrapper {
    /* overflow-y: hidden; */
    display: flex;
    flex-direction: column;
    width: 75%;
}

#kc-info {
    white-space: normal; 
}

#kc-info-wrapper {
    font-size: 13px;
    margin-top: 20px;
}

#kc-form-options span {
    line-height: 30px;
}

#kc-terms-text {
    margin-bottom: 20px;
}

#kc-registration {
    margin-bottom: 15px;
}

/* TOTP */

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

ol#kc-totp-settings li {
    margin-top: 1em;
}

ol#kc-totp-settings li:first-of-type {
    margin-top: 0;
}

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

/* 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 rgba(255, 255, 255, 0.1);
    font-size: 12px;
    padding: 10px 30px;
}

#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 ul{
    display: flex;
    list-style-type: none;
    padding: 0;
}

#kc-social-providers ul li{
    margin-right: 5px;
    width: 24%;
    border: 1px solid #F0F0F1;
    border-radius: 8px;
    padding: 7px 0;
}

#kc-social-providers ul li:hover {
    background-color: #F7F9FC;
}

.turnback_opt {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0 -60px 75px;
    color: #00176b;
}

.form_header{
    font-size: 24px;
    font-weight: 700;
    color: #2C2E32;
    padding: 0;
    margin: 0;
}

.form_title {
    font-size: 14px;
    color: #2C2E32;
    margin: 0px;
}

.form_title-otp {
    font-size:  14px;
    color: #2C2E32;
    text-align: center;
}

.form-select-options-reset {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
}

.config-radio {
  display: block;
  position: relative;
  padding-left: 25px;
  margin-bottom: 12px;
  cursor: pointer;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.config-radio input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}
  
.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 20px;
    width: 20px;
    border: 1px solid #BABCC0;
    border-radius: 50%;
}
  
.config-radio:hover input ~ .checkmark {
    border: 1px solid #686D76;
}
  
.config-radio input:checked ~ .checkmark {
    background-color: #00176B;
    border: 0;
}
  
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}
  
.config-radio input:checked ~ .checkmark:after {
    display: block;
}
  
.config-radio .checkmark:after {
    top: 5px;
    left: 5px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: white;
}


.form-select-options-reset .first-opt{
    margin-right: 20px;
}

.custom-input {
    width: 100%;
}

.custom-input-wrapper {
    position: relative;
}

.custom-input-wrapper input {
    transition: border-color 0.3s ease;
}

.custom-input-wrapper input:focus {
    border-color: #000;
}

.custom-input-wrapper label {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 14px;
    transition: 0.3s ease all;
    font-weight: 500;
    padding: 0 4px;
    margin-left: 10px;
    color: #999999;
}

.group-method-getOTP {
    display: flex;
    flex-direction: column;
    border: 1px solid #F0F0F1;
    border-radius: 18px;
    padding: 10px;
}

.select-method-getOTP {
    display: flex;
    background-color: white;
    border: 1px solid #F0F0F1;
    border-radius: 8px;
    margin-bottom: 10px;
    justify-content: flex-start;
    padding: 5px 10px;
    font-weight: 600;
    font-size: 1.3rem;
}
.select-method-getOTP:last-child {
    margin-bottom: 0;
}

.select-method-getOTP:hover{
    background-color: #F7F9FC;
    cursor: pointer;
}

.select-method-getOTP:disabled {
    background-color: #f7f7f7;
    cursor: not-allowed;
}


.custom-input-wrapper input:focus + label,
.custom-input-wrapper input:not(:placeholder-shown) + label {
    top: 0;
    font-size: 15px;
    color: #000;
    background: white;
}


.otp-container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
}

.otp-input {
    width: 48px;
    height: 48px;
    font-size: 1.7rem;
    font-weight: 700;
    text-align: center;
    border: 1px solid #D0D2D5;
    border-radius: 4.8px;
    outline: none;
    transition: border-color 0.3s;
}

.otp-input:focus {
    border-color: #00176b;
}

.otp-countdown {
    font-size: 1.5rem;
    color: #00176b;
    font-weight: 600;
}

.submit-hidden {
    display: none;
}

input:-webkit-autofill {
    background-color: #e6f0ff !important;
    box-shadow: 0 0 0 1000px #e6f0ff inset !important;
    -webkit-text-fill-color: #000 !important;
}

input:-webkit-autofill ~ label {
    display: none;
}

.login_options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.org-group-input {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.org-group-input span {
    color: #00176b;
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 5px;
}

.checkbox-container {
    display: flex;
    font-family: Arial, sans-serif;
    font-size: 14px;
    color: #4a4a4a; 
}

.checkbox-container input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    accent-color: #002c77;
    border-radius: 4px;
}

.termsCheckbox {
    font-weight: 400;
}
.termsCheckbox a{
    font-weight: 700;
}

.custom-select-lang {
    padding: 4px 10px;
    border-radius: 8px;
}

/* #kc-social-providers ul {
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: row;
}

#kc-social-providers li {
    display: block;
    margin-top: 5px;
}

#kc-social-providers li:first-of-type {
    margin-top: 0;
} */

.country-code-list{
    position: absolute;
    width: 26%;
    height: 150px;
    overflow-y: scroll;
    border-radius: 8px;
    padding: 5px;
    background-color: #fff;
    border: 1px solid #F0F0F1;
    cursor: pointer;
    list-style-type: none;
    z-index: 99999999;
  }
  
  .country-code-list::-webkit-scrollbar {
    width: 5px;
  }
  
  .country-code-list::-webkit-scrollbar-thumb {
    background-color: #c0c0c0;
    border-radius: 10px;
  }
  
  .country-code-list::-webkit-scrollbar-track {
    background: #f0f0f0;
  }
  
  .country-code-list::-webkit-scrollbar-thumb:hover {
    background-color: #a0a0a0;
  }
  
  .country-code-list li{
    display: flex;
    align-items: center;
    padding: 6px;
  }
.country-code-search {
    width: 100%;
    padding: 4px;
    display: flex;
    align-items: center;
    margin-bottom: 5px;
    border: 1px solid #F0F0F1; 
    border-radius: 6px;
    box-sizing: border-box;
    outline: none; 
    transition: border 0.3s ease;
}

.country-code-search input:focus {
    border: none;
    box-shadow: none;
    outline: none;
}

.country-code-search:focus {
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.2);
}

.search-input {
    border: none;
    outline: none;
    flex-grow: 1;
}

.search-input:focus, .search-input:active, .search-input:focus-visible  {
    border: none;
}

.zocial {

}

.zocial:hover {
    color: #fff !important;
}

.zocial.facebook,
.zocial.github,
.zocial.google,
.zocial.microsoft,
.zocial.stackoverflow,
.zocial.linkedin,
.zocial.twitter {
    background-image: none;
    border-radius: 2px;

    font-family: "Open Sans", sans-serif;
    font-weight: normal;

    box-shadow: none;
    text-shadow: none;
}

.zocial.google {
    background-color: #dd4b39 !important;
}

.zocial.facebook:hover,
.zocial.github:hover,
.zocial.google:hover,
.zocial.microsoft:hover,
.zocial.stackoverflow:hover,
.zocial.linkedin:hover,
.zocial.twitter:hover {
    background-image: linear-gradient(rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.2) 100%) !important;
}

/* Copy of zocial windows classes to be used for microsoft's social provider button */
.zocial.microsoft {background-color: #0052a4; color: #fff;}
.zocial.microsoft:before { content: "\f15d"; }

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

    #kc-logo-wrapper {
        position: absolute;
        top: 50px;
        right: 50px;
    }

    .login-pf .container {
        padding-left: inherit;
    }
    .login-pf .container .login {
        padding-right: 20px;
    }
    .login-pf .container .details {
        border-left: none;
        padding-left: 20px;
    }

    #kc-locale {
        position: relative;
        width: 200px;
        left: -230px;
        text-align: right;
        z-index: 9999;
    }



}

@media (max-width: 767px) {

    #kc-logo-wrapper {
        background-position: center;
        width: 100%;
        margin: 20px 0;
    }

    #kc-header {
        float: none;
        text-align: center;
    }

    #kc-form {
        float: none;
    }

    #kc-info-wrapper {
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        margin-top: 15px;
        padding-top: 15px;
        padding-left: 0px;
        padding-right: 15px;
    }

    #kc-left-container {
        width: 100%;
        padding: 0 15px;
    }
    #kc-right-container {
        display: none;
    }

    .login-pf .container {
        padding-top: 15px;
        padding-bottom: 15px;
    }

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

    .country-code-list {
        width: 63%;
    }
}

@media (max-width: 446px) {
    .form_header {
        font-size: 20px;
    }
    .form_title {
        font-size: 12px;
    }

    .custom-input-wrapper label {
        font-size: 11px;
        padding: 0 4px;
        margin-left: 0px;
    }
    .custom-input-wrapper input:focus + label,
    .custom-input-wrapper input:not(:placeholder-shown) + label {
        top: 0;
        font-size: 11px;
        color: #000;
        background: white;
    }

    .form-select-options-reset {
        margin: 15px 0;
        font-size: 10px;
    }
    .checkmark {
        height: 17px;
        width: 17px;
    }

    .config-radio .checkmark:after {
        width: 7px;
        height: 7px;
    }

    .turnback_opt {
        margin: 0 -40px 75px;
    }

    #kc-left-container {
        width: 100%;
        padding: 0;
    }
}

.tooltip-otp {
    position: relative;
    cursor: pointer;
}

.tooltip-otp:hover::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    white-space: nowrap;
    font-size: 12px;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

.tooltip-otp::after {
    opacity: 0;
    pointer-events: none;
}