:root {
    --portal-bg: #f4f6f9;
    --portal-surface: #ffffff;
    --portal-border: #dfe5ec;
    --portal-text: #1f2937;
    --portal-muted: #6b7280;
    --portal-accent: #0f766e;
    --portal-accent-strong: #115e59;
    --portal-soft: #eef6f5;
    --portal-shadow: 0 1px 2px rgba(16, 24, 40, .06);
    --portal-header-height: 60px;
    --portal-header-gap: 10px;
    --portal-footer-height: 45px;
}

html.dark-mode,
html.dark-mode body,
body.dark-mode {
    --portal-bg: #252a30;
    --portal-surface: #343a40;
    --portal-border: #56606a;
    --portal-text: #f4f6f9;
    --portal-muted: #c7d0d9;
    --portal-accent: #5eead4;
    --portal-accent-strong: #2dd4bf;
    --portal-soft: #223a40;
    --portal-shadow: none;
}

.clientes-portal-body {
    background: var(--portal-bg);
    color: var(--portal-text);
    min-height: 100vh;
    padding-bottom: var(--portal-footer-height);
    padding-top: calc(var(--portal-header-height) + var(--portal-header-gap));
}

.clientes-portal-body .se-pre-con {
    background: url('/images/200.gif') center no-repeat rgba(255, 255, 255, .78);
    height: 100%;
    left: 0;
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 9999;
}

html.dark-mode .clientes-portal-body .se-pre-con,
.clientes-portal-body.dark-mode .se-pre-con {
    background-color: rgba(37, 42, 48, .76);
}

.clientes-portal-nav {
    border-bottom: 1px solid var(--portal-border);
    left: 0;
    min-height: var(--portal-header-height);
    position: fixed;
    right: 0;
    top: 0;
    z-index: 1030;
}

.clientes-portal-brand {
    align-items: center;
    display: inline-flex;
    gap: 8px;
}

.clientes-portal-brand .brand-image {
    height: 32px;
    margin: 0;
    width: 32px;
}

.clientes-portal-brand .brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.05;
}

.clientes-portal-brand small {
    color: var(--portal-muted);
    font-size: 12px;
    font-weight: 600;
}

.navbar-actions,
.clientes-page-switch {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.navbar-actions .btn,
.clientes-page-switch .btn,
.clientes-portal-body .report-card-header .btn,
.clientes-portal-body .input-group-append .btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: 13px;
    gap: 6px;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    white-space: nowrap;
}

.clientes-portal-body .du-toolbar {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.clientes-portal-body .du-toolbar .btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    font-size: 13px;
    gap: 6px;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
    white-space: nowrap;
}

.clientes-portal-body .du-toolbar .btn span {
    font-size: 13px;
    font-weight: 600;
}

.navbar-actions .btn span,
.clientes-page-switch .btn span,
.clientes-portal-body .report-card-header .btn span,
.clientes-portal-body .input-group-append .btn span {
    font-size: 13px;
    font-weight: 600;
}

.clientes-portal-wrapper {
    background: var(--portal-bg);
    min-height: calc(100vh - var(--portal-header-height) - var(--portal-header-gap) - var(--portal-footer-height));
}

.clientes-portal-content {
    padding: 14px 0 24px;
}

.clientes-access {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: calc(100vh - var(--portal-header-height) - var(--portal-header-gap) - var(--portal-footer-height) - 38px);
}

.clientes-access-card {
    max-width: 540px;
    width: min(540px, 100%);
}

.clientes-access-logo {
    align-items: center;
    display: flex;
    justify-content: center;
    margin: 8px 0 14px;
}

.clientes-access-logo img {
    height: auto;
    max-width: 260px;
    width: 70%;
}

.clientes-access .portal-otp-group .form-control {
    border-radius: 4px !important;
    font-size: 14px;
    height: 36px;
    min-height: 36px;
}

.clientes-access .portal-otp-group .input-group-append {
    margin-left: 8px;
}

.clientes-access .portal-otp-group .input-group-append .btn {
    border-radius: 6px !important;
    height: 36px;
    min-height: 36px;
    min-width: 128px;
    padding: 6px 12px;
}

.clientes-have-code-row {
    margin: -2px 0 8px;
    text-align: right;
}

