/* =====================================================
   BOUQSHOP LOGIN MODAL (compact)
   ===================================================== */

:root {
    --bq-login-accent: #cf5e73;
    --bq-login-accent-hover: #bd4e64;
    --bq-login-accent-soft: #fcecef;
    --bq-login-text: #202726;
    --bq-login-muted: #727776;
    --bq-login-border: #dddddd;
    --bq-login-green: #233e35;
    --bq-login-white: #ffffff;
    --bq-login-radius: 18px;
}

.bq-login-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
        opacity 180ms ease,
        visibility 180ms ease;
}

.bq-login-modal.is-open {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.bq-login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 27, 26, 0.66);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
}

.bq-login-dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    width: min(920px, 100%);
    max-height: min(86vh, 720px);
    overflow: hidden;
    border-radius: var(--bq-login-radius);
    background: var(--bq-login-white);
    box-shadow:
        0 24px 70px rgba(0, 0, 0, 0.26),
        0 4px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(12px) scale(0.985);
    transition: transform 220ms ease;
}

.bq-login-modal.is-open .bq-login-dialog {
    transform: translateY(0) scale(1);
}

.bq-login-close {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #1f2524;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        transform 160ms ease;
}

.bq-login-close:hover {
    background: #f5f5f5;
}

.bq-login-close:active {
    transform: scale(0.94);
}

.bq-login-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
}

/* Left side */

.bq-login-promo {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background:
        linear-gradient(
            180deg,
            #f7f6f1 0%,
            #f8efed 72%,
            #fcebed 100%
        );
}

.bq-login-promo-image {
    position: relative;
    height: 280px;
    flex: 0 0 auto;
    overflow: hidden;
}

.bq-login-promo-image::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 110px;
    background:
        linear-gradient(
            180deg,
            rgba(248, 239, 237, 0) 0%,
            rgba(248, 239, 237, 0.95) 75%,
            #f8efed 100%
        );
    pointer-events: none;
}

.bq-login-promo-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
}

.bq-login-promo-content {
    position: relative;
    z-index: 2;
    flex: 1 1 auto;
    margin-top: -16px;
    padding: 0 36px 28px;
    overflow-y: auto;
}

.bq-login-promo-content h2 {
    margin: 0 0 8px;
    color: var(--bq-login-text);
    font-family: inherit;
    font-size: 26px;
    font-weight: 400;
    line-height: 1.15;
}

.bq-login-promo-subtitle {
    margin: 0 0 18px;
    color: #646b69;
    font-size: 14px;
    line-height: 1.5;
}

.bq-login-benefits {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.bq-login-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #303736;
    font-size: 13.5px;
    line-height: 1.35;
}

.bq-benefit-icon {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    color: #d96075;
}

.bq-benefit-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.65;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bq-login-register {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 22px;
    color: #39413f;
    font-size: 13px;
}

.bq-login-register a {
    color: var(--bq-login-accent);
    font-weight: 600;
    text-decoration: none;
}

.bq-login-register a:hover {
    text-decoration: underline;
}

/* Right side */

.bq-login-form-panel {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    overflow-y: auto;
    padding: 40px 40px 36px;
    background: #fff;
}

.bq-login-form-wrapper {
    width: 100%;
    max-width: 380px;
}

.bq-login-header {
    margin-bottom: 26px;
}

.bq-login-form-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.bq-login-form-brand.is-logo-only .bq-login-form-logo {
    height: 40px;
    max-width: 180px;
}

.bq-login-form-logo {
    display: block;
    width: auto;
    height: 36px;
    max-width: 140px;
    object-fit: contain;
}

.bq-login-form-brand-name {
    color: var(--bq-login-green);
    font-family: inherit;
    font-size: 26px;
    font-weight: 400;
    line-height: 1;
}

.bq-login-modal .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.bq-login-form-title {
    margin: 0;
    color: #787c7b;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.bq-form-group {
    margin-bottom: 18px;
}

.bq-form-group label {
    display: block;
    margin-bottom: 8px;
    color: #242a29;
    font-size: 13px;
    font-weight: 500;
}

.bq-input-shell {
    position: relative;
    display: flex;
    align-items: center;
    height: 50px;
    border: 1px solid var(--bq-login-border);
    border-radius: 9px;
    background: #fff;
    transition:
        border-color 160ms ease,
        box-shadow 160ms ease;
}

.bq-input-shell:focus-within {
    border-color: var(--bq-login-accent);
    box-shadow: 0 0 0 3px rgba(207, 94, 115, 0.12);
}

.bq-input-shell.has-error {
    border-color: #cf5267;
}

.bq-field-error {
    margin-top: 6px;
    color: #c7475d;
    font-size: 12px;
    line-height: 1.4;
}

.bq-input-icon {
    position: absolute;
    left: 14px;
    display: flex;
    color: #898f8d;
    pointer-events: none;
}

.bq-input-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bq-input-shell input {
    width: 100%;
    height: 100%;
    padding: 0 44px 0 44px;
    border: 0;
    outline: 0;
    background: transparent;
    color: #202625;
    font: inherit;
    font-size: 14px;
}

.bq-input-shell input::placeholder {
    color: #929695;
    opacity: 1;
}

.bq-password-toggle {
    position: absolute;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: #8b8f8e;
    cursor: pointer;
}

.bq-password-toggle:hover {
    color: #4b5150;
    background: #f6f6f6;
}

.bq-password-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bq-eye-closed {
    display: none;
}

.bq-password-toggle.is-visible .bq-eye-open {
    display: none;
}

.bq-password-toggle.is-visible .bq-eye-closed {
    display: block;
}

.bq-forgot-password {
    margin-top: 10px;
    text-align: right;
}

.bq-forgot-password a {
    color: var(--bq-login-accent);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
}

