:root {
    --af-auth-ink: #2d241b;
    --af-auth-muted: #74685b;
    --af-auth-canvas: #f6f0e7;
    --af-auth-surface: rgba(255, 253, 248, .94);
    --af-auth-line: #ded0ba;
    --af-auth-gold: #936b29;
    --af-auth-gold-light: #c9aa6b;
    --af-auth-white: #fffdfa;
    --af-auth-success: #49634f;
}

body.afsheen-auth-page #inner-wrap {
    background:
        radial-gradient(circle at 83% 20%, rgba(202, 174, 119, .18), transparent 30rem),
        linear-gradient(120deg, rgba(255, 255, 255, .32), transparent 52%),
        var(--af-auth-canvas);
}

body.afsheen-auth-page #primary,
body.afsheen-auth-page #main,
body.afsheen-auth-page .content-wrap,
body.afsheen-auth-page article.entry,
body.afsheen-auth-page .entry-content-wrap,
body.afsheen-auth-page .entry-content {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.afsheen-auth-page .content-container.site-container {
    width: 100%;
    max-width: none;
    padding: 0;
}

body.afsheen-auth-page .entry-header {
    display: none;
}

.afsheen-auth-shell {
    width: min(1180px, calc(100% - 48px));
    min-height: 760px;
    display: grid;
    grid-template-columns: minmax(280px, .85fr) minmax(460px, 540px);
    align-items: center;
    gap: clamp(70px, 10vw, 150px);
    margin: 0 auto;
    padding: 70px 0 82px;
}

.afsheen-auth-intro {
    padding: 0 0 24px;
}

.afsheen-auth-eyebrow {
    margin: 0;
    color: var(--af-auth-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .2em;
    text-transform: uppercase;
}

.afsheen-auth-intro h1 {
    margin: 18px 0;
    color: var(--af-auth-ink);
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(58px, 5vw, 78px);
    font-weight: 500;
    line-height: .9;
    letter-spacing: -.025em;
}

.afsheen-auth-lead {
    max-width: 410px;
    margin: 0;
    color: var(--af-auth-muted);
    font-size: 17px;
    line-height: 1.75;
}

.afsheen-auth-benefits {
    display: grid;
    gap: 15px;
    margin: 32px 0 0;
    padding: 0;
    color: #51483e;
    list-style: none;
}

.afsheen-auth-benefits li {
    position: relative;
    padding-left: 30px;
}

.afsheen-auth-benefits li::before {
    content: "";
    position: absolute;
    top: .32em;
    left: 2px;
    width: 13px;
    height: 7px;
    border-bottom: 1.8px solid var(--af-auth-gold);
    border-left: 1.8px solid var(--af-auth-gold);
    transform: rotate(-45deg);
}

.afsheen-auth-signature {
    margin: 45px 0 0;
    color: var(--af-auth-gold);
    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    font-style: italic;
}

.afsheen-auth-card {
    position: relative;
    padding: 12px 44px 40px;
    overflow: hidden;
    border: 1px solid rgba(180, 143, 73, .4);
    border-radius: 24px;
    background: var(--af-auth-surface);
    box-shadow: 0 24px 70px rgba(70, 48, 20, .12);
}

.afsheen-auth-card::before {
    content: "";
    position: absolute;
    top: 0;
    right: 44px;
    left: 44px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--af-auth-gold-light), transparent);
}

.afsheen-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--af-auth-line);
}

.afsheen-auth-tab {
    position: relative;
    min-height: 70px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--af-auth-muted);
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.afsheen-auth-tab:hover,
.afsheen-auth-tab:focus-visible,
.afsheen-auth-tab[aria-selected="true"] {
    background: transparent;
    color: var(--af-auth-ink);
}

.afsheen-auth-tab:focus-visible {
    outline: 2px solid var(--af-auth-gold);
    outline-offset: -5px;
}

.afsheen-auth-tab[aria-selected="true"]::after {
    content: "";
    position: absolute;
    right: 22%;
    bottom: -1px;
    left: 22%;
    height: 2px;
    background: var(--af-auth-gold);
}

.afsheen-auth-card #customer_login {
    display: block;
    margin: 0;
}

.afsheen-auth-card #customer_login::before,
.afsheen-auth-card #customer_login::after {
    display: none;
}

