
@import url('https://fonts.googleapis.com/css2?family=Readex+Pro:wght@160..700&display=swap');

/* Removed tab-related styles */
:root {
    --theme-color: #f36f21 !important;
    --swiper-theme-color: rgb(226, 94, 17) !important;
}

.action.primary {
    text-transform: capitalize;
    background: var(--theme-color) !important;
    border: 1px solid var(--theme-color) !important;
}

.action.primary,
.action.primary:hover,
    {
    border-color: var(--theme-color) !important;
    background-color: var(--theme-color) !important;
}

.button:hover {
    background-color: var(--theme-color) !important;
}

#maincontent {
    max-width: 100% !important;
    padding: 0px !important;
}


.additional-input {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.additional-input #label_for_stay_login {
    display: flex;
    align-items: center;
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    text-align: center;
    text-transform: capitalize;
    gap: 8px;
    margin: 0px;
    color: #747474
}

/* Hide default Magento elements */
.block-customer-login,
.page-title-wrapper,
.block-new-customer,
.page-header,
.free-shipping,
.header-row.container {
    display: none !important;
}

body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
}

/* Main container styles */
.login-container-new {
    width: 100%;
    min-height: 100vh;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}

/* RTL specific layout adjustments */
html[lang="ar"] .login-container-new {
    flex-direction: row;
}

html[lang="en"] .login-container-new {
    flex-direction: row-reverse;
}

@media screen and (min-width: 768px) {
    .login-container-new {
        flex-direction: row;
    }

    html[lang="ar"] .login-container-new {
        flex-direction: row-reverse !important;
    }

    html[lang="ar"] .login-header,
    html[lang="ar"] .back-link {
        flex-direction: row-reverse !important;
    }
}

html:lang(ar) .login-header svg {
    transform: rotate(360deg) !important;
}

/* Form container styles */
.container-form {
    /* width: 40%; */
    display: flex;
    justify-content: center;
    flex-grow: 1;
    max-height: 100vh;
    overflow: auto;

}

@media screen and (max-width: 767px) {
    .container-form {
        max-height: unset;
    }

}

.container-form #form-validate {
    flex-basis: 75%
}

/* Login image styles */
.login-image {
    width: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    border-radius: 24px;
    /* margin: 15px 0 16px 18px; */
    flex-grow: 1;
    width: 62vw;
    max-width: 62vw;
    /* height: 100vh; */
    margin: 0px;
    max-height: 100vh;
    /* margin: 0px; */
    padding: 15px 0 16px 18px;
}

html:lang(ar) .login-image {
    padding: 15px 18px 16px 0 !important;
}


/* Mobile responsiveness */
@media screen and (max-width: 767px) {
    .container-form {
        width: 100%;
    }

    .login-image {
        display: none;
        /* Hide image on mobile */
    }
}

.login-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 24px;
}

/* Form styling */
.form.form-login {
    width: 100%;
    height: 100%;
    padding: 0px;
    margin: 0px;
    align-self: center;
}

@media screen and (min-width: 768px) {
    .form.form-login {
        width: 75%;
    }
}

/* Form Header section */
.login-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    /* width: 24vw; */
    padding-top: 40px;
    padding-bottom: 84px;
}

.back-link {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.language-switch {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    text-decoration: none;
}

.lang-text {
    color: #666;
    font-size: 14px;
    order: -1;
}

.lang-text:hover {
    text-decoration: none !important;
}

/* RTL adjustments for Arabic */
html:lang(ar) .lang-text {
    order: 1;
}

html:lang(ar) .language-switch {
    flex-direction: row-reverse;
}

/* Welcome section */
.welcome-section {
    margin-bottom: 24px;
}

.welcome-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

.welcome-title h1 {
    font-weight: 700;
    font-size: 24px;
    line-height: 100%;
    color: #0E0D0D;
    margin: 0px;
}

.signup-text {
    display: flex;
    flex-direction: row;
    gap: 8px;

    font-size: 14px;
    line-height: 100%;
    letter-spacing: 0%;
    text-align: center;

    margin: 0px;
    padding: 0px;
    padding-bottom: 16px;
    color: #000000;

}


.signup-text span {
    font-weight: 400;
    color: #747474;
}

.signup-text a {

    font-weight: 700;
    color: #F37021;
}


.signup-link {
    color: #FF6B35;
    text-decoration: none;
    marg: 3px;
    padd
}

.submit-button {
    width: 100%;
    padding: 12px;
    background: #FF6B35;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 24px;
}

/* Social login section */
.divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 24px 0 2px 0;
    color: #C5C5C5;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #D8D8D8;
}

