/* 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: #caf2ff;
    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: #8ccee3;
    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 #8ccee3;
    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: #8ccee3;
    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 #8ccee3;
    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: #8ccee3;
    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: #8ccee3;
    color: #000;
    box-shadow: 0 2px 8px rgba(202, 161, 88, 0.35);
}

.login-roman-signup {
    border: 1px solid #8ccee3;
    background: #fff;
    color: #8ccee3;
}

.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: 340px;
    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: #5d5959;
    color: #8ccee3;
    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 Reload reference layout */
html, body.login-roman-page {
    background: #f3f3f5 !important;
    color: #111827;
    font-family: Arial, Helvetica, sans-serif;
}

.login-roman-shell {
    max-width: 392px;
    padding: 32px 20px 56px;
}

.login-roman-banner-card {
    background: #edf0f8;
    border-radius: 0;
    padding: 32px 14px;
    box-shadow: none;
    text-align: center;
    margin-top: 80px;
}

.login-roman-banner-image {
    display: block;
    width: 100%;
    max-width: 340px;
    height: auto;
    margin: 0 auto;
}

.login-roman-reference-card {
    margin-top: 18px;
    background: transparent;
    border: 0;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.login-roman-reference-head {
    margin-bottom: 14px;
    text-align: left;
}

.login-roman-reference-head h2 {
    margin: 0;
    font-size: 21px;
    line-height: 1.15;
    font-weight: 800;
    color: #111827;
    letter-spacing: 0;
}

.login-roman-reference-head p {
    margin: 6px 0 0;
    font-size: 13px;
    line-height: 1.4;
    color: #526072;
}

.login-roman-auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 14px;
    align-items: end;
}

.login-roman-auth-tab {
    display: block;
    text-align: center;
    padding: 0 0 7px;
    border-bottom: 2px solid transparent;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    color: rgba(55, 65, 81, 0.75);
}

.login-roman-auth-tab.is-active {
    color: #b21f32;
    border-bottom-color: #b21f32;
}

.login-roman-reference-form {
    gap: 14px;
}

.login-roman-field-wrap {
    display: grid;
    gap: 7px;
}

.login-roman-field-label {
    font-size: 13px;
    line-height: 1.3;
    font-weight: 800;
    color: rgba(17, 24, 39, 0.88);
}

.login-roman-reference-field {
    min-height: 38px;
    border: 1px solid #dedfe4;
    border-radius: 13px;
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(17, 24, 39, 0.04);
}

.login-roman-reference-field:focus-within {
    border-color: #c33a4c;
    box-shadow: 0 0 0 3px rgba(179, 33, 53, 0.10);
}

.login-roman-reference-field input {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
    font-weight: 700;
    color: rgba(17, 24, 39, 0.88);
}

.login-roman-reference-field input::placeholder {
    color: #848b98;
    font-weight: 600;
}

.login-roman-reference-submit {
    margin-top: 8px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid rgba(104, 0, 18, 0.16);
    background: linear-gradient(90deg, #b21f32 0%, #51000d 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 0;
    box-shadow: 0 12px 22px rgba(178, 31, 50, 0.20);
}

.login-roman-inline-signup {
    display: block;
    margin-top: 10px;
    text-align: center;
    text-decoration: none;
    font-size: 13px;
    line-height: 1.45;
    font-weight: 700;
    color: rgba(55, 65, 81, 0.85);
}

.login-roman-inline-signup span {
    color: #b21f32;
}

@media (min-width: 413px) {
    .login-roman-shell {
        padding-top: 40px;
    }
}


/* Cadastro Reload reference layout */
.register-reference-page .login-roman-shell {
    padding-bottom: 48px;
}

.register-reference-card {
    margin-top: 16px;
}

.register-reference-form {
    gap: 13px;
}

.register-reference-invite-wrap {
    gap: 6px;
}

.register-reference-help {
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
    padding-left: 4px;
}

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

.register-reference-signin {
    margin-top: 10px;
}


/* Ajuste fino posição cadastro */
.register-reference-page .login-roman-shell {
    padding-top: 12px;
}

.register-reference-page .login-roman-banner-card {
    margin-top: 36px;
}

@media (min-width: 413px) {
    .register-reference-page .login-roman-shell {
        padding-top: 12px;
    }
}


/* Login MetaboX layout */
:root {
    --app2-bg: #030916;
    --app2-panel: #111827;
    --app2-panel-soft: #131c2d;
    --app2-border: rgba(111, 132, 173, 0.22);
    --app2-text: #edf3ff;
    --app2-muted: #8d99b3;
    --app2-green: #86f000;
    --app2-green-strong: #79ec00;
}

html, body.login-app2-page {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top center, rgba(117, 240, 0, 0.07), transparent 0%),
        linear-gradient(180deg, #000 0%, #000 100%) !important;
    color: var(--app2-text);
    font-family: Inter, Arial, Helvetica, sans-serif;
}

body.login-app2-page {
    display: flex;
    justify-content: center;
}

.login-app2-shell {
    width: 100%;
    max-width: 430px;
    min-height: 100vh;
    padding: 20px 20px 36px;
}

.login-app2-card {
    width: 100%;
    min-height: calc(100vh - 56px);
    display: flex;
    flex-direction: column;
}

.login-app2-brand-wrap {
    padding-top: 42px;
    text-align: center;
}

.login-app2-logo {
    display: block;
    width: min(100%, 168px);
    height: auto;
    margin: 0 auto;
    filter: drop-shadow(0 10px 30px rgba(120, 236, 0, 0.08));
}

.login-app2-subtitle {
    margin: 18px 0 0;
    font-size: 16px;
    line-height: 1.45;
    color: var(--app2-muted);
}

.login-app2-flash {
    max-width: 100%;
    margin: 28px 0 0;
}

.login-app2-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-top: 34px;
}