.afsheen-auth-card #customer_login > .u-column1,
.afsheen-auth-card #customer_login > .u-column2 {
    float: none;
    width: 100%;
    margin: 0;
    padding: 0;
}

.afsheen-auth-card.afsheen-auth-enhanced [role="tabpanel"][hidden] {
    display: none !important;
}

.afsheen-auth-card #customer_login h2 {
    margin: 30px 0 8px;
    color: var(--af-auth-ink);
    font-family: "Cormorant Garamond", serif;
    font-size: 31px;
    font-weight: 600;
    line-height: 1.1;
}

.afsheen-auth-panel-copy {
    margin: 0 0 26px;
    color: var(--af-auth-muted);
    font-size: 14px;
    line-height: 1.65;
}

.afsheen-auth-card #customer_login form.woocommerce-form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.afsheen-auth-card .afsheen-google-login {
    margin: 0 0 24px;
}

.afsheen-auth-card .afsheen-google-login .nsl-container,
.afsheen-auth-card .afsheen-google-login .nsl-container-buttons,
.afsheen-auth-card .afsheen-google-login .nsl-container-buttons a,
.afsheen-auth-card .afsheen-google-login .nsl-button {
    width: 100%;
    max-width: none;
}

.afsheen-auth-card .afsheen-google-login .nsl-button.nsl-button-google {
    min-height: 52px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px;
    border: 1px solid #4285f4 !important;
    border-radius: 6px;
    background: #4285f4 !important;
    box-shadow: none !important;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.afsheen-auth-card .afsheen-google-login .nsl-button.nsl-button-google:hover {
    border-color: #3367d6 !important;
    background: #3367d6 !important;
}

.afsheen-auth-card .afsheen-google-login .nsl-button.nsl-button-google:focus-visible {
    outline: 3px solid rgba(66, 133, 244, 0.3);
    outline-offset: 3px;
}

.afsheen-auth-card .afsheen-google-login .nsl-button.nsl-button-google .nsl-button-svg-container {
    position: static !important;
    width: 32px !important;
    height: 32px !important;
    flex: 0 0 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 4px;
    background-color: #fff !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath fill='%234285F4' d='M17.64 9.205c0-.638-.057-1.252-.164-1.841H9v3.482h4.844a4.14 4.14 0 0 1-1.797 2.716v2.258h2.909c1.702-1.567 2.684-3.875 2.684-6.615Z'/%3E%3Cpath fill='%2334A853' d='M9 18c2.43 0 4.468-.806 5.956-2.18l-2.91-2.258c-.805.54-1.834.86-3.046.86-2.344 0-4.328-1.585-5.037-3.714H.956v2.333A9 9 0 0 0 9 18Z'/%3E%3Cpath fill='%23FBBC05' d='M3.963 10.708A5.42 5.42 0 0 1 3.681 9c0-.593.102-1.17.282-1.708V4.959H.956A9 9 0 0 0 0 9c0 1.452.347 2.827.956 4.041l3.007-2.333Z'/%3E%3Cpath fill='%23EA4335' d='M9 3.578c1.322 0 2.508.454 3.441 1.346l2.582-2.582C13.464.89 11.426 0 9 0A9 9 0 0 0 .956 4.959l3.007 2.333C4.672 5.163 6.656 3.578 9 3.578Z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: center !important;
    background-size: 18px 18px !important;
}

.afsheen-auth-card .afsheen-google-login .nsl-button-svg-container svg {
    display: none;
}

.afsheen-auth-card .afsheen-google-login .nsl-button.nsl-button-google .nsl-button-label-container {
    width: auto !important;
    flex: 0 0 auto !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #fff !important;
    font-family: "Roboto", "DM Sans", sans-serif;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.1px;
}

.afsheen-auth-card .afsheen-google-login__separator {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 25px 0 0;
    color: #8b7f70;
    font-size: 12px;
}

.afsheen-auth-card .afsheen-google-login__separator::before,
.afsheen-auth-card .afsheen-google-login__separator::after {
    content: "";
    height: 1px;
    background: var(--af-auth-line);
}

.afsheen-auth-card .form-row {
    margin: 0 0 18px;
    padding: 0;
}

.afsheen-auth-card .form-row label,
.afsheen-auth-card .woocommerce-form-row label {
    margin: 0 0 9px;
    color: #473d32;
    font-size: 13px;
    font-weight: 700;
}

.afsheen-auth-card input.input-text {
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    border: 1px solid #cfc3b2;
    border-radius: 8px;
    background: var(--af-auth-white);
    color: var(--af-auth-ink);
    font-family: "DM Sans", sans-serif;
    font-size: 15px;
    box-shadow: none;
}

.afsheen-auth-card input.input-text:focus {
    border-color: var(--af-auth-gold);
    outline: 0;
    box-shadow: 0 0 0 3px rgba(155, 116, 47, .13);
}

.afsheen-auth-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 2px 0 22px;
}