.clientes-have-code {
    color: var(--portal-accent);
    font-size: 13px;
    font-weight: 600;
    padding: 0;
    text-decoration: none;
}

.clientes-have-code i {
    margin-right: 5px;
}

.clientes-have-code:hover,
.clientes-have-code:focus {
    color: var(--portal-accent-strong);
    text-decoration: underline;
}

.portal-status {
    background: var(--portal-soft);
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    color: var(--portal-text);
    font-size: 13px;
    line-height: 1.45;
    margin-top: 8px;
    padding: 9px 10px;
}

.portal-status.ok {
    border-left: 4px solid #099268;
}

.portal-status.error {
    border-left: 4px solid #e03131;
}

.portal-status.info {
    border-left: 4px solid var(--portal-accent);
}

.clientes-signup {
    align-items: center;
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    box-shadow: var(--portal-shadow);
    color: var(--portal-text);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-top: 8px;
    padding: 10px;
}

.clientes-signup strong {
    display: block;
    font-size: 14px;
    line-height: 1.25;
}

.clientes-signup span {
    color: var(--portal-muted);
    display: block;
    font-size: 13px;
    line-height: 1.35;
    max-width: 390px;
}

.clientes-signup .btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    flex: 0 0 auto;
    gap: 6px;
    min-height: 34px;
    padding: 6px 10px;
}

.clientes-signup .btn span {
    color: inherit;
    display: inline;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.2;
}

.clientes-portal-topbar {
    align-items: center;
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    box-shadow: var(--portal-shadow);
    color: var(--portal-text);
    display: flex;
    gap: 12px;
    justify-content: space-between;
    margin-bottom: 8px;
    padding: 10px 12px;
}

.clientes-portal-topbar p {
    color: var(--portal-muted);
    font-size: 13px;
}

#PortalEmailLabel {
    color: var(--portal-muted);
    display: inline-block;
    font-size: 13px;
    margin-left: 6px;
}

.clientes-portal-body .report-card,
.clientes-portal-body .report-table-container,
.clientes-portal-body .report-summary-card {
    background: var(--portal-surface);
    border-color: var(--portal-border);
    box-shadow: var(--portal-shadow);
    color: var(--portal-text);
}

.clientes-portal-body .report-card .form-control,
.clientes-portal-body .report-card select,
.clientes-portal-body .select2-container--default .select2-selection--single {
    background-color: var(--portal-surface);
    border-color: var(--portal-border);
    color: var(--portal-text);
}

.clientes-portal-body .select2-container--default .select2-selection--single .select2-selection__rendered {
    color: var(--portal-text);
}

.clientes-portal-body .portal-page .report-card .form-control,
.clientes-portal-body .portal-page .report-card .select2-container--default .select2-selection--single {
    border-radius: 4px;
    font-size: 14px;
    height: 38px;
    min-height: 38px;
}

.clientes-portal-body .portal-page .report-card .form-control {
    line-height: 1.45;
    padding: 7px 10px;
}

.clientes-portal-body .portal-page .report-card .select2-container--default .select2-selection--single .select2-selection__rendered {
    line-height: 36px;
    padding-left: 10px;
}

.clientes-portal-body .portal-page .report-card .select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 36px;
}

.clientes-portal-body .portal-page .estado-cuenta-switches {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 16px;
}

.clientes-portal-body .portal-page .estado-cuenta-switches label {
    align-items: center;
    display: inline-flex;
    gap: 5px;
    margin: 0;
}

.clientes-portal-body .portal-page .dataTables_wrapper .dataTables_length label {
    align-items: center;
    display: inline-flex;
    font-size: 13px;
    gap: 6px;
    line-height: 1.2;
    margin: 0 0 6px;
    white-space: nowrap;
}

.clientes-portal-body .portal-page .dataTables_wrapper .dataTables_length select.form-control {
    border-radius: 4px;
    display: inline-block;
    font-size: 13px;
    height: 30px;
    line-height: 1.2;
    min-height: 30px;
    min-width: 58px;
    padding: 4px 22px 4px 8px;
    width: auto !important;
}

.clientes-portal-body .portal-page .dataTables_wrapper .dataTables_filter label {
    align-items: center;
    display: inline-flex;
    font-size: 13px;
    gap: 6px;
    margin: 0 0 6px;
}

