/* =========================================================
   KAILASH KOONDAN JEWELLERS
   LOGIN / OTP SYSTEM
========================================================= */


/* =========================================================
   NAVBAR LOGIN
========================================================= */

.kk-login-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.kk-login-btn {
    border: none;
    background: transparent;
    cursor: pointer;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    gap: 2px;

    padding: 2px 7px;

    color: #57000b;

    font-family: "Poppins", sans-serif;

    transition: 0.3s ease;
}

.kk-login-btn:hover {
    opacity: 0.7;
}

.kk-user-icon {
    width: 25px;
    height: 25px;

    border: 1.4px solid #57000b;

    border-radius: 50%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 13px;
}

.kk-login-name {
    max-width: 75px;

    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;

    font-size: 9px;
    font-weight: 500;
}


/* =========================================================
   ACCOUNT DROPDOWN
========================================================= */

.kk-account-menu {
    position: absolute;

    top: calc(100% + 12px);
    right: 0;

    width: 235px;

    padding: 17px;

    background: #fff;

    border: 1px solid rgba(87, 0, 11, 0.12);

    border-radius: 7px;

    box-shadow:
        0 18px 50px rgba(0, 0, 0, 0.16);

    opacity: 0;
    visibility: hidden;

    transform: translateY(-8px);

    transition: 0.25s ease;

    z-index: 9999;
}

.kk-account-menu.show {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);
}

.kk-account-header {
    display: flex;
    align-items: center;

    gap: 11px;

    padding-bottom: 13px;

    border-bottom: 1px solid #eee;
}

.kk-account-avatar {
    width: 40px;
    height: 40px;

    flex-shrink: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #57000b;

    color: #e8c77b;

    font-size: 15px;
}

.kk-account-header strong {
    display: block;

    color: #57000b;

    font-family: "Cormorant Garamond", serif;

    font-size: 19px;
}

.kk-account-header small {
    display: block;

    margin-top: 2px;

    color: #888;

    font-family: "Poppins", sans-serif;

    font-size: 10px;
}

.kk-logout-btn {
    width: 100%;

    margin-top: 14px;

    padding: 9px;

    background: transparent;

    border: 1px solid #57000b;

    border-radius: 4px;

    color: #57000b;

    cursor: pointer;

    font-family: "Poppins", sans-serif;

    font-size: 11px;

    transition: 0.25s ease;
}

.kk-logout-btn:hover {
    background: #57000b;

    color: #fff;
}


/* =========================================================
   OVERLAY
========================================================= */

.kk-login-overlay {
    position: fixed;

    inset: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    padding: 20px;

    background:
        rgba(28, 0, 4, 0.68);

    backdrop-filter: blur(5px);

    z-index: 100000;

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.kk-login-overlay.show {
    opacity: 1;
    visibility: visible;
}


/* =========================================================
   MODAL
========================================================= */

.kk-login-modal {
    position: relative;

    width: 100%;
    max-width: 430px;

    max-height: 92vh;

    overflow-y: auto;

    padding: 38px 38px 32px;

    background: #fff;

    border-radius: 8px;

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.35);

    transform:
        translateY(25px)
        scale(0.97);

    transition: 0.35s ease;
}

.kk-login-overlay.show .kk-login-modal {
    transform:
        translateY(0)
        scale(1);
}


/* =========================================================
   CLOSE
========================================================= */

.kk-login-close {
    position: absolute;

    top: 12px;
    right: 15px;

    width: 30px;
    height: 30px;

    border: none;

    background: transparent;

    color: #57000b;

    font-size: 28px;

    line-height: 1;

    cursor: pointer;

    transition: 0.3s ease;
}

.kk-login-close:hover {
    transform: rotate(90deg);
}


/* =========================================================
   STEPS
========================================================= */

.kk-login-step {
    display: none;

    text-align: center;
}

.kk-login-step.active {
    display: block;
}


/* =========================================================
   LOGO
========================================================= */

.kk-login-logo {
    width: 64px;
    height: 64px;

    margin: 0 auto 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    overflow: hidden;

    border-radius: 50%;

    background: #57000b;

    border: 2px solid #e8c77b;
}

.kk-login-logo img {
    width: 100%;
    height: 100%;

    object-fit: contain;
}


/* =========================================================
   LABEL
========================================================= */

.kk-login-label {
    display: block;

    margin-bottom: 5px;

    color: #b18b3e;

    font-family: "Poppins", sans-serif;

    font-size: 9px;

    font-weight: 600;

    letter-spacing: 1.8px;
}


/* =========================================================
   HEADING
========================================================= */

.kk-login-step h2 {
    margin: 0;

    color: #57000b;

    font-family: "Cormorant Garamond", serif;

    font-size: 31px;

    font-weight: 600;
}

.kk-login-subtitle {
    margin: 7px 0 24px;

    color: #777;

    font-family: "Poppins", sans-serif;

    font-size: 12px;

    line-height: 1.6;
}

.kk-login-subtitle strong {
    color: #57000b;
}


/* =========================================================
   INPUT
========================================================= */

.kk-input-group {
    margin-bottom: 14px;

    text-align: left;
}

.kk-input-group label {
    display: block;

    margin-bottom: 6px;

    color: #57000b;

    font-family: "Poppins", sans-serif;

    font-size: 11px;

    font-weight: 500;
}

.kk-input-group input {
    width: 100%;
    height: 46px;

    box-sizing: border-box;

    padding: 0 13px;

    border: 1px solid #ddd;

    border-radius: 4px;

    outline: none;

    background: #fff;

    color: #333;

    font-family: "Poppins", sans-serif;

    font-size: 12px;

    transition: 0.25s ease;
}

