/* google sans font */
@font-face {
    font-family: 'Google Sans';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/googlesans/v62/4Ua_rENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhWdRFD48TE63OOYKtrwEIJllpyw.ttf) format('truetype');
}

@font-face {
    font-family: 'Google Sans';
    font-style: normal;
    font-weight: 400;
    src: url(../fonts/googlesans/v62/4Ua_rENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhX9RFD48TE63OOYKtrwEIJllpyw.ttf) format('truetype');
}

@font-face {
    font-family: 'Google Sans';
    font-style: normal;
    font-weight: 500;
    src: url(../fonts/googlesans/v62/4Ua_rENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhWdRFD48TE63OOYKtrw2IJllpyw.ttf) format('truetype');
}

@font-face {
    font-family: 'Google Sans';
    font-style: normal;
    font-weight: 500;
    src: url(../fonts/googlesans/v62/4Ua_rENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhX9RFD48TE63OOYKtrw2IJllpyw.ttf) format('truetype');
}

@font-face {
    font-family: 'Google Sans';
    font-style: normal;
    font-weight: 700;
    src: url(../fonts/googlesans/v62/4Ua_rENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhWdRFD48TE63OOYKtrzjJ5llpyw.ttf) format('truetype');
}

@font-face {
    font-family: 'Google Sans';
    font-style: normal;
    font-weight: 700;
    src: url(../fonts/googlesans/v62/4Ua_rENHsxJlGDuGo1OIlJfC6l_24rlCK1Yo_Iqcsih3SAyH6cAwhX9RFD48TE63OOYKtrzjJ5llpyw.ttf) format('truetype');
}

body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    background: #F0F4F9;
    font-family: 'Google Sans', 'Roboto', Arial, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
}