.clientes-portal-body .portal-page .dataTables_wrapper .dataTables_filter input.form-control {
    font-size: 13px;
    height: 30px;
    line-height: 1.2;
    min-height: 30px;
    padding: 4px 8px;
}

.clientes-portal-body .select2-dropdown {
    background-color: var(--portal-surface);
    border-color: var(--portal-border);
    color: var(--portal-text);
}

.portal-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    justify-content: center;
}

.portal-actions .btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    height: 28px;
    justify-content: center;
    padding: 0;
    width: 30px;
}

.portal-actions .btn i {
    font-size: 14px;
}

.portal-badge {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
    padding: 5px 8px;
}

.portal-badge.ok {
    background: rgba(9, 146, 104, .12);
    color: #087f5b;
}

.portal-badge.warn {
    background: rgba(245, 159, 0, .14);
    color: #b77900;
}

.portal-badge.error {
    background: rgba(224, 49, 49, .12);
    color: #c92a2a;
}

html.dark-mode .portal-badge.ok,
body.dark-mode .portal-badge.ok {
    color: #8ce6c4;
}

html.dark-mode .portal-badge.warn,
body.dark-mode .portal-badge.warn {
    color: #ffd43b;
}

html.dark-mode .portal-badge.error,
body.dark-mode .portal-badge.error {
    color: #ffa8a8;
}

.estado-detail-box {
    background: var(--portal-soft);
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    color: var(--portal-text);
    padding: 10px;
}

.estado-detail-box table {
    margin-bottom: 0;
}

.portal-selection-toolbar .btn[disabled] {
    cursor: not-allowed;
    opacity: .65;
}

.clientes-portal-body input[type="checkbox"] {
    cursor: pointer;
}

.clientes-portal-footer {
    background: var(--portal-surface);
    border-top: 1px solid var(--portal-border);
    bottom: 0;
    color: var(--portal-muted);
    font-size: 13px;
    left: 0;
    padding: 13px 16px;
    position: fixed;
    right: 0;
    z-index: 1020;
}

.clientes-portal-footer a {
    color: #00c0ef;
}

.portal-document-modal .modal-dialog {
    max-width: min(1100px, calc(100vw - 24px));
}

.portal-document-modal .modal-content {
    background: var(--portal-surface);
    color: var(--portal-text);
}

.portal-document-modal .modal-body {
    height: min(76vh, 760px);
    padding: 0;
}

.portal-document-modal iframe {
    background: #ffffff;
    border: 0;
    height: 100%;
    width: 100%;
}

.clientes-portal-body .estado-cuenta-mini-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.clientes-portal-body .estado-cuenta-mini-card {
    background: var(--portal-soft);
    border: 1px solid var(--portal-border);
    border-radius: 8px;
    padding: 8px 10px;
}

.clientes-portal-body .estado-cuenta-mini-card span {
    color: var(--portal-muted);
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
}

.clientes-portal-body .estado-cuenta-mini-card strong {
    color: var(--portal-text);
    display: block;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
    margin-top: 3px;
}

.clientes-portal-body .estado-cuenta-mini-card small {
    color: var(--portal-muted);
    display: block;
    font-size: 12px;
    line-height: 1.35;
    margin-top: 3px;
}

.clientes-review-modal .modal-dialog {
    max-width: 420px;
}

.clientes-review-modal .modal-content {
    border-radius: 8px;
}

.clientes-review-stars {
    color: #f59f00;
    display: flex;
    font-size: 20px;
    gap: 4px;
    margin-bottom: 10px;
}

