:root {
    --pfl-primary: #0b5a7a;
    --pfl-secondary: #12344a;
    --pfl-accent: #e31b23;
    --pfl-background: #03080c;
    --pfl-surface: #0b151c;
    --pfl-success: #27c281;
    --pfl-logo: none;
    --pfl-background-image: none;
    --pfl-text: #f6fbff;
    --pfl-muted: #91a7b6;
    --pfl-border: rgba(151, 192, 215, .17);
    --pfl-shadow: 0 28px 90px rgba(0, 0, 0, .45);
}

html,
body.pfl-login-page {
    margin: 0 !important;
    min-height: 100%;
    background: var(--pfl-background) !important;
    color: var(--pfl-text) !important;
    overflow-x: hidden;
}

body.pfl-login-page #wpadminbar,
body.pfl-login-page .site-header,
body.pfl-login-page .site-footer,
body.pfl-login-page .pfi-operations-strip,
body.pfl-login-page .pfi-mobile-nav,
body.pfl-login-page .pfi-theme-toggle,
body.pfl-login-page .pfi-scroll-top {
    display: none !important;
}

.pfl-root,
.pfl-root * {
    box-sizing: border-box;
}

.pfl-root {
    min-height: 100vh;
    min-height: 100svh;
    position: relative;
    isolation: isolate;
    overflow-x: hidden;
    overflow-y: auto;
    color: var(--pfl-text);
    background: var(--pfl-background);
    background:
        radial-gradient(circle at 14% 20%, color-mix(in srgb, var(--pfl-primary) 34%, transparent), transparent 28%),
        radial-gradient(circle at 92% 8%, color-mix(in srgb, var(--pfl-accent) 17%, transparent), transparent 24%),
        linear-gradient(135deg, #02070a 0%, var(--pfl-background) 48%, #06121a 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.pfl-root::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -3;
    background-image: var(--pfl-background-image);
    background-size: cover;
    background-position: center;
    opacity: .11;
    filter: grayscale(1) contrast(1.1);
}

.pfl-root::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    background:
        linear-gradient(rgba(65, 129, 164, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(65, 129, 164, .045) 1px, transparent 1px);
    background-size: 64px 64px;
    mask-image: linear-gradient(to bottom, #000 0%, transparent 90%);
}

.pfl-noise {
    position: fixed;
    inset: 0;
    z-index: -1;
    opacity: .11;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 220 220' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.24'/%3E%3C/svg%3E");
}

.pfl-statusbar {
    min-height: 46px;
    padding: 9px clamp(18px, 3vw, 52px);
    display: grid;
    grid-template-columns: auto minmax(280px, 1fr) auto;
    align-items: center;
    gap: 24px;
    border-bottom: 1px solid var(--pfl-border);
    background: rgba(2, 9, 13, .84);
    backdrop-filter: blur(18px);
    font-size: 12px;
    color: #bacbd5;
}

.pfl-statusbar__state,
.pfl-statusbar__safety {
    display: flex;
    align-items: center;
    gap: 9px;
}

.pfl-statusbar__state strong {
    font-size: 11px;
    letter-spacing: .08em;
    color: #fff;
}

.pfl-status-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--pfl-success);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--pfl-success) 14%, transparent), 0 0 18px var(--pfl-success);
}

.pfl-status-dot.is-offline {
    background: var(--pfl-accent);
    box-shadow: 0 0 0 5px color-mix(in srgb, var(--pfl-accent) 14%, transparent), 0 0 18px var(--pfl-accent);
}

.pfl-statusbar__safety {
    justify-self: center;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.pfl-statusbar__safety span {
    padding: 3px 10px;
    border: 1px solid color-mix(in srgb, var(--pfl-accent) 58%, transparent);
    border-radius: 999px;
    color: #fff;
    background: color-mix(in srgb, var(--pfl-accent) 26%, transparent);
    font-weight: 800;
    letter-spacing: .06em;
}

.pfl-stage {
    min-height: calc(100vh - 46px);
    min-height: calc(100svh - 46px);
    display: grid;
    grid-template-columns: minmax(420px, 1.12fr) minmax(480px, .88fr);
}

.pfl-root--no-status .pfl-stage {
    min-height: 100vh;
    min-height: 100svh;
}

.pfl-brand-panel,
.pfl-access-panel {
    position: relative;
    min-width: 0;
}

.pfl-brand-panel {
    padding: clamp(46px, 6vw, 92px) clamp(38px, 6vw, 96px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 44px;
    overflow: hidden;
    border-right: 1px solid var(--pfl-border);
    background: #071923;
    background:
        linear-gradient(145deg, rgba(9, 42, 57, .78), rgba(4, 13, 19, .84)),
        radial-gradient(circle at 0 100%, color-mix(in srgb, var(--pfl-primary) 40%, transparent), transparent 44%);
}

.pfl-brand-panel__grid {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 54%, rgba(255, 255, 255, .035) 54% 54.2%, transparent 54.2%),
        linear-gradient(25deg, transparent 0 64%, rgba(255, 255, 255, .025) 64% 64.2%, transparent 64.2%);
}

.pfl-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
    z-index: 1;
}

