/* =========================================================
   PALAM BAKERS
   LOGIN POPUP
   FINAL CSS
========================================================= */


/* =========================================================
   POPUP
========================================================= */

.pb-login-modal {

    position: fixed;

    inset: 0;

    width: 100%;
    height: 100vh;

    z-index: 9999999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

}


/* OPEN */

.pb-login-modal.active {

    display: flex;

}


/* =========================================================
   OVERLAY
========================================================= */

.pb-login-overlay {

    position: absolute;

    inset: 0;

    width: 100%;
    height: 100%;

    background: rgba(0, 0, 0, 0.55);

}


/* =========================================================
   LOGIN BOX
========================================================= */

.pb-login-box {

    position: relative;

    z-index: 2;

    width: 430px;

    max-width: 100%;

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    box-sizing: border-box;

    background: #ffffff;

    border-radius: 12px;

    padding: 34px 38px 30px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.28);

    animation: pbLoginIn 0.25s ease;

}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes pbLoginIn {

    from {

        opacity: 0;

        transform:
            translateY(12px)
            scale(0.98);

    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);

    }

}


/* =========================================================
   CLOSE
========================================================= */

.pb-login-close {

    position: absolute;

    top: 12px;
    right: 14px;

    width: 34px;
    height: 34px;

    border: 0;

    padding: 0;

    background: transparent;

    color: #222222;

    font-size: 26px;

    line-height: 1;

    display: flex;

    align-items: center;
    justify-content: center;

    cursor: pointer;

    border-radius: 50%;

    z-index: 10;

}


.pb-login-close:hover {

    background: #f2f2f2;

}


/* =========================================================
   LOGO
========================================================= */

.pb-login-logo {

    display: flex;

    align-items: center;
    justify-content: center;

    margin-bottom: 16px;

}


.pb-login-logo img {

    width: 82px;
    height: 82px;

    object-fit: contain;

    display: block;

}


/* =========================================================
   HEAD
========================================================= */

.pb-login-head {

    text-align: center;

    margin-bottom: 22px;

}


.pb-login-head h2 {

    margin: 0;

    color: #172718;

    font-family: Georgia, serif;

    font-size: 28px;

    font-weight: 500;

    line-height: 1.2;

}


.pb-login-head p {

    margin: 8px 0 0;

    color: #777777;

    font-size: 13px;

    line-height: 1.5;

}


/* =========================================================
   TABS
========================================================= */

.pb-login-tabs {

    display: flex;

    align-items: center;
    justify-content: center;

    gap: 70px;

    margin-bottom: 25px;

    border-bottom: 1px solid #eeeeee;

}


.pb-login-tab {

    position: relative;

    border: 0;

    padding: 0 0 11px;

    margin: 0;

    background: transparent;

    color: #888888;

    font-family: Georgia, serif;

    font-size: 16px;

    line-height: 1;

    cursor: pointer;

}


.pb-login-tab.active {

    color: #172718;

}


.pb-login-tab.active::after {

    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -1px;

    height: 2px;

    background: #687158;

}


/* =========================================================
   ERROR
========================================================= */

.pb-login-error {

    margin-bottom: 15px;

    padding: 10px 12px;

    box-sizing: border-box;

    background: #fff2f0;

    border: 1px solid #f0c8c2;

    border-radius: 5px;

    color: #a33a2c;

    font-size: 12px;

    line-height: 1.5;

}


/* =========================================================
   FORM
========================================================= */

.pb-login-form {

    width: 100%;

    margin: 0;

    padding: 0;

}


/* =========================================================
   FORM GROUP
========================================================= */

.pb-login-group {

    width: 100%;

    margin-bottom: 17px;

}


.pb-login-group label {

    display: block;

    margin-bottom: 7px;

    color: #172718;

    font-size: 13px;

    font-weight: 600;

    line-height: 1.4;

}


.pb-login-group input {

    display: block;

    width: 100%;

    height: 48px;

    box-sizing: border-box;

    margin: 0;

    padding: 0 14px;

    border: 1px solid #cfcfcf;

    border-radius: 5px;

    background: #ffffff;

    color: #222222;

    font-family: inherit;

    font-size: 14px;

    outline: none;

}