.clientes-review-actions {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.clientes-review-actions .btn {
    align-items: center;
    border-radius: 6px;
    display: inline-flex;
    gap: 6px;
    justify-content: center;
    min-height: 34px;
    padding: 6px 10px;
}

.clientes-review-actions .btn span {
    font-size: 13px;
    font-weight: 600;
}

.clientes-review-actions .btn-light {
    background: #ffffff;
    border-color: var(--portal-border);
    color: var(--portal-text);
}

html.dark-mode .clientes-review-actions .btn-light,
body.dark-mode .clientes-review-actions .btn-light {
    background: #343a40;
    color: #f4f6f9;
}

@media (max-width: 767.98px) {
    .clientes-portal-body input,
    .clientes-portal-body select,
    .clientes-portal-body textarea,
    .clientes-portal-body .form-control,
    .clientes-portal-body .select2-container--default .select2-selection--single,
    .clientes-portal-body .select2-container--default .select2-search--dropdown .select2-search__field {
        font-size: 16px !important;
    }

    .clientes-portal-body .select2-container--default .select2-selection--single .select2-selection__rendered {
        font-size: 16px !important;
    }

    .clientes-portal-content {
        padding-top: 8px;
    }

    .clientes-portal-topbar {
        align-items: stretch;
        flex-direction: column;
    }

    .clientes-page-switch .btn,
    .navbar-actions .btn {
        flex: 1 1 auto;
    }

    .clientes-page-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .navbar-actions .btn span {
        display: none;
    }

    .clientes-access {
        min-height: calc(100vh - var(--portal-header-height) - var(--portal-header-gap) - var(--portal-footer-height) - 24px);
    }

    .clientes-signup {
        align-items: stretch;
        flex-direction: column;
    }

    .clientes-signup .btn {
        justify-content: center;
        width: 100%;
    }
}

/* Vista publica del Portal de Clientes, alineada al index. */
.clientes-portal-body.clientes-public-auth {
    --portal-public-dark: #111820;
    --portal-public-dark-2: #222b35;
    --portal-public-green: #9fcb3a;
    background: var(--portal-public-dark);
    color: #ffffff;
    font-family: var(--soati-public-font, "Elms Sans", "Segoe UI", Arial, sans-serif);
    overflow-x: hidden;
    padding: 0;
}

.clientes-portal-body.clientes-public-auth .clientes-portal-nav,
.clientes-portal-body.clientes-public-auth .clientes-portal-footer {
    display: none;
}

.clientes-portal-body.clientes-public-auth .clientes-portal-wrapper {
    background:
        linear-gradient(140deg, rgba(17, 24, 32, 0.96), rgba(34, 43, 53, 0.98)),
        radial-gradient(circle at 15% 15%, rgba(159, 203, 58, 0.22), transparent 32%);
    max-width: 100vw;
    min-height: 100vh;
    overflow: hidden;
    position: relative;
}

.clientes-portal-body.clientes-public-auth .clientes-portal-wrapper::after {
    background-image:
        linear-gradient(120deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 38px),
        linear-gradient(30deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 42px);
    bottom: 0;
    content: "";
    opacity: 0.42;
    pointer-events: none;
    position: absolute;
    right: -18%;
    top: 0;
    transform: skewX(-12deg);
    width: 58%;
}

.clientes-portal-body.clientes-public-auth .clientes-portal-content {
    padding: 0;
    position: relative;
    z-index: 1;
}

.clientes-portal-body.clientes-public-auth .container-fluid {
    max-width: none;
    padding: 0;
}

.clientes-portal-body.clientes-public-auth .clientes-access {
    align-items: center;
    display: grid;
    gap: clamp(2rem, 5vw, 4.5rem);
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    justify-content: center;
    margin: 0 auto;
    max-width: 1180px;
    min-height: 100vh;
    padding: clamp(3.2rem, 8vw, 5.6rem) 1.4rem clamp(2.4rem, 6vw, 4.2rem);
}

.clientes-access-story {
    min-width: 0;
}

.clientes-public-brand {
    color: #ffffff;
    display: inline-flex;
    margin-bottom: clamp(1.25rem, 3vw, 2.4rem);
    text-decoration: none;
}

.clientes-public-brand .soati-logo-lockup-mark {
    height: 46px;
    width: 46px;
}

.clientes-public-brand .soati-logo-lockup-title,
.clientes-public-brand .soati-logo-lockup-word,
.clientes-public-brand .soati-logo-lockup-product,
.clientes-public-brand .soati-logo-lockup-subtitle {
    color: #ffffff;
}

.clientes-access-story h1 {
    color: #ffffff;
    font-size: var(--soati-public-hero-title-size);
    font-weight: var(--soati-public-hero-title-weight);
    line-height: var(--soati-public-hero-title-line-height);
    margin: 0 0 1.15rem;
    max-width: 820px;
    overflow-wrap: break-word;
}

.clientes-access-story p {
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--soati-public-hero-lead-size);
    line-height: var(--soati-public-hero-lead-line-height);
    margin: 0 0 1.55rem;
    max-width: 720px;
}