.afsheen-auth-options .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--af-auth-muted);
    font-size: 13px;
    font-weight: 600;
}

.afsheen-auth-options input[type="checkbox"] {
    width: 17px;
    height: 17px;
    margin: 0;
    accent-color: var(--af-auth-gold);
}

.afsheen-auth-options .lost_password {
    margin: 0;
}

.afsheen-auth-options a,
.afsheen-auth-card .woocommerce-privacy-policy-link {
    color: var(--af-auth-gold);
    font-size: 13px;
    text-underline-offset: 4px;
}

.afsheen-auth-card .woocommerce-form-login > .form-row:not(.form-row-wide),
.afsheen-auth-card .woocommerce-form-register > .form-row:last-child {
    margin: 0;
}

.afsheen-auth-card .woocommerce-form-login__submit,
.afsheen-auth-card .woocommerce-form-register__submit {
    width: 100%;
    min-height: 54px;
    margin: 0;
    border: 1px solid var(--af-auth-gold);
    border-radius: 9px;
    background: var(--af-auth-gold);
    color: white;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .04em;
}

.afsheen-auth-card .woocommerce-form-login__submit:hover,
.afsheen-auth-card .woocommerce-form-register__submit:hover,
.afsheen-auth-card .woocommerce-form-login__submit:focus-visible,
.afsheen-auth-card .woocommerce-form-register__submit:focus-visible {
    border-color: #76551f;
    background: #76551f;
    color: white;
}

.afsheen-auth-card .woocommerce-privacy-policy-text,
.afsheen-auth-card .woocommerce-form-register > p:not(.form-row):not(.afsheen-auth-panel-copy) {
    color: var(--af-auth-muted);
    font-size: 13px;
    line-height: 1.65;
}

.afsheen-auth-card .woocommerce-privacy-policy-text {
    margin: 0 0 18px;
}

.afsheen-auth-secure-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 20px 0 0;
    color: var(--af-auth-muted);
    font-size: 12px;
}

.afsheen-auth-secure-note svg {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    fill: none;
    stroke: var(--af-auth-success);
    stroke-width: 1.8;
}

@media (max-width: 900px) {
    .afsheen-auth-shell {
        width: min(560px, calc(100% - 32px));
        min-height: auto;
        grid-template-columns: 1fr;
        gap: 28px;
        padding: 46px 0 72px;
    }

    .afsheen-auth-intro {
        padding: 0 4px;
        text-align: center;
    }

    .afsheen-auth-intro h1 {
        margin: 12px 0 10px;
        font-size: 50px;
        line-height: .9;
    }

    .afsheen-auth-lead {
        max-width: 410px;
        margin: 0 auto;
        font-size: 15px;
        line-height: 1.65;
    }

    .afsheen-auth-benefits,
    .afsheen-auth-signature {
        display: none;
    }
}

@media (max-width: 520px) {
    .afsheen-auth-shell {
        width: 100%;
        gap: 0;
        padding: 24px 16px 64px;
    }

    .afsheen-auth-intro {
        display: none;
    }

    .afsheen-auth-card {
        padding: 8px 22px 28px;
        border-radius: 20px;
    }

    .afsheen-auth-card::before {
        right: 28px;
        left: 28px;
    }

    .afsheen-auth-tab {
        min-height: 62px;
    }

    .afsheen-auth-card #customer_login h2 {
        margin-top: 25px;
        font-size: 29px;
    }

    .afsheen-auth-options {
        align-items: flex-start;
    }

    .afsheen-auth-secure-note {
        font-size: 11px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .afsheen-auth-page *,
    .afsheen-auth-page *::before,
    .afsheen-auth-page *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
    }
}
