body.qnected-auth-layout {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(135deg, #faf9f6 0%, #f8f9fb 50%, #f3f5fc 100%);
    color: #182132;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.qnected-social-buttons {
    display: grid;
    gap: 0.75rem;
}

.qnected-social-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 3rem;
    padding: 0.75rem 1rem;
    border: 1px solid #98a2b3;
    border-radius: 0.5rem;
    background: #fff;
    color: #344054;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
}

.qnected-social-button:disabled {
    opacity: 1;
    cursor: not-allowed;
}

.qnected-social-button svg { flex: 0 0 auto; }
.qnected-customer-auth .qnected-social-status { margin: 0.75rem 0 1.25rem; }

.qnected-auth-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.5rem 0;
    color: #667085;
    font-size: 0.75rem;
    text-align: center;
}

.qnected-auth-divider::before,
.qnected-auth-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid #e7eaf0;
}

.qnected-auth-panel.qnected-auth-panel--register { width: min(100%, 40rem); }
.qnected-auth-panel.qnected-auth-panel--register > .qnected-customer-auth { max-width: none; }

.qnected-customer-auth .qnected-registration-group {
    min-width: 0;
    margin: 0 0 1.75rem;
    padding: 0;
    border: 0;
}

.qnected-registration-group > legend {
    margin-bottom: 1rem;
    padding: 0;
    color: #182132;
    font-size: 0.9375rem;
    font-weight: 650;
}

