body.gfrm-auth-page {
    min-height: 100vh;
    margin: 0;
    overflow-x: hidden;
    color: var(--gfrm-ink-1);
    background:
        radial-gradient(circle at 78% 18%, rgba(255, 196, 0, .12), transparent 25%),
        radial-gradient(circle at 16% 88%, rgba(81, 103, 128, .20), transparent 30%),
        linear-gradient(135deg, #05080b 0%, #111820 52%, #263441 100%);
}

body.gfrm-auth-page::before,
body.gfrm-auth-page::after {
    content: "";
    position: fixed;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,.045);
    border-radius: 50%;
}

body.gfrm-auth-page::before {
    width: 640px;
    height: 640px;
    right: -170px;
    top: -190px;
    box-shadow: 0 0 0 72px rgba(255,255,255,.018), 0 0 0 144px rgba(255,255,255,.012);
}

body.gfrm-auth-page::after {
    width: 380px;
    height: 380px;
    left: -210px;
    bottom: -200px;
    box-shadow: 0 0 0 54px rgba(255,196,0,.02);
}

.gfrm-auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: auto 1fr auto;
    justify-items: center;
    min-height: 100vh;
    padding: 34px 24px 28px;
}

.gfrm-auth-brand {
    width: min(1180px, 100%);
}

.gfrm-auth-brand > a {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    color: var(--gfrm-white);
    text-decoration: none;
}

.gfrm-auth-logo {
    display: block;
    width: auto;
    max-width: 260px;
    max-height: 50px;
}

.gfrm-auth-brand__mark {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    color: var(--gfrm-white);
}

