/* =========================================================
 * PVA Native Woo Auth UI - FIX07
 * Scope: Guest WooCommerce My Account only
 * IMPORTANT:
 * - No WooCommerce template override
 * - No backend auth/registration logic
 * - Native WooCommerce forms are only re-mounted visually by main.js
 * ========================================================= */

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .site-content {
    background: #f7f7f8;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .woocommerce {
    width: 100% !important;
    max-width: 620px !important;
    margin: 54px auto 76px !important;
    padding: 0 20px !important;
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    direction: rtl;
    font-family: IRANSans, sans-serif;
    overflow: visible !important;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .woocommerce::before,
body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .woocommerce::after {
    content: none !important;
    display: none !important;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-original-hidden {
    display: none !important;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-shell {
    width: 100%;
    max-width: 580px;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-title {
    margin: 0 0 28px;
    color: #78838e;
    text-align: center;
    font-family: IRANSans, sans-serif;
    font-size: 28px;
    font-weight: 400;
    line-height: 1.55;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-switch {
    width: 100%;
    margin: 0 auto 20px;
    padding: 17px 22px;
    background: #f3f6f9;
    border: 0;
    border-radius: 0;
    color: #282a2e;
    text-align: center;
    font-family: IRANSans, sans-serif;
    font-size: 12px;
    line-height: 1.9;
    box-sizing: border-box;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-switch button {
    appearance: none;
    -webkit-appearance: none;
    margin: 0 6px 0 0;
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px dashed #8e98a3;
    border-radius: 0;
    background: transparent;
    color: #3488f0;
    font-family: IRANSans, sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.8;
    cursor: pointer;
    box-shadow: none;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-switch button:hover,
body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-switch button:focus {
    color: #176fd7;
    background: transparent;
    outline: none;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card {
    width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card form.login,
body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card form.register {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 34px 38px 30px !important;
    border: 1px solid #e8e8eb !important;
    border-radius: 18px !important;
    background: #fff !important;
    box-shadow: 0 12px 40px rgba(30, 35, 45, 0.06) !important;
    box-sizing: border-box !important;
    transition: box-shadow .25s ease, border-color .25s ease;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card form.login:hover,
body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card form.register:hover {
    border-color: #ded9e1 !important;
    box-shadow: 0 16px 45px rgba(30, 35, 45, 0.08) !important;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card form[hidden] {
    display: none !important;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card form .form-row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 0 20px;
    box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card form input.input-text {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px;
    box-sizing: border-box !important;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card form button.button,
body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card form input.button,
body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card .woocommerce-form-login__submit {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 48px !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
}

/* Woo notices remain visible above the clean auth shell */
body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-notices {
    width: 100%;
    margin: 0 0 18px;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-notices:empty {
    display: none;
}

body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-notices .woocommerce-error,
body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-notices .woocommerce-message,
body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-notices .woocommerce-info {
    margin-bottom: 12px;
}

/* Keep register helper copy neat and RTL */
body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card form.register p {
    max-width: 100%;
    line-height: 1.9;
}

/* We intentionally keep the existing theme icons/input language.
   Only the broken Woo password visibility control remains hidden. */
body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .show-password-input {
    display: none !important;
}

@media (max-width: 767px) {
    body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .woocommerce {
        max-width: 560px !important;
        margin: 30px auto 52px !important;
        padding: 0 16px !important;
    }

    body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-shell {
        max-width: 100%;
    }

    body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-title {
        margin-bottom: 20px;
        font-size: 23px;
    }

    body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-switch {
        margin-bottom: 16px;
        padding: 14px 16px;
    }

    body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card form.login,
    body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card form.register {
        padding: 26px 20px 23px !important;
        border-radius: 15px !important;
    }
}

@media (max-width: 380px) {
    body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .woocommerce {
        padding: 0 12px !important;
    }

    body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card form.login,
    body.woocommerce-account:not(.logged-in).pva-auth-native-mounted .pva-auth-native-card form.register {
        padding: 22px 16px 20px !important;
    }
}
