    :root {
        --ivory: #FAF7F2;
        --charcoal: #1A1A1A;
        --gold: #BFA46A;
        --muted: #8A8580;
        --panel-bg: #FFFFFF;
        --border: #E8E2D9;
        --success: #2E7D52;
        --error: #C0392B;
    }

    *,
    *::before,
    *::after {
        box-sizing: border-box;
        margin: 0;
        padding: 0;
    }

    body.amelia-standalone-auth {
        background: var(--ivory);
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow-x: hidden;
        padding: 2rem 0;
        margin: 0;
        font-family: 'DM Sans', sans-serif;
    }

    body.amelia-standalone-auth::before {
        content: '';
        position: fixed;
        top: -20%;
        right: -10%;
        width: 600px;
        height: 600px;
        background: radial-gradient(circle, rgba(191, 164, 106, .13) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    body.amelia-standalone-auth::after {
        content: '';
        position: fixed;
        bottom: -15%;
        left: -10%;
        width: 500px;
        height: 500px;
        background: radial-gradient(circle, rgba(191, 164, 106, .08) 0%, transparent 70%);
        pointer-events: none;
        z-index: 0;
    }

    /* Container hierarchy: Ensure 100% centering and NO shrink-wrapping difference */
    body.amelia-standalone-auth main#primary,
    body.amelia-standalone-auth .site-main,
    body.amelia-standalone-auth .site-main .woocommerce,
    body.amelia-standalone-auth .auth-page-container {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        align-items: center !important;
        margin: 0 auto !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }

    /* Card Wrapper: Strictly identical width on both Sign In & Create Account */
    .auth-wrapper {
        position: relative;
        z-index: 1;
        width: 100% !important;
        max-width: 580px !important;
        margin: 0 auto !important;
        padding: 1rem;
        box-sizing: border-box !important;
        animation: fadeUp .7s ease both;
    }

    @media (min-width: 580px) {
        .auth-wrapper {
            width: 580px !important; /* Force exact identical width on both tabs */
        }
    }

    /* Reset WooCommerce default box styles so Sign In and Create Account are identical */
    .woocommerce form.login,
    .woocommerce form.register,
    .woocommerce-form.woocommerce-form-login,
    .woocommerce-form.woocommerce-form-register,
    .auth-card form.woocommerce-form-login,
    .auth-card form.woocommerce-form-register {
        border: none !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border-radius: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        box-shadow: none !important;
        float: none !important;
        box-sizing: border-box !important;
    }

    .auth-card,
    .auth-screen,
    #screen-main,
    #panel-login,
    #panel-register {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    @keyframes fadeUp {
        from {
            opacity: 0;
            transform: translateY(28px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    .brand {
        text-align: center;
        margin-bottom: 2.5rem;
    }

    .brand-logo img {
        width: 185px;
    }

    .brand-tagline {
        font-size: .7rem;
        letter-spacing: .25em;
        text-transform: uppercase;
        color: var(--muted);
        margin-top: .25rem;
    }

    .woocommerce-error,
    .woocommerce-message,
    .woocommerce-info {
        list-style: none;
        padding: 12px 18px;
        margin-bottom: 20px;
        border-radius: 4px;
        font-size: 14px;
        line-height: 1.5;
        width: 100%;
        box-sizing: border-box;
    }
    .woocommerce-error {
        background: #fdf2f2;
        border: 1px solid #f8b4b4;
        color: #9b1c1c;
    }
    .woocommerce-message {
        background: #f3faf7;
        border: 1px solid #84e1bc;
        color: #03543f;
    }
    .woocommerce-info {
        background: #fdf8f0;
        border: 1px solid #e7dbcf;
        color: #8f6540;
    }

    .auth-card {
        background: var(--panel-bg);
        border: 1px solid var(--border);
        border-radius: 2px;
        padding: 2.8rem 3rem;
        box-shadow: 0 12px 48px rgba(26, 26, 26, .07), 0 2px 8px rgba(26, 26, 26, .04);
        box-sizing: border-box;
    }

    /* Tabs */
    .auth-tabs {
        display: flex;
        border-bottom: 1px solid var(--border);
        margin-bottom: 2.5rem;
    }

    .auth-tab {
        flex: 1;
        background: none;
        border: none;
        padding: .75rem 0;
        font-family: 'DM Sans', sans-serif;
        font-size: .72rem;
        font-weight: 500;
        letter-spacing: .18em;
        text-transform: uppercase;
        color: var(--muted);
        cursor: pointer;
        position: relative;
        transition: color .3s;
    }

    .auth-tab::after {
        content: '';
        position: absolute;
        bottom: -1px;
        left: 0;
        right: 0;
        height: 1.5px;
        background: var(--gold);
        transform: scaleX(0);
        transition: transform .35s cubic-bezier(.4, 0, .2, 1);
    }

    .auth-tab.active {
        color: var(--charcoal);
    }

    .auth-tab.active::after {
        transform: scaleX(1);
    }

    /* Screens */
    .auth-screen {
        display: none;
    }

    .auth-screen.active {
        display: block;
        animation: panelFade .4s ease both;
    }

    @keyframes panelFade {
        from {
            opacity: 0;
            transform: translateY(10px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* Back btn */
    .back-btn {
        display: inline-flex;
        align-items: center;
        gap: .4rem;
        background: none;
        border: none;
        padding: 0;
        font-size: .72rem;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--muted);
        cursor: pointer;
        margin-bottom: 1.8rem;
        transition: color .2s;
    }

    .back-btn:hover {
        color: var(--gold);
    }

    /* Titles */
    .panel-title {
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.75rem;
        font-weight: 400;
        margin-bottom: .3rem;
        line-height: 1.2;
        background: linear-gradient(90deg, rgb(113, 72, 9) 0%, rgb(166, 118, 0) 50%, rgba(128, 98, 0, 0.98) 100%);
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        color: transparent;
    }

    .panel-subtitle {
        font-size: 15px;
        color: var(--muted);
        margin-bottom: 2rem;
        font-weight: 300;
        line-height: 1.6;
    }

    /* Form */
    .form-group {
        margin-bottom: 1.4rem;
    }

    .form-label {
        font-size: 14px;
        color: var(--charcoal);
        margin-bottom: .5rem;
        display: block;
        font-family: 'DM Sans', sans-serif;
    }

    .form-control-luxe {
        width: 100% !important;
        background: transparent !important;
        border: none !important;
        border-bottom: 1px solid var(--border) !important;
        border-radius: 0 !important;
        padding: .65rem 0 !important;
        font-family: 'DM Sans', sans-serif !important;
        font-size: .9rem !important;
        color: var(--charcoal) !important;
        outline: none !important;
        box-shadow: none !important;
        transition: border-color .3s !important;
    }

    .form-control-luxe::placeholder {
        color: #00000053;
        font-weight: 300;
        font-size: 15px;
    }

    .form-control-luxe:focus {
        border-bottom-color: var(--gold) !important;
    }

    .form-control-luxe.is-invalid {
        border-bottom-color: var(--error) !important;
    }

    .form-control-luxe.is-valid {
        border-bottom-color: var(--success) !important;
    }

    /* ==========================================================================
       Hide Browser Native Password Reveal Icons (Edge, IE, Chrome, Safari)
       ========================================================================== */
    input[type="password"]::-ms-reveal,
    input[type="password"]::-ms-clear {
        display: none !important;
        width: 0 !important;
        height: 0 !important;
        pointer-events: none !important;
        appearance: none !important;
    }

    input[type="password"]::-webkit-contacts-auto-fill-button,
    input[type="password"]::-webkit-credentials-auto-fill-button {
        visibility: hidden !important;
        display: none !important;
        pointer-events: none !important;
        height: 0 !important;
        width: 0 !important;
        margin: 0 !important;
    }

    /* Hide WooCommerce core injected password toggles */
    .woocommerce-form-login .show-password-input,
    .woocommerce-form-register .show-password-input,
    .woocommerce-password-toggle {
        display: none !important;
    }

    /* Hide duplicate WooCommerce verbose privacy text */
    .woocommerce-form-register .woocommerce-privacy-policy-text {
        display: none !important;
    }

    /* Password field input wrapper and custom icon button */
    .input-icon-wrap {
        position: relative;
        width: 100%;
    }

    .input-icon-wrap .form-control-luxe {
        padding-right: 2.4rem !important;
    }

    .input-icon-btn {
        position: absolute;
        right: 0;
        bottom: .6rem;
        background: none !important;
        border: none !important;
        padding: 0 !important;
        color: var(--muted) !important;
        cursor: pointer;
        font-size: 1.05rem;
        line-height: 1;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: color .2s;
        z-index: 5;
    }

    .input-icon-btn:hover {
        color: var(--charcoal) !important;
    }

    .input-icon-btn i {
        font-size: 1.05rem;
        line-height: 1;
        display: inline-block;
    }

    .form-row-2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1.2rem;
    }

    .form-check-luxe {
        display: flex;
        align-items: center;
        gap: .6rem;
    }

    .form-check-luxe input[type="checkbox"] {
        width: 14px;
        height: 14px;
        accent-color: #774d08;
        cursor: pointer;
    }

    .form-check-luxe label {
        font-size: .78rem;
        color: var(--muted);
        cursor: pointer;
        font-family: 'DM Sans', sans-serif;
    }

    .forgot-link {
        font-size: .78rem;
        color: var(--muted);
        text-decoration: none;
        cursor: pointer;
        font-family: 'DM Sans', sans-serif;
        transition: color .2s;
    }

    .forgot-link:hover {
        color: var(--gold);
    }

    .field-hint {
        font-size: .68rem;
        margin-top: .35rem;
        color: var(--muted);
        min-height: .85rem;
    }

    .field-hint.err {
        color: var(--error);
    }

    .field-hint.ok {
        color: var(--success);
    }

    .password-strength,
    .strength-segment,
    .woocommerce-password-strength,
    .woocommerce-password-hint {
        display: none !important;
    }

    /* Buttons */
    .woocommerce .auth-card button.button.btn-luxe,
    .auth-card button.btn-luxe,
    .btn-luxe {
        display: block !important;
        width: 100% !important;
        background: linear-gradient(90deg, rgb(113 72 9) 0%, rgb(166 118 0) 50%, rgb(128 98 0 / 98%) 100%) !important;
        color: var(--ivory) !important;
        border: 1px solid #916c03 !important;
        border-radius: 4px !important;
        padding: 10px 25px !important;
        font-family: 'DM Sans', sans-serif !important;
        font-size: 16px !important;
        font-weight: 600 !important;
        cursor: pointer !important;
        transition: background .3s, color .3s, border-color .3s !important;
        margin-top: 1.8rem !important;
        text-align: center !important;
        box-shadow: none !important;
    }

    .woocommerce .auth-card button.button.btn-luxe:hover,
    .auth-card button.btn-luxe:hover,
    .btn-luxe:hover {
        background: #92763b !important;
        border-color: var(--gold) !important;
        color: #fff !important;
    }

    .btn-social {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: .6rem;
        width: 100%;
        background: transparent;
        color: var(--charcoal);
        border: 1px solid var(--border);
        border-radius: 0;
        padding: .75rem 1rem;
        font-family: 'DM Sans', sans-serif;
        font-size: .78rem;
        font-weight: 400;
        letter-spacing: .06em;
        cursor: pointer;
        transition: border-color .25s, background .25s;
    }

    .btn-social:hover {
        border-color: var(--gold);
        background: rgba(191, 164, 106, .05);
    }

    .or-divider {
        display: flex;
        align-items: center;
        gap: 1rem;
        margin: 1.6rem 0;
    }

    .or-divider::before,
    .or-divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: var(--border);
    }

    .or-divider span {
        font-size: .68rem;
        letter-spacing: .12em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .switch-text {
        text-align: center;
        font-size: .78rem;
        color: var(--muted);
        margin-top: 1.8rem;
        font-family: 'DM Sans', sans-serif;
    }

    .switch-text a {
        color: #7b4e12 !important;
        font-weight: 500;
        text-decoration: underline;
        text-underline-offset: 3px;
        cursor: pointer;
    }

    .switch-text a:hover {
        color: var(--gold) !important;
    }

    .terms-text {
        font-size: .72rem;
        color: var(--muted);
        margin-top: 1rem;
        text-align: center;
        line-height: 1.6;
        font-family: 'DM Sans', sans-serif;
    }

    .terms-text a {
        color: var(--charcoal);
        text-decoration: underline;
        text-underline-offset: 2px;
    }

    .terms-text a:hover {
        color: var(--gold);
    }

    /* Strength */
    .strength-label {
        font-size: .65rem;
        color: var(--muted);
        margin-top: .3rem;
        letter-spacing: .06em;
        min-height: .85rem;
    }

    /* OTP */
    .otp-group {
        display: flex;
        gap: .75rem;
        justify-content: center;
        margin: 2rem 0;
    }

    .otp-input {
        width: 52px;
        height: 58px;
        border: none;
        border-bottom: 2px solid var(--border);
        background: transparent;
        font-family: 'Cormorant Garamond', serif;
        font-size: 1.8rem;
        font-weight: 400;
        text-align: center;
        color: var(--charcoal);
        outline: none;
        transition: border-color .3s;
    }

    .otp-input:focus {
        border-bottom-color: var(--gold);
    }

    .otp-input.filled {
        border-bottom-color: var(--charcoal);
    }

    .resend-row {
        text-align: center;
        font-size: .78rem;
        color: var(--muted);
        margin-top: .5rem;
    }

    .resend-row a {
        color: var(--gold);
        cursor: pointer;
        text-decoration: none;
    }

    .resend-row a:hover {
        text-decoration: underline;
    }

    #countdown {
        font-weight: 500;
        color: var(--charcoal);
    }

    /* Success */
    .success-icon {
        width: 64px;
        height: 64px;
        border-radius: 50%;
        background: rgba(46, 125, 82, .1);
        display: flex;
        align-items: center;
        justify-content: center;
        margin: 0 auto 1.5rem;
        font-size: 1.8rem;
        color: var(--success);
    }

    .success-panel {
        text-align: center;
        padding: .5rem 0;
    }

    /* Req list */
    .req-list {
        list-style: none;
        margin-top: .5rem;
        padding: 0;
    }

    .req-list li {
        font-size: .72rem;
        color: var(--muted);
        display: flex;
        align-items: center;
        gap: .5rem;
        margin-bottom: .3rem;
        transition: color .3s;
    }

    .req-list li i {
        font-size: .7rem;
        transition: color .3s;
    }

    .req-list li.met {
        color: var(--success);
    }

    @media (max-width: 580px) {
        .auth-card {
            padding: 2rem 1.5rem;
        }

        .form-row-2 {
            grid-template-columns: 1fr;
            gap: 0;
        }

        .otp-input {
            width: 42px;
            height: 50px;
            font-size: 1.4rem;
        }
    }