.pfl-brand img {
    width: 84px;
    height: 84px;
    object-fit: contain;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 18px 44px rgba(0, 0, 0, .26);
}

.pfl-brand div {
    display: grid;
    gap: 5px;
}

.pfl-brand span,
.pfl-kicker {
    color: #70d4fb;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .13em;
}

.pfl-brand strong {
    font-size: clamp(22px, 2vw, 31px);
    line-height: 1;
    letter-spacing: -.03em;
}

.pfl-brand-copy {
    position: relative;
    z-index: 1;
    max-width: 790px;
}

.pfl-brand-copy h1 {
    margin: 13px 0 20px;
    max-width: 800px;
    color: #fff;
    font-size: clamp(42px, 5.2vw, 82px);
    line-height: .98;
    letter-spacing: -.055em;
    text-wrap: balance;
}

.pfl-brand-copy p {
    margin: 0;
    max-width: 700px;
    color: #adc0cc;
    font-size: clamp(16px, 1.45vw, 21px);
    line-height: 1.65;
}

.pfl-capabilities {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    max-width: 720px;
}

.pfl-capabilities span {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 16px;
    border: 1px solid rgba(154, 203, 228, .13);
    border-radius: 14px;
    background: rgba(4, 13, 19, .34);
    color: #c8d7df;
    font-size: 13px;
    backdrop-filter: blur(10px);
}

.pfl-capabilities i {
    color: #6ad4ff;
    font-size: 10px;
    font-style: normal;
    font-weight: 900;
    letter-spacing: .08em;
}

.pfl-industrial-mark {
    position: absolute;
    right: -60px;
    bottom: -90px;
    width: 360px;
    height: 360px;
    opacity: .16;
    pointer-events: none;
}

.pfl-gear {
    position: absolute;
    border: 18px dashed #63caef;
    border-radius: 50%;
    animation: pfl-spin 28s linear infinite;
}

.pfl-gear::after {
    content: "";
    position: absolute;
    inset: 29%;
    border: 9px solid #63caef;
    border-radius: 50%;
}

.pfl-gear--one { width: 220px; height: 220px; right: 26px; bottom: 22px; }
.pfl-gear--two { width: 120px; height: 120px; left: 20px; top: 24px; animation-direction: reverse; }

.pfl-sparks {
    position: absolute;
    left: 78px;
    bottom: 38px;
    width: 110px;
    height: 3px;
    background: var(--pfl-accent);
    box-shadow: 24px -20px 0 -1px #ff9d26, 58px -46px 0 -1px var(--pfl-accent), 82px -72px 0 -1px #ffca3a;
    transform: rotate(-32deg);
}

