/* Páginas fora do dashboard: autenticação, confirmações, termos e autosserviço. */
.standalone-page,
.auth-page {
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0;
    color: #172033;
    background:
        radial-gradient(circle at 12% 14%, rgba(14,165,233,.11), transparent 34%),
        radial-gradient(circle at 88% 84%, rgba(79,70,229,.12), transparent 38%),
        #f4f6fb;
}

.standalone-content,
.auth-content { width: 100%; min-height: 100vh; min-height: 100dvh; }

.auth-wrapper,
.standalone-center {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    padding: clamp(16px, 4vw, 42px);
}

.auth-wrapper > .card,
.standalone-card {
    overflow: hidden;
    width: min(100%, 500px);
    border: 1px solid #e6eaf1 !important;
    border-radius: 20px !important;
    background: #fff;
    box-shadow: 0 22px 55px -24px rgba(30,41,59,.3) !important;
}

.auth-wrapper .card-header,
.standalone-card__header {
    padding: 26px 28px !important;
    color: #fff !important;
    border: 0 !important;
    background:
        radial-gradient(circle at 90% 0, rgba(255,255,255,.2), transparent 38%),
        linear-gradient(135deg, #312e81, #4f46e5 58%, #6366f1) !important;
    text-align: center;
}

.auth-wrapper .card-header.bg-success { background: linear-gradient(135deg, #065f46, #0f766e 60%, #14b8a6) !important; }
.auth-wrapper .card-header.bg-dark { background: linear-gradient(135deg, #111827, #1e293b 60%, #334155) !important; }
.auth-wrapper .card-header i { display: inline-block; margin-bottom: 7px; font-size: 2.3rem !important; }
.auth-wrapper .card-header h4 { font-size: 1.35rem; }
.auth-wrapper .card-body { padding: clamp(24px, 5vw, 36px) !important; }

.auth-wrapper .form-label { margin-bottom: 6px; color: #334155 !important; font-size: .84rem; font-weight: 700 !important; }
.auth-wrapper input:not([type="checkbox"]):not([type="radio"]),
.auth-wrapper select,
.auth-wrapper textarea {
    width: 100%;
    min-height: 45px;
    padding: .7rem .85rem;
    color: #172033;
    border: 1px solid #cfd8e5;
    border-radius: 10px;
    background: #fff;
}
.auth-wrapper input:focus,
.auth-wrapper select:focus,
.auth-wrapper textarea:focus { outline: 0; border-color: #6366f1; box-shadow: 0 0 0 .22rem rgba(99,102,241,.13); }
.auth-wrapper .btn { min-height: 46px; border-radius: 10px; font-weight: 700; }
.auth-wrapper .btn-primary { border-color: #4f46e5; background: #4f46e5; }

.email-verification-copy { max-width: 390px; margin-right: auto; margin-left: auto; line-height: 1.55; }
.email-importance {
    margin: 20px 0 14px;
    padding: 18px;
    border: 1px solid #c7d2fe;
    border-radius: 14px;
    background: linear-gradient(145deg, #f8faff, #eef2ff);
    text-align: left;
}
.email-importance__heading { display: flex; align-items: center; gap: 11px; padding-bottom: 13px; }
.email-importance__heading > i {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    margin: 0;
    place-items: center;
    border-radius: 12px;
    color: #4338ca;
    background: #e0e7ff;
    font-size: 1.15rem !important;
}
.email-importance__heading span {
    display: block;
    margin-bottom: 2px;
    color: #6366f1;
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}
.email-importance__heading h6 { margin: 0; color: #1e293b; font-size: .95rem; font-weight: 800; }
.email-importance__item { display: flex; align-items: flex-start; gap: 11px; padding: 12px 0; border-top: 1px solid #dbe3ff; }
.email-importance__item:last-child { padding-bottom: 0; }
.email-importance__icon {
    display: grid;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 10px;
    color: #047857;
    background: #d1fae5;
}
.email-importance__item strong { display: block; margin-bottom: 2px; color: #334155; font-size: .84rem; }
.email-importance__item div > span { display: block; color: #64748b; font-size: .78rem; line-height: 1.45; }
.email-verification-reminder {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 0 2px 14px;
    color: #475569;
    font-size: .78rem;
    line-height: 1.5;
    text-align: left;
}
.email-verification-reminder i { flex: 0 0 auto; margin-top: 2px; color: #0f766e; }
.email-verification-alert { display: flex; align-items: flex-start; gap: 7px; line-height: 1.5; }

.auth-status-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 22px;
    color: #047857;
    background: #ecfdf5;
    font-size: 1.9rem;
}
.auth-status-icon--warning { color: #b45309; background: #fffbeb; }
.auth-status-icon--danger { color: #be123c; background: #fff1f2; }

.legal-page { width: min(100%, 1120px); margin: 0 auto; padding: 24px 16px 48px; }
.legal-hero { padding: clamp(24px,4vw,38px); color: #fff; border-radius: 20px 20px 0 0; background: linear-gradient(135deg,#172554,#3730a3 60%,#4f46e5); }
.legal-hero span { color: #c7d2fe; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.legal-hero h1 { margin: 6px 0 4px; font-size: clamp(1.55rem,3vw,2.2rem); font-weight: 800; }
.legal-hero p { margin: 0; color: rgba(255,255,255,.78); }
.legal-card { overflow: hidden; border: 1px solid #e2e8f0; border-radius: 20px; background: #fff; box-shadow: 0 18px 42px rgba(15,23,42,.08); }
.legal-body { padding: clamp(24px,4vw,42px); line-height: 1.72; }
.legal-body h2 { margin-top: 28px; color: #312e81; font-size: 1.05rem; font-weight: 800; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body .table { min-width: 760px; font-size: .82rem; }
.legal-body .table th { color: #312e81; background: #eef2ff; }
.legal-summary { display: grid; grid-template-columns: repeat(auto-fit,minmax(190px,1fr)); gap: 12px; margin-bottom: 34px; }
.legal-summary a { display: flex; align-items: flex-start; gap: 11px; padding: 15px; color: #334155; border: 1px solid #dbe3ec; border-radius: 13px; background: #f8fafc; text-decoration: none; transition: border-color .2s ease,transform .2s ease,box-shadow .2s ease; }
.legal-summary a:hover { border-color: #a5b4fc; box-shadow: 0 9px 22px rgba(49,46,129,.08); transform: translateY(-1px); }
.legal-summary a:focus-visible { outline: 3px solid rgba(79,70,229,.25); outline-offset: 2px; }
.legal-summary i { display: grid; flex: 0 0 38px; width: 38px; height: 38px; place-items: center; color: #4338ca; border-radius: 11px; background: #e0e7ff; }
.legal-summary strong,.legal-summary span { display: block; }
.legal-summary strong { margin-bottom: 2px; color: #172033; font-size: .86rem; }
.legal-summary span { color: #64748b; font-size: .75rem; line-height: 1.45; }
.legal-section-heading { scroll-margin-top: 20px; margin: 38px 0 22px; padding: 20px 22px; border-left: 5px solid #4f46e5; border-radius: 0 13px 13px 0; background: linear-gradient(90deg,#eef2ff,#f8fafc); }
.legal-section-heading:first-of-type { margin-top: 0; }
.legal-section-heading span { color: #3730a3; font-size: 1.13rem; font-weight: 850; }
.legal-section-heading p { margin: 3px 0 0; color: #64748b; font-size: .84rem; }
.legal-callout { display: flex; align-items: flex-start; gap: 13px; margin: 16px 0; padding: 17px 19px; border: 1px solid; border-radius: 13px; }
.legal-callout > i { flex: 0 0 auto; margin-top: 1px; font-size: 1.15rem; }
.legal-callout strong { display: block; margin-bottom: 3px; color: #172033; }
.legal-callout p { margin: 0; font-size: .87rem; line-height: 1.62; }
.legal-callout--info { color: #0c4a6e; border-color: #bae6fd; background: #f0f9ff; }
.legal-callout--danger { color: #881337; border-color: #fecdd3; background: #fff1f2; }
.legal-callout--success { color: #065f46; border-color: #a7f3d0; background: #ecfdf5; }
.legal-requirements td:first-child { width: 112px; color: #172033; }
.legal-sla th:first-child,.legal-sla td:first-child { width: 112px; }
.legal-sla th:last-child,.legal-sla td:last-child { width: 150px; }
.legal-footnote { display: flex; align-items: flex-start; gap: 9px; padding: 13px 15px; color: #475569; border-radius: 11px; background: #f8fafc; font-size: .82rem; }
.legal-footnote i { flex: 0 0 auto; color: #4f46e5; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 28px; }
.legal-actions a,.legal-actions button { display: inline-flex; min-height: 42px; align-items: center; gap: 7px; padding: 9px 13px; color: #3730a3; border: 1px solid #c7d2fe; border-radius: 10px; background: #f8faff; font: inherit; font-size: .78rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.legal-actions a:hover,.legal-actions button:hover { border-color: #818cf8; background: #eef2ff; }
.legal-actions a:focus-visible,.legal-actions button:focus-visible { outline: 3px solid rgba(79,70,229,.22); outline-offset: 2px; }
.legal-identity { min-width: 520px !important; }
.legal-identity th { width: 210px; color: #312e81; background: #eef2ff; }

.consent-card { width: min(100%, 620px); }
.onboarding-card { width: min(100%, 720px) !important; max-width: 720px !important; }
.consent-box {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    padding: 17px 18px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #f8fafc;
    transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease;
}
.consent-box:hover { border-color: #a5b4fc; background: #f8faff; }
.consent-box:focus-within { border-color: #6366f1; box-shadow: 0 0 0 4px rgba(99,102,241,.13); }
.consent-box:has(.consent-box__control:checked) { border-color: #818cf8; background: #eef2ff; }
.consent-box__control {
    flex: 0 0 auto;
    width: 1.25rem;
    height: 1.25rem;
    margin: 2px 0 0 !important;
    border: 2px solid #94a3b8;
    cursor: pointer;
}
.consent-box__control:checked { border-color: #4f46e5; background-color: #4f46e5; }
.consent-box__control:focus { border-color: #4f46e5; box-shadow: none; }
.consent-box__content { display: block; flex: 1 1 auto; margin: 0; color: #334155; cursor: pointer; }
.consent-box__title { display: block; color: #172033; font-size: .92rem; font-weight: 750; line-height: 1.45; }
.consent-box__description { display: block; margin-top: 5px; color: #475569; font-size: .82rem; line-height: 1.55; }
.consent-box__content a { color: #4338ca; font-weight: 700; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
.consent-box__content a:hover { color: #312e81; text-decoration-thickness: 2px; }
.consent-box__content a:focus-visible { border-radius: 3px; outline: 3px solid rgba(79,70,229,.22); outline-offset: 2px; }
.consent-box__required { display: flex; align-items: center; gap: 6px; margin-top: 9px; color: #64748b; font-size: .72rem; font-weight: 650; }
.consent-box__required::before { width: 6px; height: 6px; border-radius: 50%; background: #6366f1; content: ""; }

.allauth-card h1 { margin: 0 0 8px; color: #172033; font-size: clamp(1.45rem,4vw,1.85rem); font-weight: 850; }
.allauth-card h2 { color: #172033; font-size: 1.1rem; font-weight: 800; }
.allauth-card p { color: #64748b; line-height: 1.55; }
.allauth-card form > p { margin-bottom: 15px; text-align: left; }
.allauth-card label { display: block; margin-bottom: 6px; color: #334155; font-size: .82rem; font-weight: 700; }
.allauth-card input:not([type="checkbox"]):not([type="radio"]),
.allauth-card select,
.allauth-card textarea { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #cfd8e6; border-radius: 10px; color: #172033; background: #fff; }
.allauth-card input:focus,.allauth-card select:focus,.allauth-card textarea:focus { outline: 0; border-color: #6366f1; box-shadow: 0 0 0 .22rem rgba(99,102,241,.13); }
.allauth-card button,.allauth-card form button,.allauth-card a[role="button"] { display: inline-flex; width: 100%; min-height: 46px; align-items: center; justify-content: center; padding: 10px 16px; border: 1px solid #4f46e5; border-radius: 10px; color: #fff; background: #4f46e5; font-weight: 750; text-decoration: none; cursor: pointer; }
.allauth-card ul { padding-left: 19px; color: #64748b; text-align: left; }
.allauth-card a { color: #4f46e5; font-weight: 650; }
.allauth-card .errorlist { margin: 0 0 8px; padding: 9px 12px; border-radius: 9px; color: #b91c1c; background: #fef2f2; list-style: none; }
.allauth-message { margin-bottom: 12px; padding: 11px 13px; border: 1px solid #bfdbfe; border-radius: 10px; color: #1e40af; background: #eff6ff; font-size: .84rem; }

.status-page-card { width: min(100%, 590px); text-align: center; }
.status-page-card h1 { color: #172033; font-size: clamp(1.5rem,4vw,1.9rem); font-weight: 800; }
.status-page-card p { color: #64748b; line-height: 1.65; }

.billing-selfservice { width: min(100%, 820px); margin: 0 auto; padding: 24px 16px 48px; }
.billing-back { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 18px; color: #4f46e5; font-size: .82rem; font-weight: 700; text-decoration: none; }
.billing-hero { margin-bottom: 16px; padding: 24px 27px; color: #fff; border-radius: 18px; background: linear-gradient(135deg,#312e81,#4f46e5 60%,#7c3aed); }
.billing-hero h1 { margin: 0 0 5px; font-size: 1.55rem; font-weight: 800; }
.billing-hero p { margin: 0; color: rgba(255,255,255,.78); }
.billing-card { padding: clamp(20px,4vw,30px); border: 1px solid #e2e8f0; border-radius: 17px; background: #fff; box-shadow: 0 12px 30px rgba(15,23,42,.07); }
.billing-card h2 { color: #172033; font-size: 1.15rem; font-weight: 800; }
.billing-card .form-control,.billing-card .form-select { min-height: 44px; border-color: #d6deea; border-radius: 9px; }
.billing-card fieldset { padding: 17px; border: 1px solid #dbe3ec; border-radius: 12px; background: #f8fafc; }
.billing-card .btn { min-height: 44px; border-radius: 9px; font-weight: 700; }

@media (max-width: 575.98px) {
    .auth-wrapper,.standalone-center { align-items: flex-start; padding: 12px; }
    .auth-wrapper > .card,.standalone-card { border-radius: 16px !important; }
    .auth-wrapper .card-body { padding: 22px 18px !important; }
    .legal-page,.billing-selfservice { padding: 12px 10px 30px; }
    .legal-card,.legal-hero { border-radius: 15px; }
    .legal-summary { grid-template-columns: 1fr; }
    .legal-section-heading { padding: 17px 18px; }
    .legal-callout { padding: 15px; }
    .legal-actions { flex-direction: column; }
    .legal-actions a,.legal-actions button { width: 100%; justify-content: center; }
    .billing-hero { padding: 20px; }
    .email-importance { padding: 15px; }
}

@media print {
    body { color: #000 !important; background: #fff !important; }
    body .navbar,body footer,.legal-actions { display: none !important; }
    .legal-page { width: 100%; padding: 0; }
    .legal-card { border: 0; box-shadow: none; }
    .legal-hero { color: #000; border: 1px solid #999; background: #fff !important; }
    .legal-hero span,.legal-hero p { color: #333; }
    .legal-section-heading,.legal-callout,.legal-footnote { break-inside: avoid; }
    .legal-body a { color: #000; text-decoration: underline; }
}

.error-page {
    display: grid;
    min-height: 100vh;
    min-height: 100dvh;
    padding: 20px;
    place-items: center;
    color: #172033;
    background:
        radial-gradient(circle at 12% 18%, rgba(14,165,233,.12), transparent 35%),
        radial-gradient(circle at 88% 82%, rgba(79,70,229,.13), transparent 38%),
        #f4f6fb;
    font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.error-card { width: min(100%, 540px); padding: clamp(28px,6vw,48px); border: 1px solid #e2e8f0; border-radius: 22px; background: #fff; box-shadow: 0 24px 60px -28px rgba(15,23,42,.38); text-align: center; }
.error-brand { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; color: #172033; font-weight: 800; }
.error-brand__mark { display: grid; width: 34px; height: 34px; place-items: center; color: #fff; background: linear-gradient(135deg,#06b6d4,#4f46e5); border-radius: 10px; }
.error-code { display: block; color: #4f46e5; font-size: .75rem; font-weight: 850; letter-spacing: .14em; text-transform: uppercase; }
.error-card h1 { margin: 7px 0 10px; color: #172033; font-size: clamp(1.7rem,5vw,2.35rem); font-weight: 850; line-height: 1.15; }
.error-card p { max-width: 420px; margin: 0 auto; color: #64748b; line-height: 1.65; }
.error-actions { display: flex; justify-content: center; gap: 9px; margin-top: 25px; }
.error-actions a { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; padding: 9px 15px; border: 1px solid #d7deea; border-radius: 10px; color: #475569; font-weight: 700; text-decoration: none; }
.error-actions a:first-child { color: #fff; border-color: #4f46e5; background: #4f46e5; }
@media (max-width: 420px) { .error-actions { flex-direction: column; } }
