/* Tema de autenticação legado */
.material-symbols-outlined {
    font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
}

.auth-background-overlay {
    background: linear-gradient(to bottom, rgba(19, 19, 19, 0.4) 0%, rgba(19, 19, 19, 0.95) 100%);
}

.auth-primary-button {
    background: linear-gradient(135deg, #d4af37 0%, #c5a028 100%);
}

.auth-primary-button:hover {
    filter: brightness(1.05);
}

.auth-alert {
    width: 100%;
    max-width: 28rem;
    margin: 0 auto 1rem;
    padding: .9rem 1rem;
    border-radius: .75rem;
    font-weight: 700;
    font-size: .875rem;
    line-height: 1.35;
    backdrop-filter: blur(8px);
    box-sizing: border-box;
}

.auth-alert-error {
    background: rgba(147, 0, 10, 0.28);
    border: 1px solid rgba(255, 180, 171, 0.35);
    color: #ffdad6;
}

.auth-alert-success {
    background: rgba(24, 125, 61, 0.24);
    border: 1px solid rgba(116, 255, 164, 0.28);
    color: #d8ffe4;
}

/* Login Roman Mining */
:root {
    --roman-gold: #caa158;
    --roman-gold-dark: #b88d47;
    --roman-beige: #ead6ad;
    --roman-bg: #f4f2ed;
    --roman-border: #e0d8cc;
    --roman-soft-text: #8f8577;
    --roman-dark: #2e2d31;
}

* {
    box-sizing: border-box;
}

html, body.login-roman-page {
    margin: 0;
    min-height: 100vh;
    background: #f4f2ed !important;
    color: #161616;
    font-family: Arial, Helvetica, sans-serif;
}

.login-roman-topbar {
    display: none !important;
    width: 0;
    height: 0;
    background: transparent !important;
}

.login-roman-shell {
    width: 100%;
    max-width: 412px;
    margin: 0 auto;
    padding: 0 10px 36px;
}

.login-roman-header-card {
    background: var(--roman-beige);
    border-radius: 0 0 16px 16px;
    padding: 14px 18px 16px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(38, 34, 27, 0.08);
}

.login-roman-logo-frame {
    width: 58px;
    height: 58px;
    margin: 0 auto 12px;
    border-radius: 10px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.login-roman-logo {
    width: 44px;
    height: 44px;
    object-fit: contain;
    display: block;
}

.login-roman-brand {
    margin: 0;
    font-size: 18px;
    line-height: 1.2;
    letter-spacing: 2px;
    font-weight: 800;
    color: #000;
}

.login-roman-tagline {
    margin: 6px 0 0;
    font-size: 11px;
    line-height: 1.4;
    letter-spacing: 1.1px;
    color: #5c5855;
}

.login-roman-form-card {
    margin-top: 14px;
    background: #fff;
    border: 1px solid var(--roman-border);
    border-radius: 14px;
    padding: 18px 16px 14px;
    box-shadow: 0 2px 10px rgba(39, 33, 21, 0.08);
}

.login-roman-flash {
    max-width: 100%;
    margin-bottom: 14px;
}

.login-roman-card-head {
    text-align: center;
    margin-bottom: 18px;
}

.login-roman-card-head h2 {
    margin: 0;
    color: var(--roman-gold);
    font-size: 24px;
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: 0.8px;
}

.login-roman-card-head p {
    margin: 10px 0 0;
    color: #5e564d;
    font-size: 12px;
    line-height: 1.4;
}

.login-roman-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.login-roman-field {
    position: relative;
    width: 100%;
    min-height: 40px;
    border: 1px solid #eadfd2;
    border-radius: 8px;
    background: #fff;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.login-roman-field:focus-within {
    border-color: var(--roman-gold);
    box-shadow: 0 0 0 3px rgba(202, 161, 88, 0.12);
}

.login-roman-icon-wrap {
    width: 38px;
    min-width: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-left: 4px;
}

.login-roman-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
    opacity: 0.88;
}

.login-roman-prefix {
    font-size: 12px;
    color: var(--roman-gold);
    font-weight: 700;
    margin-right: 8px;
    letter-spacing: 0.2px;
}

.login-roman-field input {
    flex: 1;
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    height: 100%;
    min-height: 40px;
    padding: 0 14px 0 0;
    font-size: 12px;
    color: #202020;
}

.login-roman-field input::placeholder {
    color: #9aa0a8;
}

.login-roman-hidden-option {
    display: none;
}

.login-roman-submit,
.login-roman-signup {
    width: 100%;
    height: 40px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 40px;
    text-align: center;
    text-decoration: none;
    font-weight: 400;
    letter-spacing: 1px;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.login-roman-submit {
    margin-top: 14px;
    border: 0;
    background: var(--roman-gold);
    color: #000;
    box-shadow: 0 2px 8px rgba(202, 161, 88, 0.35);
}

.login-roman-signup {
    border: 1px solid var(--roman-gold);
    background: #fff;
    color: var(--roman-gold);
}

.login-roman-submit:hover,
.login-roman-signup:hover {
    filter: brightness(1.02);
}

.login-roman-submit:active,
.login-roman-signup:active {
    transform: scale(0.99);
}

@media (min-width: 413px) {
    html, body.login-roman-page {
        background: #f4f2ed !important;
    }

    .login-roman-shell {
        min-height: 100vh;
        padding-bottom: 48px;
    }
}


/* Cadastro Roman Mining */
body.register-roman-page .login-roman-shell {
    padding-bottom: 40px;
}

.register-roman-form-card {
    padding-bottom: 16px;
}

.register-roman-card-head {
    margin-bottom: 16px;
}

.register-roman-card-head h2 {
    font-size: 22px;
}

.register-roman-card-head p {
    max-width: 290px;
    margin-left: auto;
    margin-right: auto;
}

.register-roman-form {
    gap: 10px;
}

.register-roman-cpf-field {
    padding-right: 10px;
}

.register-roman-side-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 28px;
    padding: 0 10px;
    margin-right: 2px;
    border-radius: 6px;
    background: #f1f4f5;
    color: #6e6c2f;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 1px;
}

.register-roman-turnstile-wrap {
    padding-top: 6px;
    display: flex;
    justify-content: center;
}

.register-roman-turnstile-wrap .cf-turnstile {
    max-width: 100%;
}

.register-roman-submit {
    margin-top: 12px;
}

.register-roman-signin {
    margin-top: 0;
}

/* Login Briova */
:root {
    --briova-green-1: #74d598;
    --briova-green-2: #4fa89b;
    --briova-green-3: #3e8d8d;
    --briova-text: #2b2f38;
    --briova-muted: #98a1ab;
    --briova-soft: #f3f3f3;
    --briova-card: #ffffff;
    --briova-border: #ececec;
}

html,
body.login-briova-page {
    margin: 0;
    min-height: 100vh;
    background: #eef1f4;
    color: var(--briova-text);
    font-family: Arial, Helvetica, sans-serif;
}

.login-briova-page * {
    box-sizing: border-box;
}

.login-briova-shell {
    position: relative;
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    margin: 0 auto;
    background: linear-gradient(180deg, #edf0f3 0%, #f9f9fb 56%, #ffffff 100%);
    overflow: hidden;
}

.login-briova-hero {
    position: relative;
    min-height: 350px;
    padding: 28px 20px 88px;
    background: linear-gradient(180deg, #8d949d 0%, #c6ced8 100%);
    overflow: hidden;
}

.login-briova-hero::before,
.login-briova-hero::after,
.login-briova-hero-pattern::before,
.login-briova-hero-pattern::after {
    content: "";
    position: absolute;
    border: 2px solid rgba(255, 255, 255, 0.12);
    border-radius: 26px;
    transform: rotate(-22deg);
}

.login-briova-hero::before {
    width: 180px;
    height: 110px;
    left: -28px;
    top: 64px;
}

.login-briova-hero::after {
    width: 220px;
    height: 140px;
    right: -50px;
    top: 30px;
}

.login-briova-hero-pattern::before {
    width: 160px;
    height: 100px;
    left: 48px;
    top: 18px;
}

.login-briova-hero-pattern::after {
    width: 190px;
    height: 120px;
    right: 40px;
    top: 98px;
}

.login-briova-hero-pattern {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.login-briova-lang {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 7px;
    color: #ffffff;
    font-size: 15px;
    line-height: 1;
    margin-bottom: 28px;
}

.login-briova-lang img {
    width: 18px;
    height: 18px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32);
}

.login-briova-hero-main {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 200px;
}

.login-briova-hero-art {
    flex: 0 0 46%;
}

.login-briova-hero-art img {
    width: 100%;
    max-width: 184px;
    display: block;
    filter: drop-shadow(0 12px 18px rgba(75, 99, 109, 0.18));
}

.login-briova-hero-copy {
    flex: 1;
    text-align: right;
    color: #ffffff;
}

.login-briova-hero-copy h1 {
    margin: 0;
    font-size: 38px;
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.login-briova-hero-copy p {
    margin: 14px 0 0;
    font-size: 14px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.62);
}

.login-briova-card {
    position: relative;
    z-index: 3;
    margin-top: -48px;
    min-height: calc(100vh - 302px);
    background: var(--briova-card);
    border-radius: 30px 30px 0 0;
    padding: 28px 24px 110px;
    box-shadow: 0 -12px 30px rgba(150, 160, 170, 0.10);
}

.login-briova-flash {
    max-width: 100%;
    margin-bottom: 18px;
}

.login-briova-card-head {
    text-align: center;
    margin-bottom: 26px;
}

.login-briova-card-head h2 {
    margin: 0;
    font-size: 26px;
    line-height: 1.2;
    font-weight: 800;
    color: #2d2e33;
}

.login-briova-brandmark {
    margin-top: 20px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.login-briova-brandmark-icon {
    position: relative;
    width: 78px;
    height: 78px;
    border-radius: 22px;
    background: linear-gradient(180deg, #e7faf0 0%, #f8fffb 100%);
    box-shadow: 0 10px 22px rgba(103, 181, 145, 0.18);
    overflow: hidden;
}

.login-briova-brandmark-icon::before,
.login-briova-brandmark-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    transform: translateX(-50%) skewX(-18deg);
    border-radius: 12px;
}

.login-briova-brandmark-icon::before {
    top: 11px;
    width: 32px;
    height: 56px;
    background: linear-gradient(180deg, #5ec595 0%, #337f84 100%);
    clip-path: polygon(0 0, 72% 0, 100% 22%, 42% 22%, 72% 42%, 100% 42%, 100% 100%, 0 100%, 0 78%, 58% 78%, 30% 58%, 0 58%);
}

.login-briova-brandmark-icon::after {
    top: 18px;
    width: 18px;
    height: 40px;
    background: rgba(255, 255, 255, 0.88);
    clip-path: polygon(0 0, 100% 0, 100% 26%, 42% 26%, 100% 62%, 100% 100%, 0 100%, 0 74%, 58% 74%, 0 38%);
}

.login-briova-brandmark-icon span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
}

.login-briova-brandmark-name {
    font-size: 16px;
    font-weight: 700;
    color: #1e1f25;
}

.login-briova-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.login-briova-field {
    width: 100%;
    min-height: 62px;
    border-radius: 14px;
    background: var(--briova-soft);
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
    border: 1px solid transparent;
    transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.login-briova-field:focus-within {
    background: #ffffff;
    border-color: rgba(86, 183, 146, 0.35);
    box-shadow: 0 0 0 4px rgba(112, 211, 164, 0.12);
}

.login-briova-field input {
    flex: 1;
    width: 100%;
    min-width: 0;
    height: 60px;
    border: 0;
    outline: none;
    background: transparent;
    color: #2f3238;
    font-size: 16px;
    padding: 0;
}

.login-briova-field input::placeholder {
    color: #a6adb5;
}

.login-briova-field-phone {
    gap: 14px;
}

.login-briova-country {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
    color: #23262b;
}

.login-briova-country img {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    object-fit: cover;
}

.login-briova-country-code {
    font-size: 16px;
    font-weight: 700;
}

.login-briova-country svg {
    width: 16px;
    height: 16px;
    color: #30343a;
    opacity: 0.95;
}

.login-briova-field-icon {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #23262b;
    flex-shrink: 0;
}

.login-briova-field-icon svg,
.login-briova-password-toggle svg {
    width: 100%;
    height: 100%;
}

.login-briova-password-toggle {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 0;
    background: transparent;
    padding: 0;
    color: #b1b7bf;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.login-briova-password-toggle .eye-off {
    display: none;
}

.login-briova-password-toggle.is-visible .eye-open {
    display: none;
}

.login-briova-password-toggle.is-visible .eye-off {
    display: block;
}

.login-briova-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 2px 2px 0;
}

.login-briova-links a,
.login-briova-disabled-link {
    font-size: 16px;
    line-height: 1.3;
}

.login-briova-links a {
    color: #272a30;
    text-decoration: none;
}

.login-briova-disabled-link {
    color: #272a30;
    opacity: 0.9;
    user-select: none;
}

.login-briova-submit {
    margin-top: 8px;
    width: 100%;
    height: 62px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--briova-green-1) 0%, var(--briova-green-2) 58%, #69979c 100%);
    color: #26483d;
    font-size: 18px;
    font-weight: 700;
    box-shadow: 0 14px 28px rgba(91, 181, 147, 0.22);
    cursor: pointer;
}

.login-briova-download {
    width: 100%;
    height: 58px;
    border-radius: 16px;
    border: 2px solid #2f3238;
    background: #ffffff;
    color: #2d3035;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 17px;
    font-weight: 700;
    margin-top: 2px;
    opacity: 1;
}

.login-briova-download[disabled] {
    cursor: default;
}

.login-briova-download svg {
    width: 24px;
    height: 24px;
}

.login-briova-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 18px;
    color: #8f959c;
    font-size: 14px;
}

.login-briova-divider::before,
.login-briova-divider::after {
    content: "";
    height: 1px;
    flex: 1;
    background: #e5e7eb;
}

.login-briova-float-contact {
    position: fixed;
    right: max(12px, calc((100vw - 430px) / 2 + 10px));
    bottom: 110px;
    z-index: 20;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    max-width: 140px;
    padding: 10px 14px;
    border-radius: 18px 0 0 18px;
    background: linear-gradient(90deg, #8adfb2 0%, #4fa89b 100%);
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.15;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 14px 28px rgba(80, 168, 155, 0.28);
}

@media (min-width: 431px) {
    .login-briova-shell {
        border-radius: 28px;
        box-shadow: 0 18px 48px rgba(82, 98, 114, 0.12);
        margin: 16px auto;
        min-height: calc(100vh - 32px);
    }

    .login-briova-card {
        min-height: calc(100vh - 334px);
    }
}


/* Cadastro Briova */
.register-briova-shell {
    background: linear-gradient(180deg, #edf0f3 0%, #f6f7fa 52%, #ffffff 100%);
}

.register-briova-hero {
    min-height: 252px;
    padding: 18px 20px 76px;
}

.register-briova-topbar {
    position: relative;
    z-index: 3;
    display: flex;
    align-items: center;
    min-height: 28px;
}

.register-briova-back,
.register-briova-back:link,
.register-briova-back:visited,
.register-briova-back:hover,
.register-briova-back:active {
    position: relative;
    z-index: 3;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    color: #ffffff !important;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.register-briova-back-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    font-size: 26px;
    line-height: 1;
    font-weight: 700;
    margin-top: -1px;
}

.register-briova-hero-main {
    min-height: 170px;
    align-items: flex-end;
    margin-top: 18px;
}

.register-briova-hero-art {
    flex: 0 0 42%;
}

.register-briova-hero-art img {
    width: 100%;
    max-width: 164px;
    display: block;
}

.register-briova-hero-copy h1 {
    font-size: 34px;
}

.register-briova-hero-copy p {
    margin-top: 10px;
}

.register-briova-card {
    margin-top: -30px;
    min-height: calc(100vh - 222px);
    padding-top: 16px;
    padding-bottom: 36px;
}

.register-briova-form {
    gap: 14px;
}

.register-briova-submit {
    margin-top: 10px;
}

.register-briova-turnstile-wrap {
    display: flex;
    justify-content: center;
    padding-top: 2px;
}

.register-briova-turnstile-wrap .cf-turnstile {
    max-width: 100%;
}

@media (max-width: 380px) {
    .register-briova-hero-main {
        gap: 10px;
    }

    .register-briova-hero-copy h1 {
        font-size: 30px;
    }

    .register-briova-hero-copy p {
        font-size: 13px;
    }
}
