/* =========================================================
   Vrindavan Digital
   AUTHENTICATION
========================================================= */


/* =========================================================
   AUTH PAGE
========================================================= */

.auth-page {
    padding: 70px 0 110px;
    background: #f5f3ef;
}

.auth-page .container {
    max-width: 1320px;
}

.auth-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    width: 100%;
    min-height: 720px;
    overflow: hidden;
    background: #fff;
}


/* =========================================================
   AUTH PAGE — IMAGE
========================================================= */

.auth-image {
    position: relative;
    min-width: 0;
    min-height: 720px;
    overflow: hidden;
    background: #d8d4cd;
}

.auth-image > img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.auth-image-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.03) 20%,
        rgba(0, 0, 0, 0.65) 100%
    );
}

.auth-image-content {
    position: absolute;
    z-index: 2;
    right: 55px;
    bottom: 55px;
    left: 55px;
    color: #fff;
}

.auth-image-content > span {
    display: block;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.8);
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-image-content h2 {
    max-width: 500px;
    margin: 0;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(44px, 5vw, 68px);
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
}


/* =========================================================
   AUTH PAGE — CONTENT
========================================================= */

.auth-content {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    padding: 70px 65px;
    background: #fff;
}

.auth-form-wrapper {
    width: 100%;
    max-width: 470px;
}

.auth-form-wrapper .section-label {
    display: block;
    margin-bottom: 18px;
    color: #77736d;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.auth-form-wrapper h1 {
    margin: 0 0 18px;
    color: #171717;
    font-family: "Montserrat", sans-serif;
    font-size: clamp(40px, 4vw, 56px);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;
}

.auth-intro {
    max-width: 430px;
    margin: 0 0 35px;
    color: #706c66;
    font-family: "Lato", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}


/* =========================================================
   AUTH FORM
========================================================= */

.auth-field {
    width: 100%;
    margin-bottom: 22px;
}

.auth-field label {
    display: block;
    margin: 0 0 9px;
    color: #292929;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.025em;
}

.auth-field input {
    display: block;
    width: 100%;
    height: 54px;
    margin: 0;
    padding: 0 16px;
    border: 1px solid #d2cec7;
    border-radius: 0;
    outline: none;
    background: #fff;
    color: #171717;
    font-family: "Lato", sans-serif;
    font-size: 15px;
    line-height: normal;
    box-shadow: none;
    appearance: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.auth-field input:hover {
    border-color: #aaa59e;
}

.auth-field input:focus {
    border-color: #171717;
    box-shadow: 0 0 0 1px #171717;
}

.auth-field input::placeholder {
    color: #aaa69f;
}


/* =========================================================
   PASSWORD ROW
========================================================= */

.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 9px;
}

.auth-label-row label {
    margin: 0;
}

.auth-label-row a {
    flex-shrink: 0;
    color: #77736d;
    font-family: "Lato", sans-serif;
    font-size: 13px;
    line-height: 1.4;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-label-row a:hover {
    color: #171717;
}


/* =========================================================
   CHECKBOX
========================================================= */

.auth-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    width: auto;
    margin: 2px 0 25px;
    color: #65615c;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    line-height: 1.4;
    cursor: pointer;
}

.auth-check input {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
    margin: 0;
    padding: 0;
    accent-color: #171717;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.auth-submit {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    width: 100%;
    min-height: 58px;
    padding: 0 22px;
    border: 1px solid #171717;
    border-radius: 0;
    background: #171717;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.auth-submit:hover {
    background: transparent;
    color: #171717;
}

.auth-submit i {
    flex-shrink: 0;
    font-size: 16px;
    transition: transform 0.25s ease;
}

.auth-submit:hover i {
    transform: translateX(4px);
}


/* =========================================================
   LOGIN / REGISTER SWITCH
========================================================= */

.auth-switch {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 28px;
    padding-top: 25px;
    border-top: 1px solid #e5e1da;
    color: #77736e;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    line-height: 1.5;
    text-align: center;
}