.pb-login-group input::placeholder {

    color: #999999;

}


.pb-login-group input:focus {

    border-color: #687158;

    box-shadow:
        0 0 0 2px rgba(104, 113, 88, 0.10);

}


/* =========================================================
   SEND OTP
========================================================= */

.pb-login-submit {

    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;

    min-height: 48px;

    box-sizing: border-box;

    border: 0;

    border-radius: 5px;

    padding: 0 16px;

    background: #12351f;

    color: #ffffff;

    font-family: inherit;

    font-size: 13px;

    font-weight: 700;

    letter-spacing: 0.3px;

    cursor: pointer;

}


.pb-login-submit:hover {

    background: #556047;

}


/* =========================================================
   OR
========================================================= */

.pb-login-or {

    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 22px 0;

}


.pb-login-or::before {

    content: "";

    position: absolute;

    left: 0;
    right: 0;

    height: 1px;

    background: #eeeeee;

}


.pb-login-or span {

    position: relative;

    z-index: 1;

    padding: 0 11px;

    background: #ffffff;

    color: #999999;

    font-size: 11px;

}


/* =========================================================
   BOTTOM
========================================================= */

.pb-login-bottom {

    margin: 0;

    text-align: center;

    color: #555555;

    font-size: 13px;

    line-height: 1.5;

}


.pb-login-bottom a {

    color: #687158;

    font-weight: 700;

    text-decoration: none;

}


.pb-login-bottom a:hover {

    text-decoration: underline;

}


/* =========================================================
   BODY LOCK
========================================================= */

body.pb-login-open {

    overflow: hidden;

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .pb-login-modal {

        padding: 12px;

    }


    .pb-login-box {

        width: 100%;

        max-width: 100%;

        max-height: calc(100vh - 24px);

        padding: 30px 22px 24px;

        border-radius: 10px;

    }


    .pb-login-logo {

        margin-bottom: 12px;

    }


    .pb-login-logo img {

        width: 70px;
        height: 70px;

    }


    .pb-login-head {

        margin-bottom: 20px;

    }


    .pb-login-head h2 {

        font-size: 25px;

    }


    .pb-login-head p {

        font-size: 12px;

    }


    .pb-login-tabs {

        gap: 50px;

        margin-bottom: 22px;

    }


    .pb-login-tab {

        font-size: 16px;

    }


    .pb-login-group input {

        height: 46px;

    }


    .pb-login-submit {

        min-height: 46px;

    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .pb-login-box {

        padding: 28px 18px 22px;

    }


    .pb-login-tabs {

        gap: 38px;

    }

}





/* =========================================================
   PALAM BAKERS
   LOGIN POPUP
========================================================= */

.pb-login-modal {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100vh;
    z-index: 9999999;

    display: none;

    align-items: center;
    justify-content: center;
}

.pb-login-modal.active {
    display: flex;
}


/* =========================================================
   OVERLAY
========================================================= */

.pb-login-modal::before {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.58);
}


/* =========================================================
   LOGIN BOX
========================================================= */

.pb-login-box {
    position: relative;
    z-index: 2;

    width: 540px;
    max-width: calc(100vw - 30px);

    background: #ffffff;

    border: 1px solid #222;
    border-radius: 10px;

    padding: 38px 46px 30px;

    box-shadow:
        0 25px 70px rgba(0, 0, 0, 0.30);

    animation: pbLoginIn 0.25s ease;
}


/* =========================================================
   ANIMATION
========================================================= */

@keyframes pbLoginIn {

    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }

}


/* =========================================================
   CLOSE
========================================================= */

.pb-login-close {
    position: absolute;

    top: 14px;
    right: 16px;

    width: 34px;
    height: 34px;

    border: 0;
    outline: 0;

    background: transparent;

    color: #222;

    font-size: 25px;
    line-height: 1;

    cursor: pointer;

    display: flex;
    align-items: center;
    justify-content: center;
}

.pb-login-close:hover {
    background: #f3f3f3;
    border-radius: 50%;
}


/* =========================================================
   LOGO
========================================================= */

.pb-login-logo {
    text-align: center;
    margin-bottom: 18px;
}

.pb-login-logo img {
    width: 92px;
    height: 92px;

    object-fit: contain;

    display: block;

    margin: 0 auto;
}