.login-app2-field-wrap {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.login-app2-label {
    font-size: 14px;
    line-height: 1.3;
    color: #9eabc4;
}

.login-app2-field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 58px;
    border-radius: 14px;
    border: 1px solid var(--app2-border);
    background: linear-gradient(90deg, rgba(20, 28, 44, 0.96) 0%, rgba(24, 33, 52, 0.96) 100%);
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.login-app2-field:focus-within {
    border-color: rgba(134, 240, 0, 0.55);
    box-shadow: 0 0 0 3px rgba(134, 240, 0, 0.10);
}

.login-app2-field input {
    width: 100%;
    border: 0;
    outline: none;
    background: transparent;
    min-height: 58px;
    padding: 0 18px;
    color: var(--app2-text);
    font-size: 15px;
}

.login-app2-field input::placeholder {
    color: #6c7892;
}

.login-app2-field-password input {
    padding-right: 56px;
}

.login-app2-toggle {
    position: absolute;
    right: 14px;
    top: 50%;
    width: 24px;
    height: 24px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #72809c;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.login-app2-toggle svg {
    width: 21px;
    height: 21px;
}

.login-app2-submit {
    width: 100%;
    min-height: 56px;
    margin-top: 2px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(180deg, #ff2d95 0%, #ff4fa3 0%, #ff7a18 100%);
    color: #fff;
    font-size: 15px;
    font-weight: 900;
    letter-spacing: 1.2px;
    box-shadow: 0 0 22px rgba(134, 240, 0, 0.26);
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.login-app2-submit:hover {
    filter: brightness(1.03);
    box-shadow: 0 0 26px rgba(134, 240, 0, 0.30);
}

.login-app2-submit:active {
    transform: scale(0.985);
}

.login-app2-signup {
    margin-top: 6px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.5;
    color: var(--app2-muted);
}

.login-app2-signup span {
    color: var(--app2-green);   
    font-weight: 700;
}  

@media (min-width: 431px) {
    .login-app2-shell {
        padding-top: 0;
        padding-bottom: 48px;
    }

    .login-app2-card {
        min-height: 100vh;
    }
}

/* Cadastro MetaboX layout */
body.register-app2-page {
    justify-content: center;
}

.register-app2-shell {
    max-width: 414px;
    padding-top: 14px;
}

.register-app2-card {
    min-height: calc(100vh - 28px);
}

.register-app2-topbar {
    display: flex;
    align-items: center;
    padding-top: 2px;
}

.register-app2-back {
    width: 34px;
    height: 34px;
    border-radius: 12px;
    background: rgba(23, 30, 46, 0.95);
    border: 1px solid rgba(111, 132, 173, 0.14);
    color: #97a4bd;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.register-app2-back svg {
    width: 18px;
    height: 18px;
}

.register-app2-brand-wrap {
    padding-top: 18px;
}

.register-app2-logo {
    width: min(100%, 168px);
}

.register-app2-form {
    margin-top: 24px;
    gap: 16px;
}

.register-app2-submit {
    margin-top: 6px;
}

.register-app2-signin {
    margin-top: 12px;
}

.register-app2-turnstile-wrap {
    margin-top: 4px;
    display: flex;
    justify-content: center;
}

@media (min-width: 431px) {
    .register-app2-shell {
        padding-top: 16px;
        padding-bottom: 40px;
    }
}