.pfl-access-panel {
    padding: clamp(34px, 5vw, 76px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 24px;
}

.pfl-access-card {
    width: min(100%, 620px);
    padding: clamp(28px, 4vw, 48px);
    border: 1px solid rgba(157, 207, 232, .18);
    border-radius: 28px;
    background: linear-gradient(150deg, rgba(16, 32, 42, .96), rgba(6, 15, 21, .96));
    box-shadow: var(--pfl-shadow);
    backdrop-filter: blur(22px);
}

.pfl-access-card::before {
    content: "";
    display: block;
    height: 3px;
    margin: calc(clamp(28px, 4vw, 48px) * -1) calc(clamp(28px, 4vw, 48px) * -1) 34px;
    border-radius: 28px 28px 0 0;
    background: linear-gradient(90deg, var(--pfl-accent), #ff7b22 28%, var(--pfl-primary) 70%, #5cd6ff);
}

.pfl-access-card__header h2 {
    margin: 10px 0 11px;
    color: #fff;
    font-size: clamp(27px, 3vw, 38px);
    line-height: 1.08;
    letter-spacing: -.035em;
}

.pfl-access-card__header p {
    margin: 0 0 30px;
    color: var(--pfl-muted);
    font-size: 15px;
    line-height: 1.6;
}

.pfl-form {
    display: grid;
    gap: 22px;
}

.pfl-field {
    display: grid;
    gap: 9px;
    color: #dce8ee;
    font-size: 13px;
    font-weight: 750;
}

.pfl-input-wrap {
    min-height: 60px;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr) auto;
    align-items: center;
    gap: 13px;
    padding: 0 16px;
    border: 1px solid rgba(156, 202, 226, .19);
    border-radius: 15px;
    background: rgba(1, 8, 12, .56);
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.pfl-input-wrap:focus-within {
    border-color: #47c8f7;
    background: rgba(3, 14, 20, .86);
    box-shadow: 0 0 0 4px rgba(71, 200, 247, .12);
}

.pfl-input-wrap > svg,
.pfl-password-toggle svg,
.pfl-submit svg,
.pfl-security-note svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.pfl-input-wrap > svg { color: #6db2d1; }

.pfl-input-wrap input {
    width: 100%;
    min-width: 0;
    height: 56px;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font: inherit !important;
    font-size: 16px !important;
}

.pfl-input-wrap input:-webkit-autofill,
.pfl-input-wrap input:-webkit-autofill:hover,
.pfl-input-wrap input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px #07131a inset !important;
    transition: background-color 9999s ease-out;
}

.pfl-password-toggle {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    margin: 0 -6px 0 0;
    padding: 0;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: #8eaab9;
    cursor: pointer;
}

.pfl-password-toggle:hover,
.pfl-password-toggle:focus-visible,
.pfl-password-toggle.is-visible {
    color: #fff;
    background: rgba(255, 255, 255, .07);
    outline: none;
}

.pfl-form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    color: #a9bdc9;
    font-size: 13px;
}

.pfl-form-options a,
.pfl-registration a,
.pfl-access-footer a,
.pfl-secondary-action {
    color: #5fd2ff;
    text-decoration: none;
}

.pfl-form-options a:hover,
.pfl-registration a:hover,
.pfl-access-footer a:hover,
.pfl-secondary-action:hover {
    color: #fff;
    text-decoration: underline;
}

.pfl-check {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    cursor: pointer;
}

.pfl-check input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.pfl-check span {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(154, 202, 226, .35);
    border-radius: 5px;
    background: rgba(0, 0, 0, .22);
}

.pfl-check input:checked + span {
    border-color: #50cdfb;
    background: #0b7da9;
    box-shadow: inset 0 0 0 4px #0b7da9;
}

.pfl-check input:checked + span::after {
    content: "";
    width: 8px;
    height: 4px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg) translateY(-1px);
}

.pfl-submit {
    width: 100%;
    min-height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 4px 0 0;
    padding: 14px 20px;
    border: 1px solid rgba(118, 218, 255, .35);
    border-radius: 15px;
    background: linear-gradient(135deg, #0d84b1, var(--pfl-primary));
    box-shadow: 0 14px 34px color-mix(in srgb, var(--pfl-primary) 30%, transparent);
    color: #fff !important;
    font-size: 15px;
    font-weight: 850;
    letter-spacing: .01em;
    text-decoration: none !important;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.pfl-submit:hover,
.pfl-submit:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.12);
    box-shadow: 0 18px 44px color-mix(in srgb, var(--pfl-primary) 38%, transparent);
    outline: none;
}

.pfl-submit:disabled,
.pfl-submit.is-loading {
    cursor: wait;
    opacity: .72;
    transform: none;
}

.pfl-submit svg { width: 19px; height: 19px; }

.pfl-registration {
    margin: 24px 0 0;
    padding: 18px 0 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    border-top: 1px solid var(--pfl-border);
    color: #8fa4b1;
    font-size: 13px;
}

.pfl-security-note {
    margin: 24px 0 0;
    padding: 15px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
    border: 1px solid rgba(84, 193, 235, .15);
    border-radius: 14px;
    background: rgba(7, 27, 37, .55);
    color: #67c9ed;
}

.pfl-security-note p {
    margin: 0;
    display: grid;
    gap: 3px;
}

