/* ── Página de login ────────────────────────────────────────────────────────
   Standalone (sem header/footer do tema).
   Escopo: body.pfrq-page-login
   ────────────────────────────────────────────────────────────────────────── */

body.pfrq-page-login {
    --login-accent:     #F9423A;
    --login-accent-hov: #D93530;
    --login-accent-lt:  rgba(249, 66, 58, .12);
    margin: 0;
    padding: 0;
    background: #ECEAE7;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: stretch;
}

body.pfrq-page-login header,
body.pfrq-page-login footer,
body.pfrq-page-login .wp-block-template-part {
    display: none !important;
}

.pfrq-login-wrap {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
}

.pfrq-login-photo-wrap {
    position: absolute;
    top: -10px; left: -10px; bottom: -10px;
    z-index: 0;
    pointer-events: none;
    will-change: transform;
}
.pfrq-login-photo-wrap img {
    display: block;
    height: calc(100% + 20px);
    width: auto;
}

.pfrq-login-page-fade {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(to right,
        transparent 0%,
        transparent 46%,
        rgba(236, 234, 231, .35) 54%,
        rgba(236, 234, 231, .72) 64%,
        rgba(236, 234, 231, .92) 74%,
        rgba(236, 234, 231, .98) 84%
    );
    pointer-events: none;
}

.pfrq-login-spacer {
    flex: 3;
    min-width: 0;
}

.pfrq-login-form-outer {
    position: relative;
    z-index: 2;
    flex: 2;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    background: linear-gradient(to right,
        transparent 0%,
        rgba(255, 255, 255, .06) 22%,
        rgba(255, 255, 255, .38) 42%,
        rgba(255, 255, 255, .82) 60%,
        #fff 76%
    );
}

.pfrq-login-form-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 44px 24px;
}

.pfrq-login-form-inner {
    width: 100%;
    max-width: 290px;
}

.pfrq-login-heading {
    font-size: 1.55rem;
    font-weight: 700;
    color: #18181B;
    letter-spacing: -.025em;
    margin-bottom: 6px;
}

.pfrq-login-subheading {
    font-size: .75rem;
    color: #A1A1AA;
    margin-bottom: 22px;
}

.pfrq-login-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    border-radius: 6px;
    padding: 9px 12px;
    font-size: .8rem;
    margin-bottom: 14px;
}
.pfrq-login-notice svg { flex-shrink: 0; }
.pfrq-login-notice--error,
.pfrq-login-notice:not([class*='--']) {
    background: #FEF2F2;
    border-left: 3px solid #DC2626;
    color: #7F1D1D;
}
.pfrq-login-notice--error svg,
.pfrq-login-notice:not([class*='--']) svg { stroke: #DC2626; }
.pfrq-login-notice--success {
    background: #F0FDF4;
    border-left: 3px solid #16A34A;
    color: #14532D;
}
.pfrq-login-notice--success svg { stroke: #16A34A; }

.pfrq-login-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 11px;
}
.pfrq-login-field label {
    font-size: .72rem;
    font-weight: 600;
    color: #52525B;
    letter-spacing: .01em;
}
.pfrq-login-field input {
    box-sizing: border-box;
    padding: 9px 11px;
    border: 1px solid #E4E4E7;
    border-radius: 6px;
    font-size: .85rem;
    font-family: inherit;
    color: #18181B;
    background: #fff;
    outline: none;
    transition: border-color .15s, box-shadow .15s;
    width: 100%;
}
.pfrq-login-field input:focus {
    border-color: var(--login-accent);
    box-shadow: 0 0 0 3px var(--login-accent-lt);
}

.pfrq-login-btn {
    width: 100%;
    padding: 10px;
    background: var(--login-accent);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: .85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 4px;
    transition: background .15s;
}
.pfrq-login-btn:hover { background: var(--login-accent-hov); }

.pfrq-login-forgot {
    display: block;
    text-align: center;
    margin-top: 14px;
    font-size: .72rem;
    color: #A1A1AA;
    text-decoration: none;
    transition: color .15s;
}
.pfrq-login-forgot:hover { color: var(--login-accent); }

.pfrq-login-legal {
    margin-top: auto;
    flex-shrink: 0;
    padding: 10px 28px 14px;
    border-top: 1px solid rgba(240, 240, 238, .8);
    font-size: .6rem;
    color: #B0B0B0;
    line-height: 1.45;
}
.pfrq-login-legal strong {
    color: #999;
    font-weight: 600;
}
.pfrq-login-legal-links {
    margin-top: 5px;
    display: flex;
    gap: 14px;
}
.pfrq-login-legal a {
    color: #B0B0B0;
    text-decoration: underline;
    text-decoration-color: rgba(0, 0, 0, .15);
    transition: color .15s;
}
.pfrq-login-legal a:hover { color: var(--login-accent); }

.pfrq-login-mobile-brand { display: none; }

@media (max-width: 640px) {
    .pfrq-login-photo-wrap,
    .pfrq-login-page-fade,
    .pfrq-login-spacer { display: none; }

    .pfrq-login-form-outer {
        flex: 1;
        background: #fff;
    }

    .pfrq-login-form-wrap {
        padding: 40px 24px 24px;
    }

    .pfrq-login-form-inner {
        max-width: 100%;
    }

    .pfrq-login-mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        margin-bottom: 28px;
    }

    .pfrq-login-mobile-mark {
        width: 36px;
        height: 36px;
        object-fit: contain;
        display: block;
        flex-shrink: 0;
    }

    .pfrq-login-mobile-brand-name {
        font-size: 1rem;
        font-weight: 800;
        color: #18181B;
        line-height: 1.1;
    }

    .pfrq-login-mobile-brand-sub {
        font-size: .75rem;
        color: var(--login-accent);
        font-weight: 600;
        letter-spacing: .04em;
    }

    /* iOS não dá zoom em inputs com font-size >= 16px */
    .pfrq-login-field input { font-size: 16px; }
}