.auth-switch a {
    display: inline-flex;
    align-items: center;
    color: #171717;
    font-weight: 700;
    text-decoration: none;
    border-bottom: 1px solid #171717;
}

.auth-switch a:hover {
    opacity: 0.65;
}


/* =========================================================
   ALERTS
========================================================= */

.auth-alert {
    width: 100%;
    margin-bottom: 24px;
    padding: 14px 16px;
    font-family: "Lato", sans-serif;
    font-size: 14px;
    line-height: 1.6;
}

.auth-alert-error {
    border: 1px solid #e3c7c3;
    background: #faf0ef;
    color: #8b4038;
}

.auth-alert-success {
    border: 1px solid #cbdacb;
    background: #f0f6f0;
    color: #47644b;
}

.auth-alert ul {
    margin: 0;
    padding-left: 18px;
}

.auth-alert li + li {
    margin-top: 4px;
}


/* =========================================================
   AUTH MODAL
========================================================= */

.shop-auth-modal {
    --bs-modal-width: 1080px;
    padding-right: 0 !important;
}

.shop-auth-modal.show {
    display: block;
}

.shop-auth-modal .modal-dialog {
    display: flex;
    align-items: center;
    width: calc(100% - 40px);
    max-width: 1080px;
    min-height: calc(100vh - 40px);
    margin: 20px auto;
}

.shop-auth-modal .modal-content {
    position: relative;
    display: block;
    width: 100%;
    max-height: calc(100vh - 40px);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    outline: 0;
    background: #fff;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.25);
}


/* =========================================================
   MODAL — STRICT HORIZONTAL 50 / 50
========================================================= */

.shop-auth-modal-inner {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
    grid-template-rows: 1fr;
    width: 100%;
    min-height: 640px;
}

.shop-auth-modal-image,
.shop-auth-modal-content {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
}


/* =========================================================
   MODAL — LEFT IMAGE
========================================================= */

.shop-auth-modal-image {
    position: relative;
    grid-column: 1;
    min-height: 640px;
    overflow: hidden;
    background: #d8d4cd;
}

.shop-auth-modal-image > img {
    position: absolute !important;
    z-index: 0;
    inset: 0;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: none !important;
    object-fit: cover !important;
    object-position: center !important;
}

.shop-auth-modal-image-overlay {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.03) 15%,
        rgba(0, 0, 0, 0.68) 100%
    );
}

.shop-auth-modal-image-content {
    position: absolute !important;
    z-index: 2;
    top: auto !important;
    right: 45px !important;
    bottom: 45px !important;
    left: 45px !important;
    width: auto !important;
    color: #fff;
}

