.auth-top { background: transparent; border-bottom-color: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
@media (max-width: 979.98px) {
    .auth-top { background: linear-gradient(180deg, var(--glass), transparent); }
}
@media (min-width: 980px) {
    .auth-top { left: 52.5%; padding-left: 40px; padding-right: 40px; }
    .auth-top > .bp-brand { display: none; }
}
@media (max-width: 380px) { .auth-cta { padding: 0 12px; font-size: 0.82rem; } }

.auth-logo-mobile { width: 132px !important; height: auto !important; }

.auth-erro { display: none; margin-bottom: 16px; }
.auth-erro i { margin-right: 6px; }

.auth-error-message { display: none; margin-bottom: 16px; }
.auth-error-message.show { display: flex; animation: bp-rise 0.3s var(--ease); }

.auth-sec {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 24px 0 14px;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-2);
}
.auth-sec::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.auth-sec span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    color: var(--gold-text);
    letter-spacing: 0;
}
form > .auth-sec:first-child { margin-top: 4px; }
.auth-duo { display: grid; grid-template-columns: 1fr; gap: 0 12px; }
@media (min-width: 440px) { .auth-duo { grid-template-columns: 1fr 1fr; } }

.success-overlay { opacity: 0; visibility: hidden; pointer-events: none; }
.success-overlay .bp-dialog { transform: scale(0.94); }
.success-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }
.success-overlay.active .bp-dialog { transform: none; }
.success-card { text-align: center; }
.success-icon {
    width: 72px;
    height: 72px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    font-size: 1.9rem;
    color: #fff;
    background: linear-gradient(135deg, #34D399, #0F9F6E);
    box-shadow: 0 16px 30px -14px rgba(15, 159, 110, 0.9);
}

.auth-forgot { display: flex; justify-content: flex-end; margin: -4px 0 18px; font-size: 0.86rem; }

.auth-gm .gmauth { border-radius: 16px; margin-bottom: 18px; }

.auth-extras { display: flex; flex-direction: column; gap: 12px; }

.auth-dl {
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 12px 16px 12px 12px;
    border-radius: 18px;
    text-align: left;
    color: var(--ink);
    background: var(--overlay-1);
    border: 1px solid var(--line-2);
    transition: transform 0.25s var(--ease), border-color 0.25s, background 0.25s;
}
.auth-dl:hover { transform: translateY(-2px); border-color: var(--gold-line); background: var(--gold-soft); }
.auth-dl__icon {
    width: 44px;
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    font-size: 1.25rem;
    color: var(--gold-ink);
    background: var(--foil);
}
.auth-dl--install { border-color: var(--gold-line); background: linear-gradient(120deg, var(--gold-soft), rgba(45, 212, 191, 0.07)); }
.auth-dl--install .auth-dl__icon { color: #04201C; background: linear-gradient(135deg, #5EEAD4, #A3E635); }
.auth-dl__text { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.auth-dl__text small { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); }
.auth-dl__text strong { font-family: var(--font-display); font-size: 1rem; font-weight: 700; }
.auth-dl__go { color: var(--gold-text); }

.auth-social { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.auth-social a {
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    color: var(--ink-2);
    background: var(--overlay-1);
    border: 1px solid var(--line);
    transition: color 0.2s, border-color 0.2s, transform 0.2s;
}
.auth-social a:hover { color: var(--gold-text); border-color: var(--gold-line); transform: translateY(-2px); }

.auth-footer { margin-top: 10px; text-align: center; font-size: 0.78rem; color: var(--ink-3); }
.auth-footer nav { display: flex; justify-content: center; gap: 10px; margin-bottom: 6px; }
.auth-footer a { color: var(--ink-2); font-weight: 600; }
.auth-footer a:hover { color: var(--ink); }

.auth-balls { display: none; }
@media (min-width: 980px) {
    .auth-balls {
        position: absolute;
        inset: 0;
        display: block;
        pointer-events: none;
    }
    .auth-balls span {
        position: absolute;
        width: 64px;
        height: 64px;
        border-radius: 22px;
        background: var(--bg-surface-2);
        border: 1px solid var(--line-2);
        box-shadow: var(--shadow-md), inset 0 -3px 0 var(--gold-line);
        animation: bp-float 7s ease-in-out infinite;
    }
    .auth-balls span::after {
        content: '';
        position: absolute;
        inset: 22px;
        border-radius: 50%;
        background: var(--foil);
        opacity: 0.85;
    }
    .auth-balls span:nth-child(1) { top: 14%; left: 14%; animation-delay: -1s; }
    .auth-balls span:nth-child(2) { top: 22%; right: 12%; width: 48px; height: 48px; border-radius: 16px; animation-delay: -3s; }
    .auth-balls span:nth-child(2)::after { inset: 16px; background: linear-gradient(135deg, #5EEAD4, #A3E635); }
    .auth-balls span:nth-child(3) { bottom: 16%; left: 18%; width: 52px; height: 52px; border-radius: 18px; animation-delay: -5s; }
    .auth-balls span:nth-child(3)::after { inset: 18px; background: linear-gradient(135deg, #FDBA74, #FB923C); }
    .auth-balls span:nth-child(4) { bottom: 22%; right: 16%; animation-delay: -2s; }
}

.auth-trilha { display: flex; gap: 6px; margin-bottom: 2px; }
.auth-trilha li {
    flex: 1;
    position: relative;
    padding-top: 10px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--ink-3);
    text-align: center;
}
.auth-trilha li::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--line-2); }
.auth-trilha li.is-done { color: var(--ink-2); }
.auth-trilha li.is-done::before { background: var(--ok); }
.auth-trilha li.is-on { color: var(--gold-text); }
.auth-trilha li.is-on::before { background: var(--foil); }

.auth-icone {
    width: 54px;
    height: 54px;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    font-size: 1.3rem;
    color: var(--gold-ink);
    background: var(--foil);
    box-shadow: 0 14px 26px -14px rgba(247, 197, 62, 0.85);
}
.auth-info { margin-bottom: 18px; }
.auth-info p { margin: 0; }

.bp-field .error-message { display: none; font-size: 0.8rem; font-weight: 600; color: var(--bad); }
.bp-field .error-message.show { display: block; animation: bp-rise 0.25s var(--ease); }
.error-message.bp-alert { display: none; margin-bottom: 16px; }
.error-message.bp-alert.show { display: block; }
.api-error-box { display: none; margin-bottom: 16px; }
.api-error-box.show { display: block; }
.success-message { display: none; margin-bottom: 16px; }
.success-message.show { display: flex; }
.bp-input.error { border-color: var(--bad); box-shadow: 0 0 0 3px var(--bad-soft); }
.bp-input.success { border-color: var(--ok); }
.auth-codigo { font-family: var(--font-mono); font-size: 1.15rem; font-weight: 700; letter-spacing: 0.2em; }

.radio-group { display: grid; gap: 10px; margin-bottom: 18px; }
.radio-option {
    position: relative;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
    border-radius: 18px;
    background: var(--bg-input);
    border: 1.5px solid var(--line-2);
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}
.radio-option:hover { border-color: var(--line-3); }
.radio-option input { position: absolute; opacity: 0; pointer-events: none; }
.radio-custom {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    border-radius: 50%;
    border: 2px solid var(--line-3);
    transition: all 0.2s var(--ease);
}
.radio-option input:checked + .radio-custom { border: 7px solid var(--gold); }
.radio-option:has(input:checked) { border-color: var(--gold); background: var(--gold-soft); }
.radio-option:has(input:disabled) { opacity: 0.45; cursor: not-allowed; }
.radio-option input:focus-visible + .radio-custom { box-shadow: var(--ring); }
.radio-content { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.radio-label { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; color: var(--ink); }
.radio-label i { color: var(--gold-text); }
.radio-value { font-family: var(--font-mono); font-size: 0.85rem; color: var(--ink-2); word-break: break-all; }

.password-strength { margin-top: 2px; }
.strength-bar { height: 6px; border-radius: 6px; background: var(--overlay-3); overflow: hidden; }
.strength-fill { width: 0; height: 100%; border-radius: 6px; transition: width 0.3s var(--ease), background 0.3s; }
.strength-fill.weak { width: 33%; background: var(--bad); }
.strength-fill.medium { width: 66%; background: var(--warn); }
.strength-fill.strong { width: 100%; background: var(--ok); }
.strength-label { margin-top: 6px; font-size: 0.76rem; font-weight: 600; color: var(--ink-3); }
