﻿:root {
    --s2cx-purple: #4a2c5e;
    --s2cx-purple-deep: #2f173f;
    --s2cx-orange: #ff7a1a;
    --s2cx-ink: #21152e;
    --s2cx-muted: #6a6074;
    --s2cx-line: rgba(74, 44, 94, .14);
    --s2cx-soft: #f7f2fa;
}

body.sabe2-wp-login {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(255, 122, 26, .12), transparent 34%),
        linear-gradient(315deg, rgba(74, 44, 94, .18), transparent 38%),
        #f6f2f8;
}

body.sabe2-wp-login::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        repeating-linear-gradient(120deg, rgba(74, 44, 94, .08) 0 1px, transparent 1px 22px),
        linear-gradient(180deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .2));
    pointer-events: none;
}

.sabe2-wp-login #login {
    position: relative;
    width: min(420px, calc(100vw - 28px));
    padding: 7vh 0 0;
}

.sabe2-wp-login h1 a {
    width: auto;
    height: auto;
    margin: 0 0 18px;
    background: none !important;
    color: var(--s2cx-purple);
    text-indent: 0;
    font-size: 34px;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0;
}

.sabe2-wp-login form {
    position: relative;
    margin-top: 0;
    padding: 30px;
    border: 1px solid rgba(74, 44, 94, .13);
    border-radius: 14px;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 28px 70px rgba(33, 21, 46, .16);
    overflow: hidden;
    animation: s2cx-card-in .55s cubic-bezier(.22, 1, .36, 1) both;
}

.sabe2-wp-login form::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, var(--s2cx-purple), var(--s2cx-orange), #0f9f8f);
}

.sabe2-wp-login label {
    color: var(--s2cx-ink);
    font-weight: 800;
}

.sabe2-wp-login input[type="text"],
.sabe2-wp-login input[type="password"],
.sabe2-wp-login input[type="email"] {
    min-height: 48px;
    border: 1px solid var(--s2cx-line);
    border-radius: 8px;
    background: #fbf9fd;
    color: var(--s2cx-ink);
    box-shadow: none;
}

.sabe2-wp-login input:focus {
    border-color: rgba(255, 122, 26, .65);
    box-shadow: 0 0 0 4px rgba(255, 122, 26, .12);
}

.sabe2-wp-login .button-primary {
    min-height: 46px;
    padding: 0 20px;
    border: 0;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--s2cx-purple), var(--s2cx-orange));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 28px rgba(255, 122, 26, .24);
    transition: transform .2s ease, box-shadow .2s ease;
}

.sabe2-wp-login .button-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 34px rgba(74, 44, 94, .24);
}

.sabe2-wp-login #nav,
.sabe2-wp-login #backtoblog,
.sabe2-wp-login .language-switcher {
    position: relative;
    text-align: center;
}

.sabe2-wp-login #nav a,
.sabe2-wp-login #backtoblog a {
    color: var(--s2cx-purple);
    font-weight: 800;
}

.s2-auth-page {
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(320px, .62fr) minmax(680px, 1fr);
    gap: clamp(22px, 4vw, 44px);
    width: min(1420px, calc(100vw - 48px));
    margin: clamp(24px, 5vw, 64px) auto;
    padding: clamp(18px, 4vw, 42px);
    border: 1px solid rgba(74, 44, 94, .10);
    border-radius: 18px;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .94), rgba(255, 255, 255, .82)),
        linear-gradient(120deg, rgba(255, 122, 26, .12), rgba(15, 159, 143, .10));
    box-shadow: 0 30px 80px rgba(33, 21, 46, .12);
    overflow: hidden;
    isolation: isolate;
}

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

.s2-auth-page::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    background: repeating-linear-gradient(120deg, rgba(74, 44, 94, .055) 0 1px, transparent 1px 24px);
}

