.niceshop-auth {
    --niceshop-auth-primary: #b51683;
    --niceshop-auth-primary-hover: #94106b;
    --niceshop-auth-accent: #c2188f;
    --niceshop-auth-text: #251327;
    --niceshop-auth-muted: #75657a;
    --niceshop-auth-border: #eaddea;
    --niceshop-auth-panel: #ffffff;
    width: 100vw;
    max-width: 100vw;
    min-height: 100vh;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: clamp(28px, 5vh, 56px) 18px;
    background:
        radial-gradient(circle at 14% 18%, rgba(194, 24, 143, 0.14), transparent 30%),
        radial-gradient(circle at 90% 82%, rgba(181, 22, 131, 0.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fff7fc 46%, #f4e8ff 100%);
    color: var(--niceshop-auth-text);
    box-sizing: border-box;
    display: flex;
    align-items: center;
}

body.woocommerce-account:has(.niceshop-auth) .elementor-heading-title {
    display: none !important;
}

body.woocommerce-account:has(.niceshop-auth) .elementor-element-051407a {
    display: none !important;
}

body.woocommerce-account:has(.niceshop-auth) > br,
body.woocommerce-account:has(.niceshop-auth) > b {
    display: none !important;
}

body.woocommerce-account:has(.niceshop-auth) .elementor-widget-woocommerce-my-account,
body.woocommerce-account:has(.niceshop-auth) .elementor-widget-woocommerce-my-account .elementor-widget-container {
    width: 100% !important;
    max-width: none !important;
}

.niceshop-auth *,
.niceshop-auth *::before,
.niceshop-auth *::after {
    box-sizing: border-box;
}

.niceshop-auth__inner {
    display: grid;
    grid-template-columns: minmax(280px, 0.95fr) minmax(360px, 520px);
    align-items: center;
    gap: clamp(28px, 6vw, 84px);
    width: min(1120px, 100%);
    margin: 0 auto;
}

.niceshop-auth__visual {
    position: relative;
    min-height: 520px;
}

.niceshop-auth__illustration {
    position: absolute;
    inset: 50% auto auto 50%;
    width: min(420px, 88%);
    aspect-ratio: 1;
    transform: translate(-50%, -50%);
}

.niceshop-auth__bag {
    position: absolute;
    left: 8%;
    bottom: 9%;
    width: 58%;
    height: 56%;
    border-radius: 38px 38px 46px 46px;
    background: linear-gradient(145deg, #c2188f, #7f2ac5);
    box-shadow: 0 34px 80px rgba(130, 41, 126, 0.28);
}

.niceshop-auth__bag::before {
    content: "";
    position: absolute;
    left: 24%;
    top: -20%;
    width: 52%;
    height: 38%;
    border: 12px solid #ffffff;
    border-bottom: 0;
    border-radius: 80px 80px 0 0;
}

.niceshop-auth__bag span {
    position: absolute;
    left: 18%;
    right: 18%;
    top: 38%;
    height: 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    box-shadow: 0 34px 0 rgba(255, 255, 255, 0.46);
}

.niceshop-auth__member {
    position: absolute;
    right: 0;
    top: 16%;
    width: 42%;
    height: 50%;
    border: 1px solid rgba(181, 22, 131, 0.14);
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 24px 70px rgba(75, 25, 89, 0.16);
}

.niceshop-auth__member span {
    position: absolute;
    left: 50%;
    top: 22%;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #f5b8df;
    transform: translateX(-50%);
}

.niceshop-auth__member strong {
    position: absolute;
    left: 20%;
    right: 20%;
    bottom: 22%;
    height: 12px;
    border-radius: 999px;
    background: #c2188f;
    box-shadow: 0 24px 0 #efd2ea;
}

.niceshop-auth__orb,
.niceshop-auth__spark {
    position: absolute;
    border-radius: 999px;
}

.niceshop-auth__orb--one {
    width: 116px;
    height: 116px;
    left: 3%;
    top: 10%;
    background: rgba(194, 24, 143, 0.13);
}

.niceshop-auth__orb--two {
    width: 74px;
    height: 74px;
    right: 9%;
    bottom: 8%;
    background: rgba(127, 42, 197, 0.14);
}

.niceshop-auth__spark--one {
    width: 18px;
    height: 18px;
    left: 24%;
    top: 17%;
    background: #b51683;
}

.niceshop-auth__spark--two {
    width: 12px;
    height: 12px;
    right: 22%;
    bottom: 24%;
    background: #7f2ac5;
}

.niceshop-auth__card {
    width: 100%;
    padding: clamp(26px, 4vw, 44px);
    border: 1px solid rgba(234, 221, 234, 0.82);
    border-radius: 30px;
    background: var(--niceshop-auth-panel);
    box-shadow: 0 28px 80px rgba(54, 27, 63, 0.14);
}

.niceshop-auth__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 30px;
    padding: 6px;
    border-radius: 18px;
    background: #f8eef7;
}

.niceshop-auth__tab {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--niceshop-auth-muted);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}

.niceshop-auth__tab.is-active {
    background: #ffffff;
    color: var(--niceshop-auth-primary);
    box-shadow: 0 10px 24px rgba(88, 45, 82, 0.1);
}

.niceshop-auth__panel {
    display: block;
}

.niceshop-auth.is-enhanced .niceshop-auth__panel {
    display: none;
}

.niceshop-auth.is-enhanced .niceshop-auth__panel.is-active {
    display: block;
}

.niceshop-auth__panel + .niceshop-auth__panel {
    margin-top: 38px;
    padding-top: 34px;
    border-top: 1px solid var(--niceshop-auth-border);
}

.niceshop-auth.is-enhanced .niceshop-auth__panel + .niceshop-auth__panel {
    margin-top: 0;
    padding-top: 0;
    border-top: 0;
}

.niceshop-auth__header {
    margin-bottom: 24px;
}

.niceshop-auth__header h2 {
    margin: 0 0 10px;
    color: var(--niceshop-auth-text);
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: 0;
}

.niceshop-auth__header p {
    margin: 0;
    color: var(--niceshop-auth-muted);
    font-size: 15px;
    line-height: 1.7;
}

.niceshop-auth__form {
    display: flow-root;
    margin: 0;
    clear: both;
}

.niceshop-auth__field {
    margin: 0 0 18px;
}

.niceshop-auth__field label {
    display: block;
    margin-bottom: 8px;
    color: var(--niceshop-auth-text);
    font-size: 14px;
    font-weight: 700;
}

.niceshop-auth__field .required {
    color: var(--niceshop-auth-primary);
}

.niceshop-auth .input-text {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--niceshop-auth-border);
    border-radius: 16px;
    background: #fffcff;
    color: var(--niceshop-auth-text);
    font-size: 15px;
    line-height: 1.3;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.niceshop-auth .input-text:focus {
    border-color: rgba(181, 22, 131, 0.58);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(181, 22, 131, 0.11);
}

.niceshop-auth__password {
    position: relative;
    display: block;
}

.niceshop-auth__password .input-text {
    padding-right: 76px;
}

.niceshop-auth__password-toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    min-width: 58px;
    min-height: 38px;
    border: 0;
    border-radius: 12px;
    background: #f7e8f3;
    color: var(--niceshop-auth-primary);
    font-size: 13px;
    font-weight: 800;
    transform: translateY(-50%);
    cursor: pointer;
}