.pfl-security-note strong { color: #d9f4ff; font-size: 12px; }
.pfl-security-note span { color: #809aa9; font-size: 11px; line-height: 1.45; }

.pfl-alert {
    margin: 0 0 24px;
    padding: 14px 15px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: start;
    gap: 11px;
    border-radius: 13px;
    font-size: 13px;
    line-height: 1.55;
}

.pfl-alert > span {
    width: 26px;
    height: 26px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    font-weight: 900;
}

.pfl-alert p { margin: 2px 0 0; }
.pfl-alert--error { border: 1px solid rgba(245, 77, 77, .28); background: rgba(111, 21, 26, .24); color: #ffc3c3; }
.pfl-alert--error > span { background: rgba(227, 27, 35, .26); color: #ff8b8f; }
.pfl-alert--warning { border: 1px solid rgba(255, 180, 52, .25); background: rgba(105, 66, 9, .22); color: #ffe0a7; }
.pfl-alert--warning > span { background: rgba(255, 170, 26, .21); color: #ffc15b; }
.pfl-alert--success { border: 1px solid rgba(39, 194, 129, .27); background: rgba(15, 91, 62, .24); color: #b9f2d7; }
.pfl-alert--success > span { background: rgba(39, 194, 129, .18); color: #7ee0b1; }

.pfl-access-footer {
    width: min(100%, 620px);
    display: grid;
    gap: 7px;
    text-align: center;
    color: #647d8b;
    font-size: 11px;
    line-height: 1.45;
}

.pfl-user-card {
    margin: 8px 0 26px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 17px;
    border: 1px solid var(--pfl-border);
    border-radius: 17px;
    background: rgba(0, 0, 0, .18);
}

.pfl-user-card__avatar { width: 72px !important; height: 72px !important; border-radius: 18px !important; }
.pfl-user-card > div { display: grid; gap: 4px; }
.pfl-user-card strong { color: #fff; font-size: 18px; }
.pfl-user-card span { color: #93aab7; font-size: 13px; }
.pfl-approval { width: fit-content; margin-top: 4px; padding: 4px 8px; border-radius: 999px; color: #9ae7c3; background: rgba(39, 194, 129, .12); font-size: 10px; text-transform: uppercase; letter-spacing: .06em; }
.pfl-approval--pending { color: #ffd585; background: rgba(255, 171, 44, .12); }
.pfl-approval--rejected { color: #ff969a; background: rgba(227, 27, 35, .12); }
.pfl-session-actions { display: grid; gap: 14px; text-align: center; }

.pfl-honeypot {
    position: absolute !important;
    left: -10000px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
}

@keyframes pfl-spin { to { transform: rotate(360deg); } }

@media (max-width: 1100px) {
    .pfl-stage { grid-template-columns: minmax(360px, .88fr) minmax(440px, 1.12fr); }
    .pfl-brand-panel { padding: 44px; }
    .pfl-brand-copy h1 { font-size: clamp(38px, 5vw, 58px); }
    .pfl-capabilities { grid-template-columns: 1fr; }
}

@media (max-width: 820px) {
    .pfl-statusbar { grid-template-columns: 1fr auto; padding: 10px 18px; }
    .pfl-statusbar__safety { grid-column: 1 / -1; grid-row: 2; justify-self: start; max-width: 100%; }
    .pfl-stage { min-height: auto; grid-template-columns: 1fr; }
    .pfl-brand-panel { min-height: auto; padding: 34px 24px 40px; border-right: 0; border-bottom: 1px solid var(--pfl-border); gap: 28px; }
    .pfl-brand-copy h1 { font-size: clamp(36px, 10vw, 54px); }
    .pfl-brand-copy p { font-size: 15px; }
    .pfl-capabilities { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pfl-industrial-mark { opacity: .09; }
    .pfl-access-panel { padding: 34px 20px 48px; }
}

@media (max-width: 560px) {
    .pfl-statusbar { gap: 10px; }
    .pfl-statusbar__state strong { display: none; }
    .pfl-statusbar__safety { font-size: 10px; }
    .pfl-brand img { width: 64px; height: 64px; border-radius: 17px; }
    .pfl-brand strong { font-size: 20px; }
    .pfl-brand span { font-size: 9px; }
    .pfl-capabilities { grid-template-columns: 1fr; }
    .pfl-capabilities span:nth-child(n+3) { display: none; }
    .pfl-access-panel { padding-inline: 14px; }
    .pfl-access-card { padding: 25px 19px; border-radius: 21px; }
    .pfl-access-card::before { margin: -25px -19px 27px; border-radius: 21px 21px 0 0; }
    .pfl-access-card__header h2 { font-size: 29px; }
    .pfl-form-options { align-items: flex-start; flex-direction: column; }
    .pfl-input-wrap { min-height: 58px; }
    .pfl-submit { min-height: 58px; }
}

@media (max-height: 900px) and (min-width: 821px) {
    .pfl-brand-panel, .pfl-access-panel { padding-top: 32px; padding-bottom: 32px; }
    .pfl-brand-panel { gap: 25px; }
    .pfl-brand-copy h1 { font-size: 46px; margin-block: 9px 13px; }
    .pfl-brand-copy p { font-size: 14px; }
    .pfl-access-card { padding: 28px 34px; }
    .pfl-access-card::before { margin: -28px -34px 24px; }
    .pfl-access-card__header p { margin-bottom: 20px; }
    .pfl-form { gap: 15px; }
    .pfl-input-wrap { min-height: 52px; }
    .pfl-input-wrap input { height: 50px; }
    .pfl-submit { min-height: 52px; }
    .pfl-security-note { margin-top: 16px; }
}

@media (prefers-reduced-motion: reduce) {
    .pfl-root *, .pfl-root *::before, .pfl-root *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* v2.4.0 — retorno de autenticação sem travamento visual */
.pfl-submit-status{margin:.75rem 0 0;color:#b9ceda;font-size:.88rem;line-height:1.45;text-align:center}.pfl-submit-status:not([hidden]){display:block}.pfl-submit:disabled{cursor:wait;opacity:.82}
