/**
 * Clerk Auth — login centralizado, estilo minimalista.
 */

html.clerk-auth-page-root {
    -webkit-text-size-adjust: 100%;
}

html.clerk-auth-page-root,
html.clerk-auth-page-root body.clerk-auth-page {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100% !important;
    height: 100% !important;
    width: 100% !important;
    overflow-x: hidden;
}

body.clerk-auth-page {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
    background: #f5f5f7 !important;
    color: #1d1d1f;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body.clerk-auth-page #page,
body.clerk-auth-page .site,
body.clerk-auth-page .site-content,
body.clerk-auth-page .site-main,
body.clerk-auth-page #content,
body.clerk-auth-page #primary,
body.clerk-auth-page .elementor,
body.clerk-auth-page .mg-site-header,
body.clerk-auth-page .mg-site-footer,
body.clerk-auth-page .elementor-location-header,
body.clerk-auth-page .elementor-location-footer {
    display: none !important;
}

body.clerk-auth-page .clerk-auth-page__wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    padding: 32px 20px;
    box-sizing: border-box;
}

body.clerk-auth-page .clerk-auth-page__logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 28px;
    line-height: 0;
    text-decoration: none;
}

body.clerk-auth-page .clerk-auth-page__logo img {
    display: block;
    height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
}

body.clerk-auth-page .clerk-auth-page__brand {
    margin-bottom: 28px;
    font-size: 20px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #1d1d1f;
    text-decoration: none;
}

body.clerk-auth-page .clerk-auth-sign-in {
    width: 100%;
    min-height: 0;
}

body.clerk-auth-page .clerk-auth-page__back {
    margin-top: 28px;
    font-size: 14px;
    font-weight: 500;
    color: #86868b;
    text-decoration: none;
    transition: color 0.15s ease;
}

body.clerk-auth-page .clerk-auth-page__back:hover,
body.clerk-auth-page .clerk-auth-page__back:focus {
    color: #1d1d1f;
}

/* Embeds em WooCommerce / Dokan */
.clerk-auth-shell {
    width: 100%;
    max-width: 420px;
    margin: 0 auto 24px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
}

.woocommerce-account .clerk-auth-shell,
.woocommerce-checkout .clerk-auth-shell {
    margin: 24px auto 32px;
}

.clerk-auth-sign-in {
    min-height: 280px;
}

.clerk-auth-user-button {
    display: inline-flex;
    align-items: center;
}

.clerk-auth-sign-in-link {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    border-radius: 999px;
    background: #111827;
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.clerk-auth-sign-in-link:hover,
.clerk-auth-sign-in-link:focus {
    color: #fff;
    opacity: 0.92;
}

.clerk-auth-error {
    margin: 0;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef2f2;
    color: #991b1b;
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
}

body.woocommerce-account.clerk-auth-needs-signin .woocommerce > .woocommerce-notices-wrapper,
body.woocommerce-account.clerk-auth-needs-signin .woocommerce > h2,
body.woocommerce-account.clerk-auth-needs-signin .u-columns {
    display: none !important;
}

body.woocommerce-account.clerk-auth-needs-signin .woocommerce {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 50vh;
    padding: 32px 16px;
}
