/* Values and source assets from the mobile app's light authentication theme. */
:root{--auth-primary:#1495ba;--auth-ink:#171c1f;--auth-outline:#70787d;--auth-field:rgba(222,227,230,.58);--auth-action:rgba(20,149,186,.4)}
.login-modal{padding:0;border:0;border-radius:24px;width:min(480px,calc(100vw - 40px));height:auto;max-height:90dvh;overflow:hidden;background:#f5fafd;box-shadow:0 28px 100px #063d6a45}
.login-modal::backdrop{background:rgba(20,149,186,.32);backdrop-filter:blur(6px)}
.login-modal-top{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:16px 22px;height:68px;box-sizing:border-box;background:var(--market-section-background,rgb(233 244 251 / 65%));border-bottom:.5px solid #d8e7ef}
.login-modal-top h2{font-size:20px;color:#173d52;margin:0}
.login-modal-top h2[hidden],.login-modal-back-control[hidden]{display:none}
.login-modal-back-control{display:inline-flex;align-items:center;min-height:36px;padding:0;border:0;background:transparent;color:#173d52;font-family:inherit;font-size:16px;font-weight:700;cursor:pointer;text-align:start}
.login-modal-back-control:focus-visible{outline:2px solid #1495ba;outline-offset:4px;border-radius:4px}
.login-modal-close{width:36px;height:36px;display:grid;place-items:center;padding:0;border:0;border-radius:0;background:transparent;color:#f26c23;font-size:25px;line-height:1;cursor:pointer}
.login-modal iframe{border:0;width:100%;height:400px;display:block;background:#f5fafd}
html.login-embedded,html.login-embedded body{height:auto!important;min-height:0!important;display:block!important;margin:0!important;min-width:0!important;color:var(--auth-ink);background:linear-gradient(#f5fafd1f,#f5fafd1f),url('../img/auth/registration-bg.png') center/cover fixed!important}
html.login-embedded #sooq-header,html.login-embedded :is(.footer-section,#footer-section,.page-bg,.desktop-left,.top-bar,.center-section,.back-to-top){display:none!important}
html.login-embedded .auth-wrap{display:block!important;min-height:0!important;padding:0!important;width:100%!important;max-width:none!important;margin:0!important}
html.login-embedded .desktop-right{display:block!important;position:static!important;width:100%!important;height:auto!important;padding:20px 16px 24px!important;box-sizing:border-box!important;background:transparent!important;box-shadow:none!important;border:0!important;text-align:center!important;direction:inherit!important}
.auth-mobile-logo{display:block;width:120px;height:auto;object-fit:contain;margin:0 auto 18px}
html.login-embedded .desktop-right-heading,html.login-embedded .desktop-right-sub{display:block!important;text-align:center!important}
html.login-embedded .desktop-right-heading{font-size:20px!important;font-weight:800!important;color:var(--auth-ink)!important;margin:0 0 8px!important}
html.login-embedded .desktop-right-sub{font-size:14px!important;color:#41494e!important;line-height:1.5!important}
html.login-embedded .buttons-section,html.login-embedded .form-section{width:100%!important;max-width:none!important;padding:20px 0 0!important;margin:0!important}
html.login-embedded :is(.social-btn,.btn-business,.btn-signin,.btn-primary-action,.btn-register,.rg-submit,.branch-add-btn){display:flex;align-items:center;justify-content:center;gap:10px;box-sizing:border-box;min-height:48px;padding:10px 16px!important;border:0!important;border-radius:8px!important;background:var(--auth-action)!important;color:#000!important;box-shadow:none!important;font-size:14px!important;font-weight:700!important;line-height:1.5;text-decoration:none}
html.login-embedded .social-btn{height:54px;background:#fff!important;border:1px solid #e5e5e5!important;color:var(--auth-primary)!important}
html.login-embedded .social-btn img{width:20px;height:20px}
html.login-embedded :is(.btn-business,.btn-signin,.btn-primary-action,.btn-register,.rg-submit,.branch-add-btn):hover{filter:brightness(.97)}
html.login-embedded :is(button,a,input,textarea,select):focus-visible{outline:2px solid var(--auth-primary);outline-offset:2px}
html.login-embedded .divider{margin:16px 0;color:#41494e}
html.login-embedded .divider::before,html.login-embedded .divider::after{background:#bfc8cd}
html.login-embedded :is(.input-wrap,.phone-input-wrapper){box-sizing:border-box;min-height:56px;background:var(--auth-field)!important;border:.5px solid #0003!important;border-radius:12px!important;box-shadow:none!important}
html.login-embedded .input-wrap .form-input{height:54px;background:transparent!important;border:0!important;font-size:14px!important;color:var(--auth-ink)!important}
html.login-embedded .input-wrap .phone-prefix{background:transparent;border:0;font-size:14px}
html.login-embedded .form-group{margin-bottom:8px}
html.login-embedded .forgot-link{display:block;text-align:end;color:var(--auth-primary);font-weight:700;margin-top:6px}
html.login-embedded .register-label{margin:28px 0 12px;font-size:16px;font-weight:800;color:var(--auth-ink)}
.login-modal-back{display:block;text-align:start;margin:14px 0 0;color:var(--auth-primary);font-size:13px;font-weight:700}
/* Registration stays one form; the shared layout script moves its existing fields. */
.auth-register-content{padding:0 12px 20px;box-sizing:border-box}
html.login-register-embedded .rg-hero{background:none!important;color:var(--auth-ink)!important;min-height:0!important;padding:20px 4px 12px!important;text-align:center}
html.login-register-embedded .rg-hero h2{font-size:21px;color:var(--auth-ink);margin:0 0 8px}
html.login-register-embedded .rg-hero p{font-size:13px;color:#41494e}
html.login-register-embedded .rg-wrap{padding:0!important;margin:0!important;width:100%!important;max-width:none!important}
html.login-register-embedded .rg-grid{display:flex!important;flex-direction:column!important;gap:16px!important;min-width:0}
html.login-register-embedded .rg-grid>.rg-card{width:100%!important;box-sizing:border-box;margin:0!important;order:initial!important;padding:12px!important;border:1px solid #70787d2e!important;border-radius:18px!important;box-shadow:none!important;background:transparent!important}
html.login-register-embedded .rg-card-head{display:block!important;padding:0 0 8px!important;border:0!important;background:none!important}
html.login-register-embedded .rg-card-head h3{font-size:14px!important;font-weight:700!important;color:var(--auth-ink)!important}
html.login-register-embedded .rg-card-head .icon{display:none!important}
html.login-register-embedded .rg-card-body{padding:0!important;background:none!important}
html.login-register-embedded .field{width:100%;min-width:0;margin-bottom:16px}
html.login-register-embedded .field:last-child{margin-bottom:0}
html.login-register-embedded :is(.field label,.card-extras>div>label){display:block;font-size:14px!important;font-weight:700!important;color:var(--auth-ink)!important;margin:0 0 8px}
html.login-register-embedded :is(.field input,.field textarea,.field select,.social-field input,.dd-trigger){box-sizing:border-box;width:100%!important;min-width:0;min-height:56px;padding:12px!important;border:.5px solid #0003!important;border-radius:12px!important;font-size:14px!important;color:var(--auth-ink)!important;background:rgba(222,227,230,.35)!important;box-shadow:none!important}
html.login-register-embedded .field textarea{min-height:112px!important;line-height:1.5}
html.login-register-embedded :is(.pw-wrap,.social-field){position:relative;min-width:0}
html.login-register-embedded .social-field{margin:0 0 16px}
html.login-register-embedded .social-icon{background:transparent;color:#41494eb3}
html.login-register-embedded .phone-input-wrapper{padding:0 12px!important;display:flex;direction:ltr;gap:8px}
html.login-register-embedded .phone-input-wrapper input.phone-number-input{border:0!important;background:transparent!important;padding:12px 0!important;border-radius:0!important;flex:1;min-width:0}
html.login-register-embedded .field-row{display:flex;gap:12px}
html.login-register-embedded .card-store-info .mobile-only-field{display:none!important}
html.login-register-embedded .card-extras .toggle-row{margin:20px 0}
html.login-register-embedded .hours-list{width:100%;min-width:0}
html.login-register-embedded .branch-section{background:none;border:0;padding:0}
html.login-register-embedded .card-submit{border:0!important;padding:0!important}
html.login-register-embedded .rg-submit{width:100%}
html.login-register-embedded :is(.hint,.website-error){font-size:12px;line-height:1.5}
html.login-register-embedded .pw-wrap .eye{position:absolute;inset-inline-end:12px;top:50%;transform:translateY(-50%)}
@media(max-width:600px){.login-modal{width:calc(100vw - 16px);max-height:94dvh;border-radius:20px;margin:auto}.login-modal-top{height:68px;padding:14px 18px}.auth-mobile-logo{width:110px}}

html.login-embedded .divider:empty{height:1px;min-height:1px;padding:0;border:0;background:#70787d2e}html.login-embedded .divider:empty::before,html.login-embedded .divider:empty::after{display:none}
html.login-register-embedded .auth-discount-range{margin:0 0 20px}
.auth-discount-values{display:flex;justify-content:space-between;color:#1495ba;font-size:13px;font-weight:700}
.auth-range-track{position:relative;height:48px;margin:0 12px;direction:ltr}
.auth-range-track::before{content:"";position:absolute;inset:23px 0 auto;height:4px;border-radius:2px;background:#1495ba26}
html.login-register-embedded .auth-range-track input[type=range]{position:absolute;inset:0;width:100%!important;height:48px;min-height:0!important;margin:0;padding:0!important;background:transparent!important;border:0!important;appearance:none;pointer-events:none}
.auth-range-track input[type=range]::-webkit-slider-thumb{appearance:none;width:20px;height:20px;border:0;border-radius:50%;background:#1495ba;pointer-events:auto;cursor:grab}
.auth-range-track input[type=range]::-moz-range-thumb{width:20px;height:20px;border:0;border-radius:50%;background:#1495ba;pointer-events:auto;cursor:grab}
.auth-terms{display:flex;align-items:center;gap:8px;font-size:12px;line-height:1.6;margin:0 0 12px;color:#171c1f}
.auth-terms input{width:18px;height:18px;flex-shrink:0;accent-color:#1495ba}.auth-terms a{color:#1495ba;font-weight:700}

#loginModal.login-entry {
    width: min(calc(100% - 32px), 390px);
    max-height: calc(100dvh - 32px);
    height: fit-content;
    margin: auto;
    border-radius: 20px;
    background: linear-gradient(rgba(246,251,254,.91), rgba(236,246,252,.92)),
        url('/bac.png') center / cover;
}

#loginModal.login-entry .login-modal-top {
    box-sizing: border-box;
    min-height: 0;
    padding: 7px 16px;
    background: transparent;
}

#loginModal.login-entry #loginModalTitle { font-size: 1rem; }
#loginModal.login-entry #loginModalFrame { background: transparent; }

html.login-embedded.login-compact,
html.login-embedded.login-compact body {
    background: transparent !important;
}

html.login-embedded.login-compact body::before { display: none !important; }

html.login-embedded.login-compact .desktop-right {
    padding: 16px 22px 20px !important;
}

html.login-embedded.login-compact .auth-mobile-logo {
    width: 168px;
    margin: 0 auto 12px;
}

html.login-embedded.login-compact .desktop-right-heading { font-size: 16px !important; }
html.login-embedded.login-compact .desktop-right-sub { margin: 0 !important; }
html.login-embedded.login-compact .buttons-section {
    display: grid !important;
    gap: 8px;
    padding: 12px 0 0 !important;
}

html.login-embedded.login-compact :is(.social-btn, .btn-business) {
    height: auto;
    min-height: 42px;
    margin: 0 !important;
    padding: 8px 12px !important;
    font-size: 13px !important;
}

html.login-embedded.login-compact .social-btn[style*="display:none"] { display: none !important; }
html.login-embedded.login-compact .auth-alert:empty { display: none !important; }

@media (max-width: 767px) {
    #loginModal.login-entry { width: min(calc(100% - 36px), 320px); border-radius: 16px; }
    #loginModal.login-entry .login-modal-top { padding: 5px 12px; }
    #loginModal.login-entry #loginModalTitle { font-size: .9375rem; }
    html.login-embedded.login-compact .desktop-right { padding: 12px 16px 16px !important; }
    html.login-embedded.login-compact .auth-mobile-logo { width: 145px; }
}