.s2-auth-visual {
    position: absolute;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.s2-auth-visual span {
    position: absolute;
    display: block;
    width: 38%;
    height: 16px;
    border-radius: 999px;
    background: rgba(255, 122, 26, .14);
    transform: rotate(-20deg);
    animation: s2cx-band 8s ease-in-out infinite;
}

.s2-auth-visual span:nth-child(1) {
    top: 12%;
    left: -8%;
}

.s2-auth-visual span:nth-child(2) {
    right: -10%;
    bottom: 22%;
    background: rgba(74, 44, 94, .12);
    animation-delay: -2s;
}

.s2-auth-visual span:nth-child(3) {
    right: 22%;
    top: 8%;
    width: 22%;
    background: rgba(15, 159, 143, .10);
    animation-delay: -4s;
}

.s2-auth-copy {
    align-self: center;
    animation: s2cx-copy-in .65s cubic-bezier(.22, 1, .36, 1) both;
}

.s2-auth-kicker {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    margin: 0 0 14px;
    padding: 6px 10px;
    border: 1px solid rgba(255, 122, 26, .25);
    border-radius: 8px;
    background: #fff7f0;
    color: var(--s2cx-orange);
    font-size: 12px;
    font-weight: 900;
    line-height: 1.2;
}

.s2-auth-copy h1 {
    max-width: 520px;
    margin: 0;
    color: var(--s2cx-ink);
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.04;
    font-weight: 900;
    letter-spacing: 0;
    overflow-wrap: break-word;
}

.s2-auth-copy p:not(.s2-auth-kicker) {
    max-width: 520px;
    margin: 18px 0 0;
    color: var(--s2cx-muted);
    font-size: clamp(15px, 1.5vw, 18px);
    line-height: 1.8;
    font-weight: 700;
}

.s2-auth-card {
    position: relative;
    min-width: 0;
    padding: clamp(18px, 3vw, 28px);
    border: 1px solid rgba(74, 44, 94, .12);
    border-radius: 14px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 24px 60px rgba(35, 21, 46, .13);
    animation: s2cx-card-in .65s cubic-bezier(.22, 1, .36, 1) both;
}

.s2-auth-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(90deg, var(--s2cx-purple), var(--s2cx-orange), #0f9f8f);
}

.s2-auth-card #customer_login {
    display: grid;
    grid-template-columns: repeat(2, minmax(300px, 1fr));
    gap: 20px;
    --wd-gap-lg: 20px;
    --wd-gap-md: 20px;
    --wd-gap-sm: 18px;
}

.s2-auth-card .wd-registration-page.wd-register-tabs {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.s2-auth-card #customer_login > .wd-col {
    min-width: 0;
    width: auto !important;
    max-width: none !important;
}

.s2-auth-card .col-register-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    text-align: start !important;
}

.s2-auth-card .u-column1,
.s2-auth-card .u-column2,
.s2-auth-card .col-1,
.s2-auth-card .col-2 {
    width: 100% !important;
    max-width: none !important;
    padding: 0 !important;
    border: 0 !important;
}

.s2-auth-card h2,
.s2-auth-card .wd-login-title {
    margin: 0 0 16px !important;
    color: var(--s2cx-ink) !important;
    font-size: 22px !important;
    line-height: 1.25 !important;
    font-weight: 900 !important;
    letter-spacing: 0 !important;
}

.s2-auth-card form.login,
.s2-auth-card form.register,
.s2-auth-card .woocommerce-form-login,
.s2-auth-card .woocommerce-form-register {
    min-height: 100%;
    margin: 0 !important;
    padding: 18px !important;
    border: 1px solid rgba(74, 44, 94, .11) !important;
    border-radius: 10px !important;
    background: linear-gradient(180deg, #fff, #fbf8fd) !important;
    box-shadow: none !important;
}

.s2-auth-card label {
    color: var(--s2cx-ink);
    font-weight: 850;
}

.s2-auth-card input.input-text,
.s2-auth-card input[type="text"],
.s2-auth-card input[type="email"],
.s2-auth-card input[type="password"] {
    min-height: 46px;
    border: 1px solid rgba(74, 44, 94, .16) !important;
    border-radius: 8px !important;
    background: #fff !important;
    color: var(--s2cx-ink) !important;
    box-shadow: none !important;
    transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}

.s2-auth-card input:focus {
    border-color: rgba(255, 122, 26, .68) !important;
    box-shadow: 0 0 0 4px rgba(255, 122, 26, .12) !important;
    transform: translateY(-1px);
}

.s2-auth-card button.button,
.s2-auth-card .woocommerce-button {
    min-height: 46px !important;
    padding: 0 18px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, var(--s2cx-purple), var(--s2cx-orange)) !important;
    color: #fff !important;
    font-weight: 900 !important;
    box-shadow: 0 14px 28px rgba(255, 122, 26, .22) !important;
    transition: transform .22s ease, box-shadow .22s ease !important;
}

