/**
 * Minha Conta — login / cadastro glass
 */

body.mg-account-auth-page {
    font-family: 'Inter', 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: linear-gradient(145deg, #dcefe2 0%, #eef5f0 35%, #e4f0e8 70%, #d8ebe0 100%) !important;
    min-height: 100vh;
    min-height: 100dvh;
}

body.mg-account-auth-page .woocommerce-MyAccount-navigation,
body.mg-account-auth-page .entry-header,
body.mg-account-auth-page .page-header,
body.mg-account-auth-page .woocommerce-breadcrumb {
    display: none !important;
}

body.mg-account-auth-page .site-main,
body.mg-account-auth-page #content,
body.mg-account-auth-page #primary,
body.mg-account-auth-page .woocommerce,
body.mg-account-auth-page .woocommerce-MyAccount-content {
    max-width: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    float: none !important;
}

body.mg-account-auth-page .woocommerce-MyAccount-content > *:not(.mg-account-auth) {
    display: none;
}

.mg-account-auth {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 24px 16px 32px;
    box-sizing: border-box;
}

.mg-account-auth__glass {
    width: 100%;
    max-width: 400px;
    padding: 28px 24px 22px;
    background: rgba(255, 255, 255, 0.52);
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 22px;
    box-shadow:
        0 4px 24px rgba(9, 65, 30, 0.08),
        0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.mg-account-auth__brand {
    text-align: center;
    margin-bottom: 20px;
}

.mg-account-auth__logo-link {
    display: inline-block;
    text-decoration: none;
}

.mg-account-auth__logo {
    display: block;
    height: auto;
    max-width: 130px;
    margin: 0 auto;
}

.mg-account-auth__site-name {
    font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--mg-green-dark, #09411e);
    letter-spacing: -0.02em;
}

.mg-account-auth__tagline {
    margin: 8px 0 0;
    font-size: 0.8125rem;
    color: rgba(9, 65, 30, 0.62);
    line-height: 1.4;
}

.mg-account-auth__tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
    margin-bottom: 18px;
    padding: 4px;
    background: rgba(9, 65, 30, 0.06);
    border-radius: 12px;
}

.mg-account-auth__tab {
    appearance: none;
    border: 0;
    border-radius: 9px;
    padding: 9px 12px;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    color: rgba(9, 65, 30, 0.62);
    background: transparent;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.mg-account-auth__tab.is-active {
    background: rgba(255, 255, 255, 0.88);
    color: var(--mg-green-dark, #09411e);
    box-shadow: 0 2px 8px rgba(9, 65, 30, 0.08);
}

.mg-account-auth__solo-title {
    margin: 0 0 16px;
    font-size: 1rem;
    font-weight: 700;
    text-align: center;
    color: var(--mg-green-dark, #09411e);
}

.mg-account-auth__panel {
    display: none;
}

.mg-account-auth__panel.is-active {
    display: block;
}

.mg-account-auth .woocommerce-form {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.mg-account-auth .form-row {
    margin-bottom: 12px;
}

.mg-account-auth label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(9, 65, 30, 0.78);
}

.mg-account-auth .input-text,
.mg-account-auth input[type="email"],
.mg-account-auth input[type="password"],
.mg-account-auth input[type="text"] {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.4;
    color: #1f2937;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(9, 65, 30, 0.12);
    border-radius: 10px;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.mg-account-auth .input-text:focus {
    outline: none;
    border-color: rgba(97, 206, 112, 0.65);
    box-shadow: 0 0 0 3px rgba(97, 206, 112, 0.16);
    background: #fff;
}

.mg-account-auth__hint {
    margin: 0 0 12px;
    font-size: 0.8125rem;
    color: rgba(9, 65, 30, 0.62);
    line-height: 1.45;
}

.mg-account-auth__actions {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 8px !important;
}

.mg-account-auth .woocommerce-form-login__rememberme {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: rgba(9, 65, 30, 0.7);
    margin: 0;
}

.mg-account-auth__submit,
.mg-account-auth .button,
.mg-account-auth button[type="submit"] {
    width: 100%;
    margin: 0 !important;
    padding: 11px 16px !important;
    font-family: inherit !important;
    font-size: 0.875rem !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
    color: #fff !important;
    background: var(--mg-green-dark, #09411e) !important;
    border: 0 !important;
    border-radius: 10px !important;
    box-shadow: 0 4px 14px rgba(9, 65, 30, 0.2) !important;
    cursor: pointer;
    text-transform: none !important;
    letter-spacing: normal !important;
}

.mg-account-auth__submit:hover,
.mg-account-auth .button:hover {
    background: #0a5020 !important;
}

.mg-account-auth .lost_password {
    margin: 0;
    text-align: center;
    font-size: 0.8125rem;
}

.mg-account-auth .lost_password a {
    color: var(--mg-green-dark, #09411e);
    font-weight: 600;
    text-decoration: none;
}

.mg-account-auth .lost_password a:hover {
    text-decoration: underline;
}

.mg-account-auth__back {
    margin: 18px 0 0;
    padding-top: 14px;
    border-top: 1px solid rgba(9, 65, 30, 0.08);
    text-align: center;
    font-size: 0.8125rem;
}

.mg-account-auth__back a {
    color: rgba(9, 65, 30, 0.55);
    text-decoration: none;
    font-weight: 500;
}

.mg-account-auth__back a:hover {
    color: var(--mg-green-dark, #09411e);
}

/* Social login (Google, Clerk, etc.) */
.mg-account-auth .woocommerce-form-login > p:first-child,
.mg-account-auth [class*="social"],
.mg-account-auth [class*="google"],
.mg-account-auth [class*="clerk"] {
    margin-bottom: 12px;
}

.mg-account-auth .woocommerce-error,
.mg-account-auth .woocommerce-message,
.mg-account-auth .woocommerce-info {
    margin: 0 0 14px;
    padding: 10px 12px;
    font-size: 0.8125rem;
    border-radius: 10px;
    list-style: none;
}

body.mg-account-auth-page .woocommerce-notices-wrapper {
    max-width: 400px;
    margin: 0 auto;
    padding: 16px 16px 0;
}

@media (max-width: 480px) {
    .mg-account-auth__glass {
        padding: 22px 18px 18px;
        border-radius: 18px;
    }

    .mg-account-auth .input-text {
        font-size: 16px;
    }
}