.niceshop-auth__meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 4px 0 22px;
    font-size: 14px;
}

.niceshop-auth__remember {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--niceshop-auth-muted);
    cursor: pointer;
}

.niceshop-auth__remember input {
    width: 17px;
    height: 17px;
    accent-color: var(--niceshop-auth-primary);
}

.niceshop-auth__link,
.niceshop-auth__switch button {
    color: var(--niceshop-auth-primary);
    font-weight: 800;
    text-decoration: none;
}

.niceshop-auth__link:hover,
.niceshop-auth__switch button:hover {
    color: var(--niceshop-auth-primary-hover);
}

.niceshop-auth__submit {
    display: flex !important;
    align-items: center;
    justify-content: center;
    float: none !important;
    clear: both !important;
    position: static !important;
    width: 100%;
    min-height: 56px;
    margin: 0 0 28px !important;
    border: 0;
    border-radius: 16px;
    background: var(--niceshop-auth-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 16px 34px rgba(181, 22, 131, 0.25);
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.niceshop-auth__submit:hover,
.niceshop-auth__submit:focus {
    background: var(--niceshop-auth-primary-hover);
    color: #ffffff;
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(148, 16, 107, 0.28);
}

.niceshop-auth__switch,
.niceshop-auth__generated-password {
    margin: 0;
    color: var(--niceshop-auth-muted);
    font-size: 14px;
    line-height: 1.7;
    text-align: center;
}

.niceshop-auth__switch {
    position: relative;
    z-index: 0;
    clear: both;
}

.niceshop-auth__switch button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}

.niceshop-auth .woocommerce-privacy-policy-text {
    width: 100%;
    max-width: 100%;
    margin: 10px 0 18px;
    color: var(--niceshop-auth-muted);
    font-size: 12px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    word-break: normal;
}

.niceshop-auth .woocommerce-privacy-policy-text a {
    color: var(--niceshop-auth-primary);
    font-weight: 700;
}

.woocommerce #customer_login.niceshop-auth-fallback {
    --niceshop-auth-primary: #b51683;
    --niceshop-auth-primary-hover: #94106b;
    --niceshop-auth-text: #251327;
    --niceshop-auth-muted: #75657a;
    --niceshop-auth-border: #eaddea;
    display: grid;
    grid-template-columns: 1fr;
    width: min(520px, calc(100vw - 32px));
    margin: clamp(28px, 6vw, 72px) auto;
    padding: clamp(24px, 4vw, 42px);
    border: 1px solid rgba(234, 221, 234, 0.82);
    border-radius: 30px;
    background: #ffffff;
    box-shadow: 0 28px 80px rgba(54, 27, 63, 0.14);
}