.gfrm-auth-brand__mark svg {
    width: 30px;
    height: 30px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.gfrm-auth-brand__word {
    color: var(--gfrm-yellow);
    font-size: 1.8rem;
    font-weight: 950;
    letter-spacing: -.04em;
}

.gfrm-auth-brand__name {
    padding-left: 11px;
    border-left: 1px solid rgba(255,255,255,.28);
    color: var(--gfrm-white);
    font-size: .64rem;
    font-weight: 900;
    line-height: 1.05;
}

.gfrm-auth-card {
    align-self: center;
    width: min(440px, 100%);
    margin: 40px 0;
    padding: 38px 38px 32px;
    border: 1px solid rgba(255,255,255,.7);
    border-radius: 20px;
    background: rgba(255,255,255,.98);
    box-shadow: 0 28px 80px rgba(0,0,0,.34);
}

.gfrm-auth-card__icon {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    margin-bottom: 22px;
    border-radius: 14px;
    background: #fff4c7;
    color: #8b6700;
}

.gfrm-auth-card__icon svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.gfrm-auth-eyebrow {
    display: block;
    margin-bottom: 8px;
    color: #a47500;
    font-size: .68rem;
    font-weight: 950;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.gfrm-auth-card h1 {
    margin: 0;
    color: #101418;
    font-size: clamp(2rem, 6vw, 2.7rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.gfrm-auth-intro {
    margin: 14px 0 25px;
    color: #626a73;
    font-size: .92rem;
    line-height: 1.55;
}

.gfrm-auth-message {
    margin: 0 0 20px;
    padding: 13px 15px;
    border-radius: 10px;
    font-size: .82rem;
    line-height: 1.45;
}

.gfrm-auth-message p {
    margin: 0;
}

.gfrm-auth-message p + p {
    margin-top: 6px;
}

.gfrm-auth-message--error {
    border: 1px solid #f0c7c4;
    background: #fff1f0;
    color: #8a2520;
}

.gfrm-auth-message--success {
    border: 1px solid #bfdfc8;
    background: #effaf2;
    color: #246a37;
}

.gfrm-auth-form {
    display: grid;
    gap: 10px;
}

.gfrm-auth-form > label,
.gfrm-auth-form .gfrm-auth-check {
    color: #303840;
    font-size: .76rem;
    font-weight: 850;
}

.gfrm-auth-form input[type="text"],
.gfrm-auth-form input[type="email"],
.gfrm-auth-form input[type="password"] {
    width: 100%;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d7dce1;
    border-radius: 9px;
    outline: 0;
    background: var(--gfrm-white);
    color: #14191e;
    font: inherit;
    transition: border-color .16s ease, box-shadow .16s ease;
}

.gfrm-auth-form input:focus {
    border-color: #c79400;
    box-shadow: 0 0 0 3px rgba(255,196,0,.18);
}

.gfrm-auth-password {
    position: relative;
}

.gfrm-auth-password input {
    padding-right: 48px !important;
}

.gfrm-auth-password__toggle {
    position: absolute;
    top: 50%;
    right: 8px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--gfrm-text-muted-2);
    cursor: pointer;
}

.gfrm-auth-password__toggle:hover,
.gfrm-auth-password__toggle:focus-visible {
    background: #f1f3f5;
    color: #151a1f;
}

.gfrm-auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    margin: 4px 0 10px;
}

.gfrm-auth-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 650 !important;
}

.gfrm-auth-check input {
    accent-color: #d49f00;
}

.gfrm-auth-options a,
.gfrm-auth-footer a {
    color: #795b00;
    font-size: .75rem;
    font-weight: 800;
    text-decoration: none;
}

.gfrm-auth-options a:hover,
.gfrm-auth-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gfrm-auth-submit {
    min-height: 48px;
    margin-top: 2px;
    padding: 0 20px;
    border: 1px solid var(--gfrm-yellow);
    border-radius: 9px;
    background: var(--gfrm-yellow);
    color: var(--gfrm-ink-1);
    font-size: .82rem;
    font-weight: 950;
    letter-spacing: .025em;
    cursor: pointer;
    transition: transform .16s ease, background-color .16s ease, box-shadow .16s ease;
}

.gfrm-auth-submit:hover,
.gfrm-auth-submit:focus-visible {
    background: #ffd033;
    box-shadow: 0 9px 22px rgba(169,126,0,.22);
    transform: translateY(-1px);
}

.gfrm-auth-footer {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e7eaed;
}

.gfrm-auth-help {
    margin: 0;
    color: rgba(255,255,255,.62);
    font-size: .72rem;
    text-align: center;
}

@media (max-width: 620px) {
    .gfrm-auth-shell {
        padding: 22px 15px 20px;
    }

    .gfrm-auth-brand__word {
        font-size: 1.5rem;
    }

    .gfrm-auth-card {
        margin: 28px 0;
        padding: 30px 22px 25px;
        border-radius: 16px;
    }

    .gfrm-auth-options,
    .gfrm-auth-footer {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }
}


/* 1.9.7 — reCAPTCHA compartit amb Ultimate Member */
.gfrm-auth-recaptcha {
    display: flex;
    align-items: center;
    min-height: 78px;
    margin: 3px 0 4px;
    overflow: visible;
}

.gfrm-auth-recaptcha .gfrm-recaptcha-widget {
    min-height: 78px;
}

.gfrm-auth-recaptcha__protected {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #dde2e6;
    border-radius: 8px;
    background: var(--gfrm-grey-7);
    color: #69727b;
    font-size: .68rem;
    font-weight: 750;
}

.gfrm-auth-recaptcha-error {
    margin: 2px 0 0;
}

.gfrm-auth-submit:disabled,
.gfrm-auth-submit.is-loading {
    cursor: wait;
    opacity: .7;
    transform: none;
}

@media (max-width: 390px) {
    .gfrm-auth-recaptcha {
        width: 100%;
        min-height: 62px;
        overflow: hidden;
    }

    .gfrm-auth-recaptcha .gfrm-recaptcha-widget {
        width: 304px;
        min-height: 62px;
        margin-bottom: -16px;
        transform: scale(.78);
        transform-origin: left top;
    }
}


/* 1.9.9 — Formulari d'accés dins la pàgina Àrea de socis */
.gfrm-member-area--auth {
    display: grid;
    align-items: center;
    min-height: calc(100vh - 82px);
    padding: 132px 0 76px;
    background:
        radial-gradient(circle at 82% 18%, rgba(255,196,0,.10), transparent 24%),
        linear-gradient(135deg, #eef1f3 0%, var(--gfrm-grey-7) 54%, #e6ebef 100%);
}

.gfrm-member-login-shell {
    display: grid;
    place-items: center;
}

.gfrm-member-area--auth .gfrm-auth-card {
    margin: 0;
    border-color: var(--gfrm-grey-4);
    box-shadow: 0 24px 64px rgba(15, 23, 42, .14);
}

.gfrm-auth-recaptcha-admin-warning {
    margin-top: 3px;
    font-size: .74rem;
}

@media (max-width: 620px) {
    .gfrm-member-area--auth {
        padding: 108px 15px 54px;
    }
}


/* 1.10.0 — reCAPTCHA v2 configurat directament des del tema */
.gfrm-auth-card {
    width: min(460px, 100%);
}

.gfrm-auth-recaptcha {
    width: 100%;
    min-height: 82px;
    margin-top: 4px;
}

.gfrm-auth-recaptcha .gfrm-recaptcha-widget {
    width: 304px;
    max-width: 100%;
}

.gfrm-auth-recaptcha iframe {
    max-width: 100%;
}

.gfrm-auth-recaptcha-admin-warning a {
    color: inherit;
    font-weight: 850;
}

@media (max-width: 480px) {
    .gfrm-auth-card {
        padding-inline: 22px;
    }
}

/* 1.10.1 — Accés flotant global */
html.gfrm-login-modal-open,
body.gfrm-login-modal-open {
    overflow: hidden !important;
}

.gfrm-login-modal[hidden],
.gfrm-login-modal__view[hidden] {
    display: none !important;
}

.gfrm-login-modal {
    position: fixed;
    inset: 0;
    z-index: 100200;
    display: grid;
    place-items: center;
    padding: 24px;
}

.gfrm-login-modal__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(5, 10, 14, .76);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    cursor: default;
}

.gfrm-login-modal__dialog {
    position: relative;
    z-index: 1;
    width: min(470px, 100%);
    max-height: min(92vh, 760px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 38px 38px 28px;
    border: 1px solid rgba(255,255,255,.84);
    border-radius: 20px;
    outline: 0;
    background: rgba(255,255,255,.99);
    box-shadow: 0 32px 100px rgba(0,0,0,.42);
    animation: gfrm-login-modal-in .2s ease-out both;
}

@keyframes gfrm-login-modal-in {
    from { opacity: 0; transform: translateY(14px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.gfrm-login-modal__close {
    position: absolute;
    top: 14px;
    right: 14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    padding: 0;
    border: 1px solid var(--gfrm-grey-3);
    border-radius: 50%;
    background: var(--gfrm-white);
    color: #343b42;
    font-size: 1.55rem;
    line-height: 1;
    cursor: pointer;
    transition: background-color .16s ease, border-color .16s ease, transform .16s ease;
}

.gfrm-login-modal__close:hover,
.gfrm-login-modal__close:focus-visible {
    border-color: #cbd1d6;
    background: #f3f5f6;
    transform: rotate(4deg);
}

.gfrm-login-modal__view {
    min-width: 0;
}

.gfrm-login-modal__dialog h2 {
    max-width: calc(100% - 34px);
    margin: 0;
    color: #101418;
    font-size: clamp(2rem, 5vw, 2.55rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.gfrm-login-modal .gfrm-auth-card__icon {
    margin-bottom: 18px;
}

.gfrm-login-modal .gfrm-auth-intro {
    margin-bottom: 22px;
}

.gfrm-login-modal__message {
    margin-bottom: 16px;
}

.gfrm-auth-text-button,
.gfrm-login-modal__back-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #795b00;
    font: inherit;
    font-size: .75rem;
    font-weight: 800;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.gfrm-auth-text-button:hover,
.gfrm-auth-text-button:focus-visible,
.gfrm-login-modal__back-link:hover,
.gfrm-login-modal__back-link:focus-visible {
    text-decoration: underline;
    text-underline-offset: 3px;
}

.gfrm-login-modal__back-link {
    display: inline-flex;
    margin: 0 0 20px;
}

.gfrm-login-modal__privacy {
    margin: 22px 0 0;
    padding-top: 18px;
    border-top: 1px solid #e7eaed;
    color: #7a828a;
    font-size: .67rem;
    line-height: 1.45;
    text-align: center;
}

.gfrm-login-modal .gfrm-auth-recaptcha {
    justify-content: flex-start;
}

.gfrm-login-modal .gfrm-auth-submit {
    width: 100%;
}

.gfrm-member-area--locked {
    display: grid;
    align-items: center;
    min-height: calc(100vh - 82px);
    padding: 150px 0 90px;
    background:
        radial-gradient(circle at 83% 18%, rgba(255,196,0,.10), transparent 25%),
        linear-gradient(135deg, #eef1f3 0%, var(--gfrm-grey-7) 58%, #e8edf1 100%);
}

.gfrm-member-locked-shell {
    display: grid;
    place-items: center;
}

.gfrm-member-locked-card {
    width: min(620px, 100%);
    padding: 42px;
    border: 1px solid var(--gfrm-grey-4);
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 22px 58px rgba(15,23,42,.11);
    text-align: center;
}

.gfrm-member-locked-card__icon {
    display: grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 18px;
    border-radius: 14px;
    background: #fff4c7;
    color: #8b6700;
}

.gfrm-member-locked-card__icon svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
}

.gfrm-member-locked-card h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 3.3rem);
    line-height: 1;
    letter-spacing: -.045em;
}

.gfrm-member-locked-card p {
    max-width: 480px;
    margin: 18px auto 26px;
    color: #626a73;
    line-height: 1.65;
}

@media (max-width: 620px) {
    .gfrm-login-modal {
        align-items: end;
        padding: 10px;
    }

    .gfrm-login-modal__dialog {
        width: 100%;
        max-height: calc(100vh - 20px);
        padding: 30px 20px 22px;
        border-radius: 18px;
    }

    .gfrm-login-modal__close {
        top: 10px;
        right: 10px;
    }

    .gfrm-login-modal__dialog h2 {
        font-size: 2rem;
    }

    .gfrm-login-modal .gfrm-auth-options {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .gfrm-member-area--locked {
        padding: 112px 15px 58px;
    }

    .gfrm-member-locked-card {
        padding: 32px 22px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gfrm-login-modal__dialog {
        animation: none;
    }
}