.kk-input-group input:focus {
    border-color: #57000b;

    box-shadow:
        0 0 0 3px rgba(87, 0, 11, 0.07);
}


/* =========================================================
   MOBILE
========================================================= */

.kk-mobile-input {
    display: flex;

    height: 46px;

    overflow: hidden;

    border: 1px solid #ddd;

    border-radius: 4px;

    transition: 0.25s ease;
}

.kk-mobile-input:focus-within {
    border-color: #57000b;

    box-shadow:
        0 0 0 3px rgba(87, 0, 11, 0.07);
}

.kk-country-code {
    display: flex;

    align-items: center;

    padding: 0 12px;

    background: #f7f3ee;

    color: #57000b;

    border-right: 1px solid #ddd;

    font-family: "Poppins", sans-serif;

    font-size: 12px;

    font-weight: 500;
}

.kk-mobile-input input {
    flex: 1;

    height: 100% !important;

    border: none !important;

    box-shadow: none !important;

    border-radius: 0 !important;
}


/* =========================================================
   ERRORS
========================================================= */

.kk-input-error {
    display: block;

    min-height: 15px;

    margin-top: 4px;

    color: #c62828;

    font-family: "Poppins", sans-serif;

    font-size: 10px;
}


/* =========================================================
   PRIMARY BUTTON
========================================================= */

.kk-primary-btn {
    position: relative;

    width: 100%;

    height: 48px;

    margin-top: 4px;

    border: none;

    border-radius: 4px;

    background: #57000b;

    color: #e8c77b;

    cursor: pointer;

    font-family: "Poppins", sans-serif;

    font-size: 11px;

    font-weight: 600;

    letter-spacing: 1px;

    transition: 0.3s ease;
}

.kk-primary-btn:hover {
    background: #72000f;

    transform: translateY(-1px);
}

.kk-primary-btn:disabled {
    opacity: 0.65;

    cursor: not-allowed;
}


/* =========================================================
   LOADER
========================================================= */

.kk-loader {
    display: none;

    width: 17px;
    height: 17px;

    margin: auto;

    border: 2px solid rgba(232, 199, 123, 0.35);

    border-top-color: #e8c77b;

    border-radius: 50%;

    animation: kkSpin 0.7s linear infinite;
}

@keyframes kkSpin {
    to {
        transform: rotate(360deg);
    }
}

.kk-primary-btn.loading
#kkSendOtpText,
.kk-primary-btn.loading
#kkVerifyOtpText {
    display: none;
}

.kk-primary-btn.loading
.kk-loader {
    display: block;
}


/* =========================================================
   NOTE
========================================================= */

.kk-login-note {
    margin: 13px 0 0;

    color: #aaa;

    font-family: "Poppins", sans-serif;

    font-size: 8px;

    line-height: 1.5;
}


/* =========================================================
   OTP
========================================================= */

.kk-otp-icon {
    width: 58px;
    height: 58px;

    margin: 4px auto 13px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #f7f3ee;

    border: 1px solid #e8c77b;

    color: #57000b;

    font-size: 21px;
}

.kk-otp-container {
    display: flex;

    justify-content: center;

    gap: 7px;

    margin: 24px 0 4px;
}

.kk-otp-input {
    width: 45px;
    height: 50px;

    border: 1px solid #ddd;

    border-radius: 4px;

    outline: none;

    text-align: center;

    color: #57000b;

    font-family: "Poppins", sans-serif;

    font-size: 19px;

    font-weight: 600;

    transition: 0.25s ease;
}

.kk-otp-input:focus {
    border-color: #57000b;

    box-shadow:
        0 0 0 3px rgba(87, 0, 11, 0.07);
}


/* =========================================================
   RESEND
========================================================= */

.kk-resend-area {
    margin-top: 17px;

    color: #888;

    font-family: "Poppins", sans-serif;

    font-size: 10px;
}

#kkResendOtpBtn {
    padding: 0;

    border: none;

    background: transparent;

    color: #57000b;

    cursor: pointer;

    font-family: "Poppins", sans-serif;

    font-size: 10px;

    font-weight: 600;
}

#kkResendOtpBtn:disabled {
    color: #aaa;

    cursor: not-allowed;
}


/* =========================================================
   CHANGE NUMBER
========================================================= */

.kk-change-number {
    margin-top: 16px;

    border: none;

    background: transparent;

    color: #57000b;

    cursor: pointer;

    font-family: "Poppins", sans-serif;

    font-size: 10px;
}


/* =========================================================
   SUCCESS
========================================================= */

.kk-success-icon {
    width: 75px;
    height: 75px;

    margin: 8px auto 18px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background: #57000b;

    border: 2px solid #e8c77b;

    color: #e8c77b;

    font-size: 30px;

    animation: kkSuccessPop 0.5s ease;
}

@keyframes kkSuccessPop {

    0% {
        transform: scale(0);
    }

    70% {
        transform: scale(1.1);
    }

    100% {
        transform: scale(1);
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 768px) {

    .kk-login-wrapper {
        margin-left: 4px;
    }

    .kk-login-name {
        max-width: 60px;
    }

    .kk-login-modal {
        max-width: 100%;

        padding: 36px 24px 28px;
    }

    .kk-login-step h2 {
        font-size: 27px;
    }

    .kk-account-menu {
        right: -10px;

        width: 215px;
    }

}


@media (max-width: 420px) {

    .kk-login-modal {
        padding-left: 18px;
        padding-right: 18px;
    }

    .kk-otp-container {
        gap: 5px;
    }

    .kk-otp-input {
        width: 41px;
        height: 47px;
    }

}