.s2-auth-card button.button:hover,
.s2-auth-card .woocommerce-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 38px rgba(74, 44, 94, .22) !important;
}

.s2-auth-card .woocommerce-privacy-policy-text,
.s2-auth-card .lost_password,
.s2-auth-card .woocommerce-LostPassword {
    color: var(--s2cx-muted);
    font-size: 13px;
    line-height: 1.6;
}

.s2-auth-card a {
    color: var(--s2cx-purple);
    font-weight: 800;
}

body.rtl .s2-auth-card,
.s2-auth-page[dir="rtl"] .s2-auth-card {
    text-align: right;
}

.s2-auth-page[dir="ltr"] .s2-auth-card,
.s2-auth-page[dir="ltr"] .wd-registration-page,
.s2-auth-page[dir="ltr"] .wd-login-title,
.s2-auth-page[dir="ltr"] .registration-info,
.s2-auth-page[dir="ltr"] label {
    direction: ltr;
    text-align: left;
}

.s2-auth-page[dir="ltr"] .registration-info {
    border-right: 0;
    border-left: 3px solid var(--s2cx-purple);
}

.s2-auth-page[dir="ltr"] .col-register-text .wd-login-title {
    font-size: 0 !important;
}

.s2-auth-page[dir="ltr"] .col-register-text .wd-login-title::before {
    content: "Login";
    font-size: 22px;
    line-height: 1.25;
}

.s2-auth-page[dir="ltr"] .col-register-text .registration-info {
    font-size: 0;
    line-height: 0;
}

.s2-auth-page[dir="ltr"] .col-register-text .registration-info::before {
    content: "Registering for this site allows you to access your order status and history. Just fill in the fields below, and we will get a new account set up for you in no time. We will only ask you for information necessary to make the purchase process faster and easier.";
    display: block;
    font-size: 14px;
    line-height: 1.7;
}

.s2-auth-page[dir="rtl"] .col-register-text {
    align-items: flex-end;
}

@keyframes s2cx-card-in {
    from {
        opacity: 0;
        transform: translateY(20px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes s2cx-copy-in {
    from {
        opacity: 0;
        transform: translateX(-18px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes s2cx-band {
    0%, 100% {
        transform: translate3d(0, 0, 0) rotate(-20deg);
    }
    50% {
        transform: translate3d(18px, -8px, 0) rotate(-20deg);
    }
}

@media (max-width: 1100px) {
    .s2-auth-page {
        grid-template-columns: 1fr;
        padding: 24px;
    }

    .s2-auth-copy h1,
    .s2-auth-copy p:not(.s2-auth-kicker) {
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .s2-auth-card #customer_login {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 720px) {
    .s2-auth-page {
        width: min(100vw - 18px, 560px);
        max-width: calc(100vw - 18px);
        margin: 18px auto 28px;
        padding: 16px;
        border-radius: 12px;
    }

    .s2-auth-copy,
    .s2-auth-card {
        width: 100%;
        max-width: calc(100vw - 50px);
    }

    .s2-auth-copy h1,
    .s2-auth-copy p:not(.s2-auth-kicker) {
        max-width: calc(100vw - 64px);
    }

    .s2-auth-card {
        padding: 14px;
        border-radius: 12px;
    }

    .s2-auth-card #customer_login {
        grid-template-columns: 1fr;
    }

    .s2-auth-copy h1 {
        font-size: clamp(24px, 7vw, 32px);
        line-height: 1.12;
        overflow-wrap: anywhere;
    }

    .s2-auth-copy p:not(.s2-auth-kicker) {
        font-size: 14px;
        line-height: 1.65;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sabe2-wp-login form,
    .s2-auth-copy,
    .s2-auth-card,
    .s2-auth-visual span {
        animation: none !important;
    }

    .s2-auth-card input:focus,
    .s2-auth-card button.button:hover,
    .s2-auth-card .woocommerce-button:hover,
    .sabe2-wp-login .button-primary:hover {
        transform: none !important;
    }
}