.clientes-public-actions {
    align-items: stretch;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin-bottom: 1.7rem;
    max-width: min(100%, 980px);
}

.clientes-public-actions a {
    align-items: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #ffffff;
    display: inline-flex;
    font-size: 0.95rem;
    font-weight: 800;
    gap: 0.5rem;
    justify-content: center;
    line-height: 1.2;
    min-height: 44px;
    padding: 0.64rem 0.78rem;
    text-align: center;
    text-decoration: none;
}

.clientes-public-actions a:nth-child(3) {
    background: var(--portal-public-green);
    border-color: var(--portal-public-green);
    color: #10200c;
}

.clientes-public-actions a:hover,
.clientes-public-actions a:focus {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff;
    text-decoration: none;
}

.clientes-public-actions a:nth-child(3):hover,
.clientes-public-actions a:nth-child(3):focus {
    background: #b1dc46;
    color: #10200c;
}

.clientes-public-proof {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 760px;
    padding-top: 1rem;
}

.clientes-public-proof strong {
    color: #ffffff;
    display: block;
    font-size: 1rem;
}

.clientes-public-proof span {
    color: rgba(255, 255, 255, 0.68);
    display: block;
    font-size: 0.83rem;
    line-height: 1.32;
}

.clientes-portal-body.clientes-public-auth .clientes-access-card {
    background: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    box-shadow: 0 28px 80px rgba(0, 0, 0, .34);
    color: #071827;
    max-width: 520px;
    padding: clamp(1.35rem, 3vw, 1.85rem);
    width: 100%;
}

.clientes-portal-body.clientes-public-auth .clientes-access-card .report-card-title,
.clientes-portal-body.clientes-public-auth .clientes-access-card label,
.clientes-portal-body.clientes-public-auth .clientes-signup strong {
    color: #071827;
}

.clientes-portal-body.clientes-public-auth .clientes-access-card .report-card-subtitle,
.clientes-portal-body.clientes-public-auth .clientes-signup span {
    color: #657482;
}

.clientes-portal-body.clientes-public-auth .clientes-signup {
    background: #eef2f5;
    border: 1px solid #d7dee6;
}

@media (max-width: 1080px) {
    .clientes-portal-body.clientes-public-auth .clientes-access {
        grid-template-columns: 1fr;
    }

    .clientes-portal-body.clientes-public-auth .clientes-access-card {
        max-width: 620px;
    }
}

@media (max-width: 767.98px) {
    .clientes-portal-body.clientes-public-auth .clientes-access {
        padding: 2.4rem 1rem 2.2rem;
    }

    .clientes-access-story h1 {
        font-size: var(--soati-public-hero-title-size);
        line-height: var(--soati-public-hero-title-line-height);
    }

    .clientes-public-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .clientes-public-actions a:last-child {
        grid-column: 1 / -1;
    }

    .clientes-public-proof {
        grid-template-columns: 1fr;
    }
}

/* Ajuste 2026-06: /Clientes replica la estructura visual del index. */
.clientes-portal-body.clientes-public-auth {
    --portal-public-dark: #111820;
    --portal-public-dark-2: #222b35;
    --portal-public-green: #9fcb3a;
    --portal-public-green-dark: #78a61f;
    --portal-public-ink: #071827;
    --portal-public-muted: #657482;
    --portal-public-line: #d7dee6;
    background:
        linear-gradient(140deg, rgba(17, 24, 32, 0.97), rgba(34, 43, 53, 0.99)),
        linear-gradient(120deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 38px);
    color: var(--portal-public-ink);
    overflow-x: hidden;
    position: relative;
}

.clientes-public-bg-symbol {
    background: url('/images/SG.png') center / contain no-repeat;
    height: min(44vw, 760px);
    opacity: 0.055;
    pointer-events: none;
    position: fixed;
    right: calc(520px - 10rem);
    top: 3rem;
    width: min(44vw, 760px);
    z-index: 0;
}

.clientes-portal-body.clientes-public-auth .wrapper {
    background: transparent;
    max-width: 100vw;
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    z-index: 1;
}