/* =========================================================
   HEADING
========================================================= */

.pb-login-head {
    text-align: center;
    margin-bottom: 22px;
}

.pb-login-head h2 {
    margin: 0;

    color: #172718;

    font-family: Georgia, serif;

    font-size: 30px;
    font-weight: 500;
}

.pb-login-head p {
    margin: 8px 0 0;

    color: #777;

    font-size: 13px;
}


/* =========================================================
   TABS
========================================================= */

.pb-login-tabs {
    display: flex;

    justify-content: center;

    gap: 75px;

    margin-bottom: 28px;

    border-bottom: 1px solid #eeeeee;
}

.pb-login-tab {
    position: relative;

    border: 0;
    outline: 0;

    background: transparent;

    padding: 0 0 12px;

    color: #777;

    font-family: Georgia, serif;

    font-size: 17px;

    cursor: pointer;
}

.pb-login-tab.active {
    color: #172718;
}

.pb-login-tab.active::after {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    bottom: -1px;

    height: 2px;

    background: #687158;
}


/* =========================================================
   ERROR
========================================================= */

.pb-login-error {
    margin-bottom: 15px;

    padding: 10px 12px;

    background: #fff2f0;

    border: 1px solid #f0c8c2;

    border-radius: 4px;

    color: #a33a2c;

    font-size: 12px;
}


/* =========================================================
   FORM GROUP
========================================================= */

.pb-login-group {
    margin-bottom: 18px;
}

.pb-login-group label {
    display: block;

    margin-bottom: 8px;

    color: #172718;

    font-size: 13px;
    font-weight: 600;
}


/* =========================================================
   INPUT
========================================================= */

.pb-login-group input {
    width: 100%;
    height: 48px;

    padding: 0 14px;

    box-sizing: border-box;

    border: 1px solid #cfcfcf;

    border-radius: 4px;

    background: #ffffff;

    color: #222;

    font-size: 14px;

    outline: none;
}

.pb-login-group input:focus {
    border-color: #687158;

    box-shadow:
        0 0 0 2px rgba(104, 113, 88, 0.10);
}


/* =========================================================
   SEND OTP
========================================================= */

.pb-login-submit {
    width: 100%;
    min-height: 48px;

    border: 0;
    outline: 0;

    border-radius: 4px;

    background: #172718;

    color: #ffffff;

    font-size: 13px;
    font-weight: 700;

    letter-spacing: 0.3px;

    cursor: pointer;

    transition: background 0.2s ease;
}

.pb-login-submit:hover {
    background: #687158;
}


/* =========================================================
   OR
========================================================= */

.pb-login-or {
    position: relative;

    display: flex;

    align-items: center;
    justify-content: center;

    margin: 24px 0;
}

.pb-login-or::before {
    content: "";

    position: absolute;

    left: 0;
    right: 0;

    height: 1px;

    background: #eeeeee;
}

.pb-login-or span {
    position: relative;

    padding: 0 12px;

    background: #ffffff;

    color: #999;

    font-size: 11px;
}


/* =========================================================
   BOTTOM
========================================================= */

.pb-login-bottom {
    text-align: center;

    color: #555;

    font-size: 13px;
}

.pb-login-bottom a {
    color: #687158;

    font-weight: 700;

    text-decoration: none;
}

.pb-login-bottom a:hover {
    text-decoration: underline;
}


/* =========================================================
   BODY LOCK
========================================================= */

body.pb-login-open {
    overflow: hidden;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 600px) {

    .pb-login-box {
        width: calc(100vw - 24px);
        max-width: calc(100vw - 24px);

        padding: 32px 22px 25px;

        border-radius: 8px;
    }

    .pb-login-logo img {
        width: 82px;
        height: 82px;
    }

    .pb-login-head h2 {
        font-size: 25px;
    }

    .pb-login-tabs {
        gap: 55px;
    }

    .pb-login-tab {
        font-size: 17px;
    }

}


@media (max-width: 380px) {

    .pb-login-box {
        padding: 28px 18px 22px;
    }

    .pb-login-logo img {
        width: 72px;
        height: 72px;
    }

    .pb-login-head h2 {
        font-size: 23px;
    }

}