.bq-forgot-password a:hover {
    text-decoration: underline;
}

.bq-login-remember {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: -2px 0 0;
    color: #39413f;
    font-size: 13px;
    cursor: pointer;
}

.bq-login-remember input {
    width: 15px;
    height: 15px;
    accent-color: var(--bq-login-accent);
}

.bq-login-submit {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin-top: 20px;
    border: 0;
    border-radius: 8px;
    background: var(--bq-login-accent);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition:
        background-color 160ms ease,
        transform 100ms ease,
        box-shadow 160ms ease;
}

.bq-login-submit:hover {
    background: var(--bq-login-accent-hover);
    box-shadow: 0 8px 20px rgba(207, 94, 115, 0.22);
}

.bq-login-submit:active {
    transform: scale(0.99);
}

.bq-login-divider {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 12px;
    margin: 22px 0;
}

.bq-login-divider span {
    height: 1px;
    background: #e2e2e2;
}

.bq-login-divider p {
    margin: 0;
    color: #737877;
    font-size: 12px;
}

.bq-social-login {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 46px;
    margin-bottom: 10px;
    border: 1px solid #dedede;
    border-radius: 8px;
    background: #fff;
    color: #252a29;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        background-color 160ms ease,
        transform 100ms ease,
        box-shadow 160ms ease;
}

.bq-social-login:hover {
    border-color: #c8c8c8;
    background: #fafafa;
    color: #252a29;
    text-decoration: none;
    box-shadow: 0 5px 16px rgba(0, 0, 0, 0.05);
}

.bq-social-login:active {
    transform: scale(0.99);
}

.bq-google-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    font-family: inherit;
    font-size: 17px;
    font-weight: 700;
    color: #4285f4;
}

.bq-apple-icon {
    width: 20px;
    height: 20px;
    fill: #000;
}

.bq-login-security {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 10px;
    margin-top: 24px;
    color: #818584;
}

.bq-login-security span {
    color: #d75d73;
}

.bq-login-security svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.bq-login-security p {
    margin: 0;
    font-size: 12px;
    line-height: 1.45;
}

body.bq-login-open {
    overflow: hidden;
}

@media (max-width: 1000px) {
    .bq-login-modal {
        padding: 16px;
    }

    .bq-login-dialog {
        width: min(860px, 100%);
        grid-template-columns: minmax(260px, 0.9fr) 1.1fr;
        max-height: min(88vh, 680px);
    }

    .bq-login-promo-image {
        height: 220px;
    }

    .bq-login-promo-content {
        padding-left: 24px;
        padding-right: 24px;
        padding-bottom: 22px;
    }

    .bq-login-form-panel {
        padding: 32px 28px;
    }
}

@media (max-width: 760px) {
    .bq-login-modal {
        align-items: flex-end;
        padding: 0;
    }

    .bq-login-dialog {
        display: flex;
        flex-direction: column;
        width: 100%;
        max-height: 94dvh;
        overflow-y: auto;
        border-radius: 20px 20px 0 0;
    }

    .bq-login-close {
        position: sticky;
        top: 10px;
        align-self: flex-end;
        margin: 10px 10px -36px 0;
        z-index: 30;
        background: rgba(255, 255, 255, 0.94);
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    }

    .bq-login-promo {
        flex: 0 0 auto;
        background: #faf1ef;
    }

    .bq-login-promo-image {
        height: 160px;
    }

    .bq-login-promo-image::after {
        height: 70px;
    }

    /* Keep the three benefits readable on mobile under a shorter image */
    .bq-login-promo-content {
        display: block;
        margin-top: -10px;
        padding: 0 20px 16px;
    }

    .bq-login-promo-content h2 {
        font-size: 22px;
        margin-bottom: 4px;
    }

    .bq-login-promo-subtitle {
        margin-bottom: 12px;
        font-size: 13px;
    }

    .bq-login-benefits {
        gap: 10px;
    }

    .bq-login-benefits li {
        font-size: 13px;
    }

    .bq-login-register {
        margin-top: 14px;
    }

    .bq-login-form-panel {
        display: block;
        flex: 1 1 auto;
        overflow: visible;
        padding: 20px 20px 28px;
    }

    .bq-login-form-wrapper {
        max-width: none;
    }

    .bq-login-header {
        margin-bottom: 20px;
        text-align: center;
    }

    .bq-login-form-brand {
        justify-content: center;
        margin-bottom: 8px;
    }

    .bq-login-form-logo {
        height: 32px;
    }

    .bq-login-form-brand.is-logo-only .bq-login-form-logo {
        height: 36px;
        max-width: 160px;
    }

    .bq-login-form-brand-name {
        font-size: 22px;
    }

    .bq-login-form-title {
        font-size: 13px;
    }

    .bq-form-group {
        margin-bottom: 16px;
    }

    .bq-input-shell {
        height: 48px;
    }

    .bq-login-submit {
        height: 48px;
        margin-top: 18px;
    }

    .bq-login-divider {
        margin: 18px 0;
    }

    .bq-social-login {
        height: 46px;
    }

    .bq-login-security {
        margin-top: 20px;
        margin-bottom: 4px;
    }
}

@media (max-width: 420px) {
    .bq-login-promo-image {
        height: 140px;
    }

    .bq-login-form-panel {
        padding-right: 16px;
        padding-left: 16px;
    }

    .bq-login-form-brand-name {
        font-size: 20px;
    }

    /* On very short phones, trim promo copy but keep benefit list */
    .bq-login-promo-subtitle {
        display: none;
    }
}

@media (max-width: 760px) and (max-height: 700px) {
    .bq-login-promo-image {
        height: 110px;
    }

    .bq-login-promo-content h2 {
        font-size: 18px;
    }
}