.clientes-portal-body.clientes-public-auth .clientes-portal-wrapper {
    background: transparent;
    max-width: 100vw;
    min-height: 100vh;
    overflow: hidden;
}

.clientes-portal-body.clientes-public-auth .clientes-portal-wrapper::after {
    display: none;
}

.clientes-portal-body.clientes-public-auth .clientes-portal-content,
.clientes-portal-body.clientes-public-auth .container-fluid {
    margin: 0;
    max-width: none;
    padding: 0;
    width: 100%;
}

.clientes-portal-body.clientes-public-auth .clientes-access {
    align-items: stretch;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1fr) minmax(380px, 520px);
    justify-content: stretch;
    margin: 0;
    max-width: none;
    min-height: 100vh;
    padding: 0;
    width: 100%;
}

.clientes-portal-body.clientes-public-auth .clientes-access-story {
    background: transparent;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 100vh;
    min-width: 0;
    overflow: hidden;
    padding: clamp(1.6rem, 3.2vw, 3.4rem);
    position: relative;
}

.clientes-portal-body.clientes-public-auth .clientes-access-story::before {
    content: "";
    display: none;
}

.clientes-portal-body.clientes-public-auth .clientes-access-story::after {
    background-image:
        linear-gradient(120deg, rgba(255, 255, 255, 0.09) 0 1px, transparent 1px 38px),
        linear-gradient(30deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 42px);
    bottom: 0;
    content: "";
    opacity: 0.42;
    pointer-events: none;
    position: absolute;
    right: -18%;
    top: 0;
    transform: skewX(-12deg);
    width: 58%;
}

.clientes-portal-body.clientes-public-auth .clientes-access-story > * {
    position: relative;
    z-index: 1;
}

.clientes-portal-body.clientes-public-auth .clientes-public-brand {
    align-items: center;
    display: inline-flex;
    gap: 0.7rem;
    margin-bottom: clamp(1.25rem, 3vw, 2.4rem);
    text-decoration: none;
}

.clientes-portal-body.clientes-public-auth .clientes-access-story h1 {
    color: #ffffff;
    font-size: var(--soati-public-hero-title-size);
    font-weight: var(--soati-public-hero-title-weight);
    line-height: var(--soati-public-hero-title-line-height);
    margin: 0 0 1.15rem;
    max-width: 850px;
    overflow-wrap: break-word;
}

.clientes-portal-body.clientes-public-auth .clientes-access-story p {
    color: rgba(255, 255, 255, 0.82);
    font-size: var(--soati-public-hero-lead-size);
    line-height: var(--soati-public-hero-lead-line-height);
    margin: 0 0 1.55rem;
    max-width: 720px;
}

.clientes-portal-body.clientes-public-auth .clientes-public-actions {
    align-items: stretch;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 0 0 2rem;
    max-width: min(100%, 980px);
}

.clientes-portal-body.clientes-public-auth .clientes-public-actions a {
    align-items: center;
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    color: #ffffff !important;
    display: inline-flex;
    font-family: inherit;
    font-weight: 700;
    gap: 0.55rem;
    justify-content: center;
    line-height: 1.2;
    min-height: 46px;
    min-width: 0;
    padding: 0.68rem 0.8rem;
    text-align: center;
    text-decoration: none !important;
    width: 100%;
}

.clientes-portal-body.clientes-public-auth .clientes-public-actions a i {
    color: inherit !important;
    flex: 0 0 1em;
    text-align: center;
    width: 1em;
}

.clientes-portal-body.clientes-public-auth .clientes-public-actions a span {
    color: inherit !important;
}

.clientes-portal-body.clientes-public-auth .clientes-public-actions a:hover,
.clientes-portal-body.clientes-public-auth .clientes-public-actions a:focus {
    background: rgba(255, 255, 255, 0.14);
    color: #ffffff !important;
    text-decoration: none !important;
}

.clientes-portal-body.clientes-public-auth .clientes-public-actions a:nth-child(3) {
    background: var(--portal-public-green);
    border-color: var(--portal-public-green);
    color: #10200c !important;
}