.woocommerce #customer_login.niceshop-auth-fallback::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 14% 18%, rgba(194, 24, 143, 0.14), transparent 30%),
        radial-gradient(circle at 90% 82%, rgba(181, 22, 131, 0.12), transparent 28%),
        linear-gradient(135deg, #ffffff 0%, #fff7fc 46%, #f4e8ff 100%);
}

.woocommerce #customer_login.niceshop-auth-fallback .u-column1,
.woocommerce #customer_login.niceshop-auth-fallback .u-column2,
.woocommerce #customer_login.niceshop-auth-fallback .col-1,
.woocommerce #customer_login.niceshop-auth-fallback .col-2 {
    float: none;
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.woocommerce #customer_login.niceshop-auth-fallback.is-enhanced .u-column1,
.woocommerce #customer_login.niceshop-auth-fallback.is-enhanced .u-column2,
.woocommerce #customer_login.niceshop-auth-fallback.is-enhanced .col-1,
.woocommerce #customer_login.niceshop-auth-fallback.is-enhanced .col-2 {
    display: none;
}

.woocommerce #customer_login.niceshop-auth-fallback.is-enhanced .u-column1.is-active,
.woocommerce #customer_login.niceshop-auth-fallback.is-enhanced .u-column2.is-active,
.woocommerce #customer_login.niceshop-auth-fallback.is-enhanced .col-1.is-active,
.woocommerce #customer_login.niceshop-auth-fallback.is-enhanced .col-2.is-active {
    display: block;
}

.woocommerce #customer_login.niceshop-auth-fallback h2 {
    margin: 0 0 22px;
    color: var(--niceshop-auth-text);
    font-size: clamp(26px, 3vw, 34px);
    line-height: 1.14;
    font-weight: 800;
    letter-spacing: 0;
    border: 0;
}

.woocommerce #customer_login.niceshop-auth-fallback .woocommerce-form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.woocommerce #customer_login.niceshop-auth-fallback .form-row {
    margin: 0 0 18px;
}

.woocommerce #customer_login.niceshop-auth-fallback label {
    display: block;
    margin-bottom: 8px;
    color: var(--niceshop-auth-text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
}

.woocommerce #customer_login.niceshop-auth-fallback .required {
    color: var(--niceshop-auth-primary);
}

.woocommerce #customer_login.niceshop-auth-fallback .input-text {
    width: 100%;
    min-height: 54px;
    padding: 0 16px;
    border: 1px solid var(--niceshop-auth-border);
    border-radius: 16px;
    background: #fffcff;
    color: var(--niceshop-auth-text);
    font-size: 15px;
    outline: none;
}

.woocommerce #customer_login.niceshop-auth-fallback .input-text:focus {
    border-color: rgba(181, 22, 131, 0.58);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(181, 22, 131, 0.11);
}

.woocommerce #customer_login.niceshop-auth-fallback .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    color: var(--niceshop-auth-muted);
    font-size: 14px;
}

.woocommerce #customer_login.niceshop-auth-fallback .woocommerce-form-login__rememberme input {
    width: 17px;
    height: 17px;
    accent-color: var(--niceshop-auth-primary);
}

.woocommerce #customer_login.niceshop-auth-fallback .woocommerce-button,
.woocommerce #customer_login.niceshop-auth-fallback button.button {
    width: 100%;
    min-height: 56px;
    margin: 0;
    border: 0;
    border-radius: 16px;
    background: var(--niceshop-auth-primary);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 16px 34px rgba(181, 22, 131, 0.25);
}

.woocommerce #customer_login.niceshop-auth-fallback .woocommerce-button:hover,
.woocommerce #customer_login.niceshop-auth-fallback button.button:hover {
    background: var(--niceshop-auth-primary-hover);
    color: #ffffff;
}

.woocommerce #customer_login.niceshop-auth-fallback .lost_password,
.woocommerce #customer_login.niceshop-auth-fallback .woocommerce-privacy-policy-text {
    margin: 16px 0 0;
    color: var(--niceshop-auth-muted);
    font-size: 13px;
    line-height: 1.7;
    text-align: center;
}

.woocommerce #customer_login.niceshop-auth-fallback a {
    color: var(--niceshop-auth-primary);
    font-weight: 700;
    text-decoration: none;
}

@media (max-width: 860px) {
    .niceshop-auth {
        padding: 28px 14px;
    }

    .niceshop-auth__inner {
        display: block;
    }

    .niceshop-auth__visual {
        display: none;
    }

    .niceshop-auth__card {
        padding: 24px;
        border-radius: 24px;
    }
}

@media (max-width: 480px) {
    .niceshop-auth__meta {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .niceshop-auth__tabs {
        margin-bottom: 24px;
    }

    .niceshop-auth__tab,
    .niceshop-auth__submit {
        min-height: 52px;
    }
}