.shop-auth-modal-image-content > span {
    display: block;
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.82);
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.shop-auth-modal-image-content h2 {
    max-width: 400px;
    margin: 0 0 18px;
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 54px;
    font-weight: 500;
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.shop-auth-modal-image-content p {
    max-width: 340px;
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-family: "Lato", sans-serif;
    font-size: 14px;
    line-height: 1.65;
}


/* =========================================================
   MODAL — RIGHT FORM
========================================================= */

.shop-auth-modal-content {
    position: relative;
    grid-column: 2;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 640px;
    padding: 55px 60px !important;
    background: #f7f5f0;
}

.shop-auth-modal-form {
    display: block;
    width: 100%;
    max-width: 390px;
    margin: 0 auto;
}

.shop-auth-modal-form .section-label {
    display: block;
    margin: 0 0 17px;
    color: #77736d;
    font-family: "Montserrat", sans-serif;
    font-size: 10px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.shop-auth-modal-form > h2 {
    margin: 0 0 16px;
    color: #171717;
    font-family: "Montserrat", sans-serif;
    font-size: 48px;
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.045em;
}

.shop-auth-modal-form .auth-intro {
    max-width: 370px;
    margin: 0 0 30px;
    color: #6f6b65;
    font-family: "Lato", sans-serif;
    font-size: 15px;
    line-height: 1.65;
}


/* =========================================================
   MODAL — FORM OVERRIDES
========================================================= */

.shop-auth-modal .auth-field {
    width: 100%;
    margin-bottom: 20px;
}

.shop-auth-modal .auth-field label {
    display: block;
    margin: 0 0 8px;
}

.shop-auth-modal .auth-field input {
    display: block !important;
    width: 100% !important;
    height: 52px !important;
    margin: 0 !important;
    padding: 0 15px !important;
    border: 1px solid #cbc7c0 !important;
    border-radius: 0 !important;
    background: #fff !important;
    color: #171717 !important;
    box-sizing: border-box !important;
}

.shop-auth-modal .auth-field input:focus {
    border-color: #171717 !important;
    outline: none !important;
    box-shadow: 0 0 0 1px #171717 !important;
}

.shop-auth-modal .auth-label-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    flex-direction: row !important;
    gap: 15px;
    width: 100%;
    margin: 0 0 8px;
}

.shop-auth-modal .auth-label-row label {
    margin: 0;
}

.shop-auth-modal .auth-label-row a {
    flex-shrink: 0;
    font-size: 13px;
}

.shop-auth-modal .auth-check {
    display: flex !important;
    align-items: center !important;
    flex-direction: row !important;
    gap: 9px;
    width: fit-content;
    margin: 2px 0 24px;
}

.shop-auth-modal .auth-check input {
    display: block !important;
    flex: 0 0 16px !important;
    width: 16px !important;
    height: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
}

.shop-auth-modal .auth-submit {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    width: 100% !important;
    min-height: 56px !important;
}

.shop-auth-modal .auth-switch {
    margin-top: 25px;
    padding-top: 22px;
}


/* =========================================================
   MODAL CLOSE
========================================================= */

.shop-auth-modal-close {
    position: absolute !important;
    z-index: 100;
    top: 18px !important;
    right: 18px !important;
    bottom: auto !important;
    left: auto !important;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: #171717;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.12);
    transition:
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.shop-auth-modal-close:hover {
    background: #171717;
    color: #fff;
    transform: rotate(90deg);
}


/* =========================================================
   MODAL BACKDROP
========================================================= */

.modal-backdrop.show {
    opacity: 0.6;
}


/* =========================================================
   TABLET — NORMAL AUTH PAGE
========================================================= */

@media (max-width: 991.98px) {

    .auth-page {
        padding: 50px 0 80px;
    }

    .auth-wrapper {
        min-height: 650px;
    }

    .auth-image {
        min-height: 650px;
    }

    .auth-content {
        padding: 55px 40px;
    }

    .auth-image-content {
        right: 35px;
        bottom: 40px;
        left: 35px;
    }


    /* MODAL REMAINS HORIZONTAL */

    .shop-auth-modal .modal-dialog {
        width: calc(100% - 30px);
        max-width: 900px;
        min-height: calc(100vh - 30px);
        margin: 15px auto;
    }

    .shop-auth-modal .modal-content {
        max-height: calc(100vh - 30px);
    }

    .shop-auth-modal-inner {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        min-height: 580px;
    }

    .shop-auth-modal-image,
    .shop-auth-modal-content {
        min-height: 580px;
    }

    .shop-auth-modal-content {
        padding: 50px 35px !important;
    }

    .shop-auth-modal-image-content {
        right: 30px !important;
        bottom: 35px !important;
        left: 30px !important;
    }

    .shop-auth-modal-image-content h2 {
        font-size: 43px;
    }

    .shop-auth-modal-form > h2 {
        font-size: 40px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 767.98px) {

    /* NORMAL AUTH PAGE */

    .auth-page {
        padding: 25px 0 60px;
    }

    .auth-wrapper {
        display: block;
        min-height: auto;
    }

    .auth-image {
        min-height: 360px;
    }

    .auth-image-content {
        right: 25px;
        bottom: 30px;
        left: 25px;
    }

    .auth-image-content h2 {
        font-size: 44px;
    }

    .auth-content {
        padding: 45px 28px;
    }

    .auth-form-wrapper {
        max-width: 520px;
    }

    .auth-form-wrapper h1 {
        font-size: 40px;
    }


    /* MODAL STILL HORIZONTAL ON LARGE MOBILE/TABLET */

    .shop-auth-modal .modal-dialog {
        width: calc(100% - 24px);
        margin: 12px auto;
    }

    .shop-auth-modal-inner {
        grid-template-columns: 42% 58% !important;
        min-height: 550px;
    }

    .shop-auth-modal-image,
    .shop-auth-modal-content {
        min-height: 550px;
    }

    .shop-auth-modal-content {
        padding: 45px 28px !important;
    }

    .shop-auth-modal-image-content {
        right: 24px !important;
        bottom: 28px !important;
        left: 24px !important;
    }

    .shop-auth-modal-image-content h2 {
        font-size: 36px;
    }

    .shop-auth-modal-image-content p {
        font-size: 13px;
    }

    .shop-auth-modal-form > h2 {
        font-size: 37px;
    }

}


/* =========================================================
   SMALL MOBILE
   MODAL STACKS ONLY HERE
========================================================= */

@media (max-width: 575.98px) {

    .auth-page .container {
        padding-right: 15px;
        padding-left: 15px;
    }

    .auth-image {
        min-height: 300px;
    }

    .auth-content {
        padding: 40px 22px;
    }

    .auth-label-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
    }

    .auth-submit {
        min-height: 54px;
    }


    /* MODAL */

    .shop-auth-modal .modal-dialog {
        display: block;
        width: calc(100% - 20px);
        min-height: 0;
        margin: 10px auto;
    }

    .shop-auth-modal .modal-content {
        max-height: calc(100vh - 20px);
        overflow-x: hidden;
        overflow-y: auto;
    }

    .shop-auth-modal-inner {
        display: grid !important;
        grid-template-columns: 1fr !important;
        grid-template-rows: 210px auto !important;
        min-height: 0;
    }

    .shop-auth-modal-image {
        grid-column: 1;
        grid-row: 1;
        width: 100% !important;
        min-height: 210px;
        height: 210px;
    }

    .shop-auth-modal-content {
        grid-column: 1;
        grid-row: 2;
        width: 100% !important;
        min-height: 0;
        padding: 36px 22px 30px !important;
    }

    .shop-auth-modal-image-content {
        right: 22px !important;
        bottom: 22px !important;
        left: 22px !important;
    }

    .shop-auth-modal-image-content > span {
        margin-bottom: 9px;
    }

    .shop-auth-modal-image-content h2 {
        margin-bottom: 0;
        font-size: 32px;
    }

    .shop-auth-modal-image-content p {
        display: none;
    }

    .shop-auth-modal-form {
        max-width: none;
    }

    .shop-auth-modal-form > h2 {
        font-size: 36px;
    }

    .shop-auth-modal-form .auth-intro {
        margin-bottom: 25px;
        font-size: 14px;
    }

    .shop-auth-modal .auth-label-row {
        align-items: center !important;
        flex-direction: row !important;
    }

    .shop-auth-modal .auth-field input {
        height: 50px !important;
    }

    .shop-auth-modal .auth-submit {
        min-height: 54px !important;
    }

    .shop-auth-modal-close {
        top: 12px !important;
        right: 12px !important;
        width: 36px;
        height: 36px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .shop-auth-modal-content {
        padding-right: 18px !important;
        padding-left: 18px !important;
    }

    .shop-auth-modal-form > h2 {
        font-size: 32px;
    }

    .shop-auth-modal .auth-label-row {
        align-items: flex-start !important;
        flex-direction: column !important;
        gap: 5px;
    }

}