
.fg-auth {
		    padding: 72px 24px 96px 24px;
    grid-column: span 2;
    background: var(--wp--preset--color--secondary);
    color: var(--wp--preset--color--muted);
    text-align: center;
    box-sizing: border-box;
}

/* ---------- Header ---------- */
.fg-auth__eyebrow {
    margin: 0 0 1.5rem;
    font-size: 0.75rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--wp--preset--color--accent);
}

.fg-auth__title {
    margin: 0 auto;
    max-width: 14ch;
    font-size: clamp(3rem, 9vw, 5.5rem);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--wp--preset--color--contrast, #1a1a1a);
}

.fg-auth__intro {
    margin: 2rem auto 0;
    max-width: 34rem;
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--wp--preset--color--muted);
}

/* ---------- Form container ---------- */
.fg-auth__body {
    max-width: 440px;
    margin: 6rem auto 0;
    text-align: left;
}

.fg-auth__body .woocommerce-error,
.fg-auth__body .woocommerce-message,
.fg-auth__body .woocommerce-info {
    margin-bottom: 1.5rem;
}

.fg-auth .woocommerce-form {
    margin: 0;
    padding: 0;
    border: 0;
    background: none;
}

/* ---------- Fields ---------- */
.fg-auth .form-row {
    margin: 0 0 1.1rem;
    padding: 0;
    width: 100%;
    float: none;
}

.fg-auth label {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--wp--preset--color--contrast, #1a1a1a);
}

.fg-auth label .required {
    display: none; /* asterisk hidden visually, screen-reader text remains */
}

.fg-auth input.input-text {
    width: 100%;
    height: 3.125rem;
    padding: 0 1rem;
    box-sizing: border-box;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--wp--preset--color--contrast, #1a1a1a);
    background: var(--wp--preset--color--base, #fff);
    border: 1px solid color-mix(in srgb, var(--wp--preset--color--muted) 30%, transparent);
    border-radius: 12px;
    box-shadow: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.fg-auth input.input-text::placeholder {
    color: var(--wp--preset--color--muted);
    opacity: 0.8;
}

.fg-auth input.input-text:focus {
    outline: none;
    border-color: var(--wp--preset--color--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--accent) 18%, transparent);
}

/* ---------- Button ---------- */
.fg-auth__submit {
    margin-top: 1.5rem !important;
}

.fg-auth .button {
    display: block;
    width: 100%;
    height: 3rem;
    padding: 0 1.5rem;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 3rem;
    text-align: center;
    color: #fff;
    background: var(--wp--preset--color--accent);
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    transition: filter 0.15s ease;
}

.fg-auth .button:hover,
.fg-auth .button:focus-visible {
    filter: brightness(0.92);
    color: #fff;
    background: var(--wp--preset--color--accent);
}

/* ---------- Links ---------- */
.fg-auth__link,
.fg-auth__switch {
    margin: 0;
}

.fg-auth__link {
    margin-top: 1rem;
    font-size: 0.9375rem;
    font-weight: 500;
}

.fg-auth__link a,
.fg-auth__switch a {
    color: var(--wp--preset--color--accent);
    text-decoration: none;
}

.fg-auth__link a::after,
.fg-auth__switch a::after {
    content: "\203A"; /* › */
    margin-left: 0.4em;
}

.fg-auth__link a:hover,
.fg-auth__switch a:hover {
    text-decoration: underline;
}

.fg-auth__switch {
    margin-top: 2rem;
    font-size: 0.8125rem;
    color: var(--wp--preset--color--muted);
}

.fg-auth__switch a {
    font-size: 0.9375rem;
    font-weight: 500;
    margin-left: 0.15em;
}

.fg-auth__note {
    margin: 0 0 1rem;
    font-size: 0.875rem;
    color: var(--wp--preset--color--muted);
}

/* ---------- Login <-> Register toggle (no JS) ---------- */
.fg-auth__panel--register {
    display: none;
}

.fg-auth__panel--register:target {
    display: block;
}

.fg-auth__body:has(#register:target) .fg-auth__panel--login {
    display: none;
}

/* ---------- Page cleanup (optional) ---------- */
.woocommerce-account:not(.logged-in) .entry-title,
.woocommerce-account:not(.logged-in) .wp-block-post-title {
    display: none;
}

/* avoid horizontal scrollbar from the 100vw trick */
body.woocommerce-account {
    overflow-x: clip;
}