.divider span {
    padding: 0 30px;
    color: #747474;
    font-size: 14px;
    text-transform: uppercase;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 12px;
}


.sociallogin-button.social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 24px;
    width: 100%;
    border-radius: 8px;
    background: white;
    cursor: pointer;
    border: 0px solid #C5C5C5;
    border: none;
}

.sociallogin-button span {
    font-weight: 700;
}

body.wp-sl div.sociallogin-wrapper div.sociallogin-block div.sociallogin-padding div.sociallogin-box a.sociallogin-button {
    box-shadow: unset;
    margin: 0 0px 7px !important;
}

html :lang(ar) .sociallogin-button span {
    font-weight: 700;
}

/* Messages */
.messages {
    margin-bottom: 20px;
}

.message-error {
    background: #fae5e5;
    padding: 12px;
    border-radius: 4px;
    color: #e02b27;
}

.action {
    display: flex;
    justify-content: center;
    align-items: center;
}


/* Custom Checkbox Styling */
.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    display: none;
    /* Hide the default checkbox */
}

.checkbox-custom {
    width: 24px;
    height: 24px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    transition: all 0.2s ease;
}

.checkbox-custom::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background-color: transparent;
    border-radius: 2px;
    transition: all 0.2s ease;
}

.remember-me input[type="checkbox"]:checked+.checkbox-custom {
    border-color: #f36f21;
    /* Your main orange color */
}

.remember-me input[type="checkbox"]:checked+.checkbox-custom::after {
    background-image: url('data:image/svg+xml,<svg width="24" height="25" viewBox="0 0 24 25" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M4 1H20C21.933 1 23.5 2.567 23.5 4.5V20.5C23.5 22.433 21.933 24 20 24H4C2.067 24 0.5 22.433 0.5 20.5V4.5C0.5 2.567 2.067 1 4 1Z" fill="%23F37021"/><path d="M4 1H20C21.933 1 23.5 2.567 23.5 4.5V20.5C23.5 22.433 21.933 24 20 24H4C2.067 24 0.5 22.433 0.5 20.5V4.5C0.5 2.567 2.067 1 4 1Z" stroke="%23F37021"/><path d="M7.9165 12.5002L10.8297 15.4168L16.6665 9.5835" stroke="white" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/></svg>');
}

@media screen and (max-width: 767px) {
    .remember-me input[type="checkbox"]:checked+.checkbox-custom::after {
        background-image: url('data:image/svg+xml,<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.96973 0.322266H12.0303C14.0448 0.322305 15.6777 1.95518 15.6777 3.96973V12.0303C15.6777 14.0448 14.0448 15.6777 12.0303 15.6777H3.96973C1.95518 15.6777 0.322305 14.0448 0.322266 12.0303V3.96973C0.322305 1.95518 1.95518 0.322305 3.96973 0.322266Z" fill="%23F37021"/><path d="M3.96973 0.322266H12.0303C14.0448 0.322305 15.6777 1.95518 15.6777 3.96973V12.0303C15.6777 14.0448 14.0448 15.6777 12.0303 15.6777H3.96973C1.95518 15.6777 0.322305 14.0448 0.322266 12.0303V3.96973C0.322305 1.95518 1.95518 0.322305 3.96973 0.322266Z" stroke="%23F37021" stroke-width="0.644068"/><path d="M5.37006 8.0006L7.24638 9.87913L11.0056 6.12207" stroke="white" stroke-width="1.28814" stroke-linecap="round" stroke-linejoin="round"/></svg>')
    }
}

.checkbox-label {
    color: #000;
    font-size: 14px;
}

/* form validation styles */
.field-error input,
.field-error select {
    background-color: rgb(254, 237, 237) !important;
    border-color: #e02b27 !important;
}

.field-self.error {
    background-color: rgb(254, 237, 237) !important;
    border-color: #e02b27 !important;
}

.field {
    margin-bottom: 20px;
    position: relative;
}



button.action.primary {
    width: 100%;
}

/* RTL Styles */
.rtl .login-container-new {
    direction: rtl;
}

.rtl .back-link svg {
    transform: rotate(180deg);
}

.rtl .language-switch .lang-text {
    order: 1;
}

.rtl .social-button svg {
    margin-left: 8px;
    margin-right: 0;
}

.rtl .field-self .icon {
    margin-left: 8px;
    margin-right: 0;
}


.messages {
    display: block !important;
}

#send2:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transition: opacity 0.3s ease;
}

#send2:not(:disabled) {
    opacity: 1;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

button:hover {
    background-color: #FEF1E9 !important;
    color: rgb(227, 90, 11);
}