.clientes-portal-body.clientes-public-auth .clientes-public-actions a:nth-child(3):hover,
.clientes-portal-body.clientes-public-auth .clientes-public-actions a:nth-child(3):focus {
    background: #b1dc46;
    color: #10200c !important;
}

.clientes-public-feature-grid {
    display: grid;
    gap: 0.75rem;
    grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
    margin-top: 0;
    max-width: 1080px;
}

.clientes-public-feature {
    background: rgba(255, 255, 255, 0.075);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    min-height: 140px;
    padding: 0.95rem;
}

.clientes-public-feature i {
    color: var(--portal-public-green);
    display: block;
    font-size: 1.25rem;
    height: 1.25rem;
    line-height: 1.25rem;
    margin-bottom: 0.65rem;
    width: 1.25rem;
}

.clientes-public-feature strong {
    color: #ffffff;
    display: block;
    font-size: 0.98rem;
    line-height: 1.15;
    margin-bottom: 0.3rem;
}

.clientes-public-feature span {
    color: rgba(255, 255, 255, 0.68);
    display: block;
    font-size: 0.84rem;
    line-height: 1.3;
}

.clientes-portal-body.clientes-public-auth .clientes-public-proof {
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 1.6rem;
    max-width: 900px;
    padding-top: 1rem;
}

.clientes-portal-body.clientes-public-auth .clientes-public-proof strong {
    font-size: 1.05rem;
}

.clientes-portal-body.clientes-public-auth .clientes-access-card {
    align-items: stretch;
    background: #ffffff;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    color: #071827;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    max-width: none;
    min-height: 100vh;
    padding: clamp(1.25rem, 3vw, 3rem);
    width: 100%;
}

.clientes-portal-body.clientes-public-auth .clientes-access-card > * {
    margin-left: auto;
    margin-right: auto;
    max-width: 410px;
    width: 100%;
}

.clientes-portal-body.clientes-public-auth .clientes-access-card,
.clientes-portal-body.clientes-public-auth .clientes-access-card * {
    font-family: var(--soati-public-font, "Elms Sans", "Segoe UI", Arial, sans-serif);
    letter-spacing: 0;
}

.clientes-portal-body.clientes-public-auth .clientes-access-card .fas,
.clientes-portal-body.clientes-public-auth .clientes-access-card .fa-solid,
.clientes-portal-body.clientes-public-auth .clientes-access-card .fa {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 900 !important;
}

.clientes-portal-body.clientes-public-auth .clientes-access-card .far,
.clientes-portal-body.clientes-public-auth .clientes-access-card .fa-regular {
    font-family: "Font Awesome 5 Free" !important;
    font-weight: 400 !important;
}

.clientes-portal-body.clientes-public-auth .clientes-access-card .fab,
.clientes-portal-body.clientes-public-auth .clientes-access-card .fa-brands {
    font-family: "Font Awesome 5 Brands" !important;
    font-weight: 400 !important;
}

.clientes-portal-body.clientes-public-auth .clientes-access-logo {
    margin: 0 auto 2rem;
}

.clientes-portal-body.clientes-public-auth .clientes-access-logo img {
    max-width: min(270px, 74vw);
    width: 100%;
}

.clientes-portal-body.clientes-public-auth .clientes-access-card .report-card-header {
    border-bottom: 0 !important;
    display: block;
    margin-bottom: 1.35rem;
    padding-bottom: 0 !important;
}

.clientes-portal-body.clientes-public-auth .clientes-access-card .report-card-title {
    font-size: 1.55rem !important;
    font-weight: 700 !important;
    line-height: 1.12;
    margin: 0 0 0.25rem;
}

.clientes-portal-body.clientes-public-auth .clientes-access-card .report-card-subtitle {
    color: #657482 !important;
    font-size: 0.95rem !important;
    line-height: 1.35;
    margin: 0;
}

.clientes-portal-body.clientes-public-auth .clientes-access-card label {
    color: #273645;
    display: block;
    font-size: 0.82rem !important;
    font-weight: 700 !important;
    line-height: 1.2;
    margin: 0 0 0.35rem;
}

.clientes-portal-body.clientes-public-auth .clientes-access .portal-otp-group {
    align-items: stretch;
    display: block !important;
    gap: 0.65rem;
    width: 100%;
}