.bg {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.container {
    width: auto;
    height: auto;
    margin: auto;
}

.login-card {
    background: #fff;
    border-radius: 24px;
    width: 1040px;
    display: flex;
    flex-direction: row;
    padding: 0;
    min-height: 384px;
}

.login-left {
    flex: 1;
    min-width: 445px;
    padding: 35px 35px 35px 35px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    border-top-left-radius: 24px;
    border-bottom-left-radius: 24px;
}

.logo {
    margin-bottom: 25px;
    display: block;
}

.signin-title {
    display: inline-block;
    font-weight: 400;
    font-size: 2.75rem;
    color: #202124;
    margin: 0 0 16px 0;
    letter-spacing: 0;
}

.welcome-title {
    display: none;
    font-weight: 400;
    font-size: 2.75rem;
    color: #202124;
    margin: 0 0 16px 0;
    letter-spacing: 0;
}

.desc {
    display: inline-block;
    color: #202124;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.client-info {
    display: none;
}

.login-right {
    flex: 1;
    padding: 48px 40px 40px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-top-right-radius: 24px;
    border-bottom-right-radius: 24px;
    margin-top: 50px;
    overflow: hidden;
}

.login-form {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

div[class^='pkm-input'] {
    position: relative;
    margin-top: 32px;
    width: 100%;
    height: 53px;
}

div[class^='pkm-input'] input {
    width: 100%;
    font-size: 1.1rem;
    padding: 13px 15px;
    border: 1px solid #565659;
    border-radius: 4px;
    background: #fff;
    outline: none;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

div[class^='pkm-input'] input:focus {
    border: 2px solid #0B57D0;
}

div[class^='pkm-input'] label {
    position: absolute;
    left: 12px;
    top: 16px;
    font-size: 1rem;
    color: #565659;
    background: #fff;
    padding: 0 4px;
    pointer-events: none;
    transition:
        top 0.2s cubic-bezier(.4,0,.2,1),
        left 0.2s cubic-bezier(.4,0,.2,1),
        font-size 0.2s cubic-bezier(.4,0,.2,1),
        color 0.2s cubic-bezier(.4,0,.2,1);
    width: fit-content;
}

/* Floating effect: when focused or not empty */
div[class^='pkm-input'] input:focus + label,
div[class^='pkm-input'] input:not(:placeholder-shown) + label {
    top: -8px;
    left: 8px;
    font-size: 0.80rem;
    color: #0B57D0;
    background: #fff;
    z-index: 1;
}

/* Border and label gray when not focused but not empty */
div[class^='pkm-input'] input:not(:focus):not(:placeholder-shown) + label {
    color: #565659;
}

/* Optional: Hide the placeholder visually */
div[class^='pkm-input'] input::placeholder {
    color: transparent;
}

.forgot {
    padding-top: 9px;
    margin: 0 0 16px 0;
}

.forgot a {
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03rem;
    color: #0B57D0;
    text-decoration: none;
    padding: 1px 6px;
    border-radius: 24px;
    margin-left: -3px;
}

.forgot a:hover {
    text-decoration: none;
    background: #ECF2FB;
}

.info {
    font-size: 0.9rem;
    color: #444746;
    margin-bottom: 24px;
    margin-top: 24px;
}

.info a {
    font-weight: 500;
    color: #0B57D0;
    text-decoration: none;
}

.info a:hover {
    text-decoration: underline;
}

.pkm-input-password {
    display: none;
    margin-top: 52px !important;
}

.email-error {
    display: none;
    flex-wrap: nowrap;
    align-items: center;
    color: #B3261E;
    margin: 4px 0 0 0;
}

.pass-error {
    display: none;
    flex-wrap: nowrap;
    align-items: center;
    color: #B3261E;
    margin: 4px 0 0 0;
}

.error-message {
    font-size: 0.8rem;
    margin: 0 0 0 5px;
}

.actions {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-top: 16px;
}

.action-email {
    width: 100%;
    display: flex;
    justify-content: end;
    align-items: center;
    margin-top: auto;
}

.action-pass {
    width: 100%;
    display: none;
    justify-content: end;
    align-items: center;
    margin-top: 53px;
}

.text-btn {
    font-weight: 500;
    color: #0B57D0;
    font-size: 0.875rem;
    text-decoration: none;
    border: none;
    cursor: pointer;
    padding: 12px 16px;
    margin-right: 10px;
    border-radius: 24px;
}

.text-btn:hover {
    text-decoration: none;
    background: #F5F8FD;
}

.next-btn {
    font-weight: 700;
    background: #0B57D0;
    color: #fff;
    border: none;
    border-radius: 24px;
    padding: 12px 24px;
    margin-left: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.2s;
}

.next-btn:hover {
    background: #0E4EB4;
}

.more-items {
    display: flex;
    justify-content: space-between;
    padding: 0 1px;
    align-items: center;
    font-size: 0.75rem;
}


.footer-left {
    margin: 16px 12px 16px 0;
    border-radius: 8px;
}

.footer-right a {
    color: #212221;
    text-decoration: none;
    margin: 16px 4px;
    padding: 8px 12px;
    border-radius: 8px;
}

.footer-right a:hover {
    text-decoration: none;
    background-color: #E2E6EA;
}

#blur-overlay {
    position: fixed;
    z-index: 9999;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(255,255,255,0.5); /* semi-transparent white */
    backdrop-filter: blur(0.5px);
    display: none;
    align-items: center;
    justify-content: center;
}

.loader {
    top: -222px;
    width: 50%;
    height: 4.8px;
    display: inline-block;
    position: relative;
    background: rgb(239 239 239);
    overflow: hidden;
}
.loader::after {
    content: '';
    width: 500px;
    height: 4.8px;
    background: #0B57D0;
    position: absolute;
    top: 0;
    left: 0;
    box-sizing: border-box;
    animation: animloader 1s linear infinite;
}

@keyframes animloader {
    0% {
        left: 0;
        width: 500px;
        transform: translateX(-100%);
    }

    20%{
        width: 300px;
    }

    50% {
        width: 700px;
    }

    80% {
        width: 300px;
    }

    100% {
        left: 100%;
        width: 500px;
        transform: translateX(0%);
    }
}

.client-info-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 150px;
    max-height: 25px;
    border: 1px solid #747775;
    background: #fff;
    border-radius: 999px;
    padding: 2px 8px 2px 2px;
    font-size: 1rem;
    color: #222;
    cursor: pointer;
    outline: none;
}

.client-info-btn:hover, .client-info-btn:focus {
    background-color: #EDEDED;
}

.client-info-btn > svg {
    margin-right: 8px;
    height: 30px;
}

.client-info-btn .client-email {
    font-size: 0.875rem;
    font-weight: 500;
    width: fit-content;
    text-align: left;
    color: #222;
}

.client-info-btn .dropdown-arrow {
    margin-left: 5px;
    display: flex;
    align-items: center;
    float: right;
}




.custom-checkbox {
    display: none;
    align-items: center;
    font-size: 0.9rem;
    margin-top: 13px;
    margin-left: -11px;
    cursor: pointer;
    user-select: none;
    font-family: Arial, sans-serif;
    position: relative;
}

/* Hide default checkbox */
.custom-checkbox input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* The circle background, always visible */
.custom-checkbox .circle-bg {
    position: absolute;
    left: 0;
    top: 54%;
    width: 42px;
    height: 42px;
    transform: translateY(-50%);
    border-radius: 50%;
    background: #fff; /* Default: white */
    transition: background 0.2s;
    z-index: 0;
}

/* The square checkbox */
.custom-checkbox .box {
    position: relative;
    display: inline-block;
    width: 17px;
    height: 17px;
    border: 2px solid #222;
    border-radius: 3px;
    background: #fff;
    margin-right: 24px;
    margin-left: 12px; /* To center square in circle */
    box-sizing: border-box;
    transition: border-color 0.2s, background 0.2s;
    z-index: 1;
}

/* Default state (Screenshot-11): white circle, black border */
.custom-checkbox .circle-bg {
    background: #fff;
}

/* Hover state (Screenshot-12): light blue circle, blue border */
.custom-checkbox:hover .circle-bg,
.custom-checkbox input[type="checkbox"]:hover ~ .circle-bg {
    background: #e3f0ff;
}
.custom-checkbox:hover .box,
.custom-checkbox input[type="checkbox"]:hover ~ .box {
    border-color: #1976d2;
}

/* Active/click state (Screenshot-13): darker blue circle, blue border */
.custom-checkbox input[type="checkbox"]:active ~ .circle-bg,
.custom-checkbox:active .circle-bg {
    background: #b2d4fa;
}
.custom-checkbox input[type="checkbox"]:active ~ .box,
.custom-checkbox:active .box {
    border-color: #1976d2;
}

/* Checked state (Screenshot-16): blue square, white checkmark, blue border, circle changes on hover/click as above */
.custom-checkbox input[type="checkbox"]:checked ~ .box {
    background: #1976d2;
    border-color: #1976d2;
}
.custom-checkbox input[type="checkbox"]:checked ~ .box::after {
    content: "";
    position: absolute;
    left: 3px;
    top: -1px;
    width: 4px;
    height: 8px;
    border: solid #fff;
    border-width: 0 3px 3px 0;
    transform: rotate(45deg);
    border-radius: 2px;
}

/* Checked + hover/click: circle changes as above */
.custom-checkbox input[type="checkbox"]:checked:hover ~ .circle-bg,
.custom-checkbox input[type="checkbox"]:checked:focus ~ .circle-bg {
    background: #e3f0ff;
}
.custom-checkbox input[type="checkbox"]:checked:active ~ .circle-bg {
    background: #b2d4fa;
}

.custom-dropdown {
    width: 200px;
    position: relative;
    font-family: Roboto, Arial, sans-serif;
    font-size: 12px;
    outline: none;
}

.dropdown-selected {
    padding: 10px 10px 10px 16px;
    border-radius: 8px;
    color: #202124;
    cursor: pointer;
    position: relative;
    user-select: none;
    display: flex;
    align-items: center;
}

.dropdown-selected:hover {
    background-color: #e2e6ea;
}

.language-dropdown-arrow {
    position: absolute;
    right: 16px;
    top: 50%;
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid #202124;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Dropup: show menu above the trigger */
.dropup .dropdown-list {
    bottom: 85%;
    top: auto;
}

.dropdown-list {
    display: none; /* Change to 'none' when closed */
    position: absolute;
    width: 90%;
    max-height: 340px;
    background: #fff;
    border-radius: 12px;
    overflow-y: auto;
    z-index: 1000;
    margin: 0;
    padding: 8px 0;
    list-style: none;
    border: none;
    /* Default: dropdown below */
    top: 110%;
    box-shadow: 0 5px 5px -3px rgba(0, 0, 0, .2), 0 8px 10px 1px rgba(0, 0, 0, .14), 0 3px 14px 2px rgba(0, 0, 0, .12);
}

/* Custom Scrollbar Styling */
.dropdown-list::-webkit-scrollbar {
    width: 8px;
    background: #f1f3f4;
    border-radius: 8px;
}
.dropdown-list::-webkit-scrollbar-thumb {
    background: #c1c7d0;
    border-radius: 8px;
}
.dropdown-list::-webkit-scrollbar-thumb:hover {
    background: #b0b8c1;
}
.dropdown-list::-webkit-scrollbar-track {
    background: #f1f3f4;
    border-radius: 8px;
}

/* Firefox scrollbar */
.dropdown-list {
    scrollbar-width: thin;
    scrollbar-color: #c1c7d0 #f1f3f4;
}

.dropdown-option {
    padding: 10px 24px;
    cursor: pointer;
    color: #202124;
    background: none;
    border: none;
    font-size: 12px;
    border-radius: 0;
    transition: background 0.18s;
}

.dropdown-option:hover,
.dropdown-option.highlighted {
    background: #e8f0fe;
}

.dropdown-option.selected {
    background: #e8f0fe;
    color: #174ea6;
    font-weight: 500;
}

@keyframes slideIn {
    from {
        transform: translateX(120%);
    }
    to {
        transform: translateX(0);
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-120%);
    }
}

@media (max-width: 1038px) {
    body, html {
        background-color: #fff;
    }

    .container {
        margin: unset;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .login-card {
        flex-direction: row;
        min-height: unset;
        width: auto;
    }
    .login-left {
        min-width: auto;
    }
    .login-left, .login-right {
        border-radius: 24px 24px 0 0;
        padding: 32px 24px 16px 24px;
    }
    .login-right {
        margin-top: 84px;
        border-radius: 0 0 24px 24px;
        padding-top: 0;
    }

    .text-btn {
        padding: 0;
    }

    .actions {
        margin-top: 40px;
    }

    #blur-overlay {
        align-items: unset;
        justify-content: unset;
    }

    .loader {
        top: 0 !important;
        margin: 0 auto;
        width: 85%;
    }


}

@media (max-width: 600px) {
    body, html {
        background-color: #fff;
    }

    .container {
        margin: unset;
        height: 100vh;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
    }

    .login-card {
        flex-direction: column;
        margin: unset;
        padding: 0;
        height: 100%;
    }

    .login-left {
        padding-top: 25px;
        max-height: fit-content;
    }
    .login-right {
        margin-top: unset;
        max-height: fit-content;
    }
    .pkm-input-group {
        margin-top: 3px;
    }

    .more-items {
        padding: 0 24px 0 10px;
    }

    .client-info{
        min-width: auto;
    }

    div[class^='action-'] {
        justify-content: space-between;
    }

    .pass-error {
        align-items: flex-start;
    }

    @keyframes animloader {
        0% {
            left: 0;
            width: 300px;
            transform: translateX(-100%);
        }

        20% {
            width: 100px;
        }

        50% {
            width: 200px;
        }

        80% {
            width: 100px;
        }

        100% {
            left: 100%;
            width: 300px;
            transform: translateX(0%);
        }
    }
}

@media (max-width: 407px) {
    .more-items {
        flex-direction: column;
        align-items: start;
        padding-left: 24px;
    }

    .footer-left {
        margin-bottom: 20px;
        padding: 0;
        margin-top: 20px;
    }

    .footer-right {
        padding-left: 0;
        padding-top: 20px;
        padding-bottom: 20px;
        margin-top: 20px;
        margin-bottom: 20px;
    }

    .footer-right a:first-child {
        margin-left: unset;
        padding-left: 4px;
    }
}