#login-btn {
    font-weight: 700;
    font-size: 18px;
}

.black-text {
    color: #0E0D0D !important;
}

a:hover {
    text-decoration: none !important;
}

a,
a:focus {
    color: #0E0D0D !important;
}

a.forgot-password,
a.signup-link {
    color: #f36f21 !important;
    font-weight: 700;
    font-size: 14px;
    line-height: 100%;
    text-align: center;
    text-transform: lowercase;
}

a {
    color: #0E0D0D;
}

svg {
    display: block;
}

.page-footer,
.footer-bottom {
    display: none;
}



/* Handle autofill styling */
.field-self input:-webkit-autofill,
.field-self input:-webkit-autofill:hover,
.field-self input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px transparent inset !important;
    -webkit-text-fill-color: inherit !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* Override autofill background for error state */
.field-self.field-error input:-webkit-autofill,
.field-self.field-error input:-webkit-autofill:hover,
.field-self.field-error input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 30px rgb(254, 237, 237) inset !important;
}

.custom-red-error {
    display: none;
    font-family: "Readex Pro" !important;
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    letter-spacing: 0%;
    color: #F04848;
}

/* Login button styles */
.action.login.primary {
    opacity: 0.3;
    pointer-events: none;
    height: 64px;
}

@media screen and (max-width: 767px) {
    .action.login.primary {
        height: 48px;
    }
}

.action.login.primary:enabled {
    opacity: 1;
    pointer-events: auto;
}


#login-form .form-control,
#login-form .form-select {
    /* border-radius: 8px; */
    cursor: pointer;
}

#login-form .input-group {
    border: 1px solid #D8D8D8;
    padding: 0px;
    background: #fff;
    border-radius: 4px;
    width: 100%;


}

#login-form .input-group textarea {
    resize: none;
    padding: 10px 16px 34px !important;
}

#login-form .input-group-text {
    background-color: transparent !important;
    border-top-left-radius: 4px;
    border-bottom-left-radius: 4px;
    border: none;
    height: 62px;
    max-height: 62px;
    display: flex;
    align-items: center;
    justify-content: end;
    width: 36px;
}

#login-form .input-group *:not(.input-group-text),
#login-form .input-group *:focus {
    border-top-right-radius: 4px !important;
    border-bottom-right-radius: 4px !important;
    box-shadow: none;
    outline: none;
    border: none;
}


#login-form .input-group *:focus {
    border: none;
}

#login-form .input-container {
    width: 100%;
    height: 62px;
    position: relative;
}



#login-form .input-container .text {
    font-weight: 400;
    font-size: 14px;
    line-height: 100%;
    color: #747474;
}

#login-form .input-container .text span {
    font-weight: 600;
    color: #F37021;
}

#login-form .input-container .text-format {
    font-weight: 400;
    font-size: 12px;
    line-height: 100%;
    color: #202020;
    margin: 0px;
}

#login-form .input-group .form-control:not(textarea),
#login-form .input-group .form-select {
    border-left: none !important;
    padding: 0px;
    font-weight: 600;
    font-size: 16px;
    line-height: 100%;
    color: #0E0D0D;
    background: transparent;
    position: absolute;
    bottom: 10px;
}

#login-form .input-group .form-select {
    opacity: 0;
}


.form-floating-custom select.filled {
    opacity: 1 !important;

}

#login-form .color-main {
    color: #f37021 !important;
}

#login-form .btn-orange {
    background-color: #f37021;
    color: white;
    width: fit-content !important;
    padding: 10px 24px;
    font-weight: 700;
    font-size: 18px;
    line-height: 100%;
    color: #0E0D0D;
    outline: none;
    box-shadow: none;
    border: none;
}

#login-form .btn-orange:hover {
    outline: none;
    box-shadow: none;
    border: none;
}

#login-form .form-floating-custom {
    position: relative;
    overflow: hidden;
    height: 100%;
    z-index: 0;
}

#login-form .form-floating-custom input {
    left: 44px !important;
    width: 100%;
    max-width: 100%;
}
html:lang(ar) #login-form .form-floating-custom input
{
    left: unset !important ;
    right: 44px !important
}

html:lang(ar) #login-form .form-floating-custom input {
    left: unset !important;
    right: 44px !important;
}

#login-form .form-floating-custom input:-webkit-autofill,
#login-form .form-floating-custom input:-webkit-autofill:hover,
#login-form .form-floating-custom input:-webkit-autofill:focus,
#login-form .form-floating-custom input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #000 !important;
    transition: background-color 9999s ease-in-out 0s;
}