.qnected-registration-grid { display: grid; gap: 0 1rem; grid-template-columns: 1fr 1fr; }
.qnected-registration-grid--names { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qnected-registration-grid > * { min-width: 0; }
.qnected-customer-auth .qnected-registration-salutation { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.qnected-registration-salutation label { display: inline-flex; align-items: center; gap: 0.5rem; min-height: 2.75rem; }
.qnected-registration-salutation input { width: 1rem; height: 1rem; accent-color: #4f46e5; }
.qnected-customer-auth select.input-text { appearance: auto; }
.qnected-customer-auth .qnected-field-optional { color: #667085; font-weight: 400; }
.qnected-customer-auth .qnected-registration-credentials { margin: 0 0 1rem; padding: 0; border: 0; font-size: 0.9375rem; }
.qnected-customer-auth .qnected-turnstile { margin: 1.25rem 0; }
.qnected-turnstile p { font-size: 0.75rem; color: #667085; text-align: center; }

@media (max-width: 540px) {
    .qnected-registration-grid,
    .qnected-registration-grid--names { grid-template-columns: 1fr; }
}

.qnected-auth-layout *,
.qnected-customer-auth,
.qnected-customer-auth * {
    box-sizing: border-box;
}

.qnected-auth-header {
    padding: clamp(2rem, 6vh, 3.5rem) 1.25rem 2rem;
    text-align: center;
}

.qnected-auth-brand {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: #111827;
    text-decoration: none;
}

.qnected-auth-logo { display: block; width: 110px; height: auto; }

.qnected-auth-preview {
    max-width: 30rem;
    margin: 1.25rem auto 0;
    padding: 0.75rem 1rem;
    border: 1px solid #dce1eb;
    border-radius: 0.625rem;
    background: rgb(255 255 255 / 65%);
    color: #596273;
    font-size: 0.75rem;
    line-height: 1.6;
}

.qnected-auth-page {
    flex: 1;
    width: 100%;
    padding: 0 1rem 2.5rem;
}

.qnected-auth-panel {
    width: min(100%, 30rem);
    margin: 0 auto;
}

.qnected-customer-auth {
    width: min(100% - 2rem, 30rem);
    margin: 2.5rem auto;
    padding: clamp(1.5rem, 5vw, 2.25rem);
    border: 1px solid #dfe3ec;
    border-radius: 1rem;
    background: #fff;
    color: #182132;
    font-size: 0.9375rem;
    line-height: 1.6;
    overflow-wrap: anywhere;
    box-shadow: 0 2px 4px rgb(24 33 50 / 2%), 0 12px 36px rgb(24 33 50 / 3%);
}

.qnected-auth-panel > .qnected-customer-auth,
.qnected-auth-page > .qnected-customer-auth {
    width: 100%;
    max-width: 30rem;
    margin: 0 auto;
}

.qnected-customer-auth .qnected-auth-heading {
    margin: 0 0 1.75rem;
    text-align: center;
}

.qnected-customer-auth h1 {
    margin: 0;
    color: #182132;
    font-size: clamp(1.5rem, 4vw, 1.75rem);
    font-weight: 650;
    letter-spacing: -0.035em;
    line-height: 1.25;
    text-wrap: balance;
}

.qnected-customer-auth h2 {
    margin: 2rem 0 1.25rem;
    padding-top: 1.75rem;
    border-top: 1px solid #e7eaf0;
    font-size: 1.25rem;
    font-weight: 650;
    letter-spacing: -0.025em;
    line-height: 1.35;
}

.qnected-customer-auth p {
    margin: 1rem 0;
    line-height: 1.6;
}

.qnected-customer-auth .qnected-auth-subtitle {
    margin: 0.625rem 0 0;
    color: #667085;
    font-size: 0.875rem;
    text-wrap: pretty;
}

.qnected-customer-auth form {
    padding: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
    text-align: left;
}

.qnected-customer-auth .form-row {
    float: none;
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 0;
}

.qnected-customer-auth label {
    display: block;
    margin-bottom: 0.5rem;
    color: #344054;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.5;
}

.qnected-customer-auth label > span[aria-hidden="true"] {
    color: #667085;
}

.qnected-customer-auth .input-text {
    display: block;
    width: 100%;
    min-height: 3rem;
    margin: 0;
    padding: 0.75rem 0.875rem;
    border: 1px solid #98a2b3;
    border-radius: 0.5rem;
    background: #fff;
    color: #182132;
    font: inherit;
    font-size: 1rem;
    line-height: 1.5;
    box-shadow: 0 1px 2px rgb(16 24 40 / 3%);
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.qnected-customer-auth .input-text:focus {
    border-color: #4f46e5;
    outline: 2px solid #4f46e5;
    outline-offset: 2px;
}

.qnected-customer-auth .input-text[aria-invalid="true"] {
    border-color: #b42318;
}

.qnected-customer-auth .qnected-auth-options {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.25rem 1rem;
    margin: -0.25rem 0 1.25rem;
    font-size: 0.8125rem;
}

.qnected-customer-auth .qnected-auth-remember {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 2.75rem;
    margin: 0;
    font-weight: 400;
    cursor: pointer;
}

.qnected-customer-auth input[type="checkbox"] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    flex-shrink: 0;
    accent-color: #4f46e5;
}

.qnected-customer-auth .qnected-auth-options > a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    font-weight: 500;
    text-decoration: none;
}

.qnected-customer-auth button.button,
.qnected-customer-auth a.qnected-auth-button {
    display: flex;
    align-items: center;
    justify-content: center;
    float: none;
    width: 100%;
    min-height: 3rem;
    margin: 0;
    padding: 0.75rem 1rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    background: #4f46e5;
    color: #fff;
    font: inherit;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 1px 2px rgb(16 24 40 / 8%);
    cursor: pointer;
    transition: background-color 150ms ease;
}

.qnected-customer-auth button.button:hover,
.qnected-customer-auth a.qnected-auth-button:hover {
    background: #4338ca;
    color: #fff;
    text-decoration: none;
}

.qnected-customer-auth button.button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.qnected-customer-auth .password-input {
    position: relative;
    display: block;
    width: 100%;
}

.qnected-customer-auth .password-input .input-text {
    padding-right: 3rem;
}

/* WooCommerce adds this native button only when its script is available. */
.qnected-customer-auth .show-password-input {
    position: absolute;
    inset: 0 0 0 auto;
    display: grid;
    place-items: center;
    width: 3rem;
    min-height: 3rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0.5rem;
    background: transparent;
    color: #667085;
    cursor: pointer;
}

.qnected-customer-auth .show-password-input::before {
    content: "";
    width: 1.125rem;
    height: 0.75rem;
    border: 1.5px solid currentColor;
    border-radius: 70% 15%;
    transform: rotate(45deg);
}

.qnected-customer-auth .show-password-input::after {
    position: absolute;
    content: "";
    width: 0.3rem;
    height: 0.3rem;
    margin: 0;
    border-radius: 50%;
    background: currentColor;
}

.qnected-customer-auth .show-password-input.display-password {
    color: #4f46e5;
}

.qnected-customer-auth .show-password-input.display-password::after {
    width: 1.5px;
    height: 1.375rem;
    border-radius: 0;
    transform: rotate(-40deg);
}

.qnected-customer-auth a,
.qnected-auth-switch a,
.qnected-auth-footer a {
    color: #4338ca;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.2em;
}

.qnected-customer-auth a:hover,
.qnected-auth-switch a:hover,
.qnected-auth-footer a:hover {
    color: #312e81;
    text-decoration: underline;
}

.qnected-auth-layout :focus-visible,
.qnected-customer-auth :focus-visible,
.qnected-auth-switch a:focus-visible {
    outline: 2px solid #4f46e5;
    outline-offset: 4px;
}

.qnected-customer-auth .qnected-auth-hint,
.qnected-customer-auth .woocommerce-privacy-policy-text,
.qnected-customer-auth .woocommerce-password-hint {
    margin: 0 0 1.25rem;
    color: #667085;
    font-size: 0.8125rem;
    line-height: 1.7;
}

.qnected-customer-auth .woocommerce-privacy-policy-text p {
    margin: 0 0 1.25rem;
}

.qnected-customer-auth .woocommerce-password-strength {
    margin-top: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid #dfe3ec;
    border-radius: 0.375rem;
    font-size: 0.8125rem;
}

.qnected-customer-auth .woocommerce-password-strength.bad,
.qnected-customer-auth .woocommerce-password-strength.short {
    border-color: #fda29b;
    background: #fff4f2;
    color: #912018;
}

.qnected-customer-auth .woocommerce-password-strength.good {
    background: #fffaeb;
    color: #854a0e;
}

.qnected-customer-auth .woocommerce-password-strength.strong {
    background: #ecfdf3;
    color: #166534;
}

.qnected-customer-auth .woocommerce-error,
.qnected-customer-auth .woocommerce-message,
.qnected-customer-auth .woocommerce-info,
.qnected-auth-feedback {
    position: static;
    width: 100%;
    margin: 0 0 1.25rem;
    padding: 0.875rem 1rem;
    border: 1px solid #c7d2fe;
    border-radius: 0.5rem;
    background: #f5f6ff;
    color: #344054;
    font-size: 0.8125rem;
    line-height: 1.6;
    list-style-position: inside;
}

.qnected-customer-auth .woocommerce-error {
    border-color: #fda29b;
    background: #fff4f2;
    color: #912018;
}

.qnected-customer-auth .woocommerce-error::before,
.qnected-customer-auth .woocommerce-message::before,
.qnected-customer-auth .woocommerce-info::before {
    content: none;
}

.qnected-customer-auth .woocommerce-notices-wrapper:empty,
.qnected-auth-feedback:empty {
    display: none;
}

.qnected-auth-switch {
    margin: 1.5rem 0 0;
    color: #667085;
    font-size: 0.875rem;
    line-height: 1.75;
    text-align: center;
    overflow-wrap: anywhere;
}

.qnected-auth-switch a {
    display: inline-block;
    padding: 0.25rem 0;
    font-weight: 600;
}

.qnected-auth-footer {
    padding: 0 1.25rem 1.5rem;
    color: #667085;
    font-size: 0.75rem;
    text-align: center;
}

.qnected-auth-footer p {
    margin: 0 0 0.375rem;
}

.qnected-auth-footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 1.25rem;
}

.qnected-auth-footer nav a {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    color: #667085;
    text-decoration: none;
}

.qnected-auth-skip {
    position: fixed;
    top: 1rem;
    left: 1rem;
    z-index: 100000;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    background: #182132;
    color: #fff;
    transform: translateY(calc(-100% - 2rem));
}

.qnected-auth-skip:focus {
    transform: translateY(0);
}

@media (max-width: 360px) {
    .qnected-auth-page {
        padding-inline: 0.75rem;
    }

    .qnected-customer-auth {
        padding: 1.25rem;
    }

    .qnected-customer-auth .qnected-auth-options {
        gap: 0 0.75rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .qnected-customer-auth .input-text,
    .qnected-customer-auth button.button,
    .qnected-customer-auth a.qnected-auth-button {
        transition: none;
    }
}