.clientes-portal-body.clientes-public-auth .clientes-access .portal-otp-group .form-control {
    background: #ffffff !important;
    border: 1px solid #cbd5df !important;
    border-radius: 4px !important;
    color: #071827 !important;
    display: block !important;
    flex: none !important;
    font-size: 1rem !important;
    height: 46px;
    min-height: 46px;
    outline: 0;
    padding: 0 0.8rem;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    width: 100% !important;
}

.clientes-portal-body.clientes-public-auth .clientes-access .portal-otp-group .form-control:focus {
    border-color: #78a61f !important;
    box-shadow: 0 0 0 0.18rem rgba(159, 203, 58, 0.24);
}

.clientes-portal-body.clientes-public-auth .clientes-access .portal-otp-group .input-group-append {
    display: block !important;
    margin-left: 0;
    margin-top: 0.65rem;
    width: 100%;
}

.clientes-portal-body.clientes-public-auth .clientes-access .portal-otp-group .input-group-append .btn,
.clientes-portal-body.clientes-public-auth .clientes-signup .btn {
    border-radius: 4px !important;
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    gap: 0.55rem;
    height: auto;
    min-height: 46px;
    padding: 0.75rem 1rem;
    width: 100%;
}

.clientes-portal-body.clientes-public-auth .clientes-access .portal-otp-group .input-group-append .btn {
    background: var(--portal-public-green);
    border-color: var(--portal-public-green);
    color: #10200c;
}

.clientes-portal-body.clientes-public-auth .clientes-signup .btn {
    background: var(--portal-public-green) !important;
    border-color: var(--portal-public-green) !important;
    color: #10200c !important;
}

.clientes-portal-body.clientes-public-auth .clientes-signup .btn i,
.clientes-portal-body.clientes-public-auth .clientes-signup .btn span {
    color: inherit !important;
}

.clientes-portal-body.clientes-public-auth .clientes-have-code-row {
    margin: 0.35rem 0 1rem;
    text-align: right;
}

.clientes-portal-body.clientes-public-auth .clientes-have-code {
    color: #217bb5;
    font-size: 0.88rem !important;
    font-weight: 700;
}

.clientes-portal-body.clientes-public-auth .portal-status {
    background: transparent;
    border: 0;
    border-radius: 0;
    color: #657482 !important;
    font-size: 0.82rem !important;
    line-height: 1.35;
    margin-top: 1.25rem;
    padding: 0;
}

.clientes-portal-body.clientes-public-auth .clientes-signup {
    align-items: stretch;
    background: transparent;
    border: 0;
    border-radius: 0;
    border-top: 1px solid #d7dee6;
    box-shadow: none;
    display: grid;
    gap: 0.75rem;
    margin-top: 1.2rem;
    padding: 1rem 0 0;
}

.clientes-portal-body.clientes-public-auth .clientes-signup span {
    max-width: none;
}

@media (max-width: 1180px) {
    .clientes-portal-body.clientes-public-auth .clientes-public-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1080px) {
    .clientes-public-bg-symbol {
        height: 360px;
        opacity: 0.045;
        right: -180px;
        top: 4.6rem;
        width: 360px;
    }

    .clientes-portal-body.clientes-public-auth .clientes-access {
        grid-template-columns: 1fr;
    }

    .clientes-portal-body.clientes-public-auth .clientes-access-story,
    .clientes-portal-body.clientes-public-auth .clientes-access-card {
        min-height: auto;
    }

    .clientes-portal-body.clientes-public-auth .clientes-access-card {
        padding-bottom: 3rem;
        padding-top: 3rem;
    }
}

@media (max-width: 767.98px) {
    .clientes-portal-body.clientes-public-auth .clientes-access-story {
        padding: 2.4rem 1rem 2.2rem;
    }

    .clientes-portal-body.clientes-public-auth .clientes-access-story h1 {
        font-size: var(--soati-public-hero-title-size);
        line-height: var(--soati-public-hero-title-line-height);
    }

    .clientes-portal-body.clientes-public-auth .clientes-public-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .clientes-portal-body.clientes-public-auth .clientes-public-actions a:last-child {
        grid-column: auto;
    }

    .clientes-public-feature-grid,
    .clientes-portal-body.clientes-public-auth .clientes-public-proof {
        grid-template-columns: 1fr;
    }
}