#login-form .form-floating-custom:not(:has(textarea)) label,
.form-floating-custom select.filled label {
    position: absolute;
    top: 16px;
    left: 44px;
    color: #999999;
    font-size: 16px;
    pointer-events: none;
    transition: 0.2s ease all;
    padding: 0;
    font-weight: 400;
    transform: translateY(-50%);
    top: 50%;
    text-transform: capitalize;
}

html:lang(ar) #login-form .form-floating-custom:not(:has(textarea)) label {
    left: unset !important;
    right: 44px !important;
}


#login-form .form-floating-custom input:focus,
#login-form .form-floating-custom input:not(:placeholder-shown) {

    padding-bottom: 0px;
}

#login-form .form-floating-custom .form-select {
    padding-top: 20px !important;
}


#login-form .form-floating-custom.notValid:has(input:not(:placeholder-shown)) {
    background: #feeded;
    border: 1px solid #F04848;
}

#login-form .form-floating-custom input:focus+label,
#login-form .form-floating-custom input:not(:placeholder-shown)+label {
    top: 8px;
    font-size: 12px;
    background: transparent;
    z-index: 100;
    transform: unset;
}

#login-form .form-floating-custom label {
    cursor: pointer;
}

#login-form .form-floating-custom .icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    font-size: 1.1rem;
}

#login-form .sub-title-form {
    margin: 0px;
    padding: 0px;
    font-weight: 700;
    font-size: 14px;
    line-height: 100%;
    text-transform: capitalize;
    color: #0E0D0D;
}

#login-form .padding-top-section {
    padding-top: 16px;
}

#login-form .field {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}



.icon-last {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
}

html:lang(ar) .icon-last {
    left: 10px;
    right: unset;
}

html:lang(ar) input[type="tel"] {
    text-align: end;
}

.block-static-block.widget,
.block-cms-link.widget {
    display: none !important;
}

@media screen and (max-width: 767px) {
    body {
        padding: 0 30px;
    }

    .logo-img {
        width: 55px;
    }

    #maincontent {
        max-width: 100% !important;
        padding: 0px !important;
        margin: 0px !important
    }

    .login-header {
        width: 100%;
        padding: 28px 0 43px;
    }


    .signup-text span {
        font-family: Open Sans;
        font-weight: 400;
        font-size: 16px;
        line-height: 100%;
        letter-spacing: 0%;
        text-transform: capitalize;
    }

    a.forgot-password,
    a.signup-link {
        font-size: 16px;
    }


    #login-form .input-container {
        width: 100%;
        max-height: 56px;
    }

    #login-form .input-group-text {
        width: 42px;
        height: 100%;
        display: flex;
        justify-content: center;
    }

    #login-form .field {
        margin-bottom: 20px;
    }

    #login-form .input-group-text svg {
        width: 16px;
        height: 16px;
    }

    #login-form .form-floating-custom:not(:has(textarea)) label,
    .form-floating-custom select.filled label {
        font-weight: 400;
        font-size: 16px;
    }

    #login-form .form-floating-custom input:focus,
    #login-form .form-floating-custom input:not(:placeholder-shown) {
        font-weight: 600;
        font-size: 14px;
    }

    .additional-input {
        margin-bottom: 21px
    }

    .action.login.primary {
        height: 56px;
    }

    #login-btn {
        font-size: 16px;
    }

    .checkbox-custom,
    .checkbox-custom::after {
        width: 16px;
        height: 16px;
    }

    .divider {
        display: flex;
        align-items: center;
        text-align: center;
        margin: 20px 0;
        color: #C5C5C5;
    }

    .sociallogin-button span {
        font-weight: 700;
        font-size: 16px;
        line-height: 100%;
        text-align: center;
    }

    .checkbox-custom::after {}
}

.social-login .sociallogin-wrapper.block-customer-login.login-container {
    display: block !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important
}

.social-login .sociallogin-wrapper.block-customer-login.login-container .sociallogin-padding {
    max-width: 100% !important
}

.social-login {
    padding-top: 24px
}

.custom-red-error#password-error {
    color: #dc3545 !important;
    font-size: 16px;
    padding-block: 16px;
}

@media screen and (max-width: 768px) {
    .custom-red-error#password-error {
        color: #dc3545 !important;
        font-size: 12px;
        padding-block: 12px;
    }
}
.eye-icon , .eye-disable
{
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 999;
}
.eye-disable
{
    display: none ;
}

html:lang(en) .eye-icon , 
html:lang(en) .eye-disable
{
    left: unset ;
    right: 16px
}
[lang="en"] button.action.primary.login
{
    width: 100% !important
}

