/* panel uses the public site --fet-* vars from the active theme, so it follows the theme */

/* ---------- Fondo general ---------- */
.fi-body { background: #f6f7f6; }
.dark .fi-body { background: #0b1510; }

/* ---------- Barra superior: color principal ---------- */
.fi-topbar {
    background: var(--fet-primary);
    color: var(--fet-on-primary);
    border-bottom: 0;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.12);
}
.fi-topbar .fi-icon-btn,
.fi-topbar .fi-topbar-item-btn,
.fi-topbar .fi-topbar-item-icon,
.fi-topbar .fi-topbar-item-label { color: var(--fet-on-primary); }
.fi-topbar .fi-icon-btn:hover,
.fi-topbar .fi-topbar-item-btn:hover { background: rgba(255, 255, 255, 0.14); }
.fi-topbar .fi-logo { filter: brightness(0) invert(1); height: 2.6rem !important; }
.fi-topbar .fi-global-search-field .fi-input-wrp {
    background: rgba(255, 255, 255, 0.95);
    border-color: transparent;
}

/* ---------- sidebar ---------- */
.fi-sidebar,
.fi-sidebar-header { background: #fff !important; border-right: 1px solid #ececec; }
.fi-sidebar-group-label { color: #737373 !important; font-weight: 700; letter-spacing: 0.02em; }
.fi-sidebar-group-btn .fi-icon, .fi-sidebar-group-collapse-btn { color: #a3a3a3 !important; }
.fi-sidebar-item-label { color: #262626 !important; }
.fi-sidebar-item-icon { color: #737373 !important; }
.fi-sidebar-item-grouped-border-part { background: #e5e5e5 !important; }
.fi-sidebar-item-btn { transition: background 0.15s ease; }
.fi-sidebar-item-btn:hover,
.fi-sidebar-item-btn:focus-visible { background: var(--fet-primary-light) !important; }
.fi-sidebar-item.fi-active > .fi-sidebar-item-btn { background: var(--fet-primary) !important; }
.fi-sidebar-item.fi-active .fi-sidebar-item-label,
.fi-sidebar-item.fi-active .fi-sidebar-item-icon { color: #fff !important; }
.fi-sidebar-item.fi-active .fi-sidebar-item-grouped-border-part { background: var(--fet-tertiary) !important; }

/* ---------- page headers ---------- */
.fi-header-heading { font-family: var(--fet-font-heading); letter-spacing: -0.02em; }

/* ---------- dark mode ---------- */
.dark .fi-sidebar, .dark .fi-sidebar-header { background: #141414 !important; border-right-color: #262626; }
.dark .fi-sidebar-item-label { color: #e5e5e5 !important; }
.dark .fi-sidebar-item-icon, .dark .fi-sidebar-group-label { color: #a3a3a3 !important; }
.dark .fi-sidebar-item-grouped-border-part { background: #333 !important; }
.dark .fi-sidebar-item-btn:hover { background: rgba(255, 255, 255, 0.06) !important; }

/* ---------- unsaved changes dialog (leave-guard.js) ---------- */
.fet-leave { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 1rem; }
.fet-leave-backdrop { position: absolute; inset: 0; background: rgba(9, 22, 15, 0.55); backdrop-filter: blur(2px); opacity: 0; transition: opacity 0.16s ease; }
.fet-leave-window {
    position: relative;
    width: min(28rem, 100%);
    padding: 1.75rem 1.75rem 1.5rem;
    border-radius: 1rem;
    background: #fff;
    color: #18181b;
    text-align: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
    border-top: 5px solid var(--fet-primary, #0a7d2c);
    opacity: 0;
    transform: translateY(10px) scale(0.97);
    transition: opacity 0.16s ease, transform 0.16s ease;
}
.fet-leave.is-open .fet-leave-backdrop { opacity: 1; }
.fet-leave.is-open .fet-leave-window { opacity: 1; transform: none; }
.fet-leave-icon {
    width: 3.25rem; height: 3.25rem; margin: 0 auto 0.9rem;
    display: grid; place-items: center;
    border-radius: 50%;
    background: #fef3c7; color: #b45309;
}
.fet-leave-icon svg { width: 1.7rem; height: 1.7rem; }
.fet-leave-window h2 { margin: 0 0 0.4rem; font-size: 1.15rem; font-weight: 700; }
.fet-leave-window p { margin: 0 0 1.4rem; font-size: 0.925rem; color: #52525b; line-height: 1.5; }
.fet-leave-actions { display: grid; gap: 0.55rem; }
.fet-leave-btn {
    width: 100%;
    padding: 0.65rem 1rem;
    border-radius: 0.6rem;
    border: 1px solid transparent;
    font: inherit; font-size: 0.9rem; font-weight: 600;
    cursor: pointer;
    transition: filter 0.15s, background-color 0.15s;
}
.fet-leave-btn:focus-visible { outline: 2px solid var(--fet-primary, #0a7d2c); outline-offset: 2px; }
.fet-leave-btn:disabled { opacity: 0.6; cursor: progress; }
.fet-leave-btn.is-primary { background: var(--fet-primary, #0a7d2c); color: var(--fet-on-primary, #fff); }
.fet-leave-btn.is-danger { background: #dc2626; color: #fff; }
.fet-leave-btn.is-danger-soft { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }
.fet-leave-btn.is-gray { background: #fff; color: #3f3f46; border-color: #e4e4e7; }
.fet-leave-btn:not(:disabled):hover { filter: brightness(0.95); }
.dark .fet-leave-window { background: #18181b; color: #f4f4f5; }
.dark .fet-leave-window p { color: #a1a1aa; }
.dark .fet-leave-icon { background: rgba(245, 158, 11, 0.15); color: #fbbf24; }
.dark .fet-leave-btn.is-gray { background: #27272a; color: #e4e4e7; border-color: #3f3f46; }
.dark .fet-leave-btn.is-danger-soft { background: rgba(220, 38, 38, 0.12); color: #fca5a5; border-color: rgba(220, 38, 38, 0.35); }
@media (prefers-reduced-motion: reduce) { .fet-leave-backdrop, .fet-leave-window { transition: none; } }

/* partnerships list: entity wide enough to read the name in one or two lines, and shorter rows (8+ per screen at 1366x900) */
.fi-ta-table th.fet-col-entity, .fi-ta-table td.fet-col-entity { min-width: 22rem; }
/* long names stop at two lines, the full name is in the tooltip */
.fi-ta-table td.fet-col-entity .fi-ta-text-item { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.fi-ta-table:has(.fet-col-entity) .fi-ta-text,
.fi-ta-table:has(.fet-col-entity) .fi-ta-icon { padding-top: 0.4rem; padding-bottom: 0.4rem; }
.fi-ta-table:has(.fet-col-entity) .fi-ta-text-description { font-size: 0.78rem; line-height: 1.25; }

/* credit requests: internal history */
.fet-credit-history { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.fet-credit-history li { border-left: 3px solid rgb(var(--primary-500, 22 101 52)); padding: 0.25rem 0 0.25rem 0.75rem; }
.fet-credit-history-meta { display: block; font-size: 0.8rem; opacity: 0.75; }
.fet-credit-history-note { margin: 0.35rem 0 0; white-space: pre-line; }

/* credit requests: documents checklist */
.fet-credit-docs table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.fet-credit-docs th, .fet-credit-docs td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid rgb(0 0 0 / 0.08); vertical-align: top; }
.fet-credit-docs th { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.03em; opacity: 0.75; }
.fet-credit-docs-summary { margin: 0 0 0.6rem; }
.fet-credit-docs .fet-ok { color: #15803d; font-weight: 600; }
.fet-credit-docs .fet-pending { color: #b45309; font-weight: 600; }
.fet-credit-docs .fet-muted { opacity: 0.6; }
/* review of the attachments: status and the «Revisar» button; the quick view in the modal */
.fet-credit-docs .fet-rejected { color: #b91c1c; font-weight: 600; }
.fet-review-btn { margin-left: 0.5rem; padding: 0.2rem 0.65rem; border-radius: 0.5rem; border: 1px solid rgb(0 0 0 / 0.18); background: #fff; font-size: 0.82rem; font-weight: 600; color: #0f5132; cursor: pointer; }
.fet-review-btn:hover, .fet-review-btn:focus-visible { background: #ecfdf3; border-color: #15803d; }
.dark .fet-review-btn { background: transparent; color: #86efac; border-color: rgb(255 255 255 / 0.2); }
.fet-file-preview { display: grid; gap: 0.6rem; }
.fet-file-preview-frame { width: 100%; height: 70vh; border: 1px solid rgb(0 0 0 / 0.12); border-radius: 0.5rem; background: #f8fafc; }
.fet-file-preview-image { max-width: 100%; max-height: 70vh; margin: 0 auto; border-radius: 0.5rem; box-shadow: 0 4px 18px rgb(0 0 0 / 0.12); }
.fet-file-preview-meta { font-size: 0.85rem; opacity: 0.85; }

/* «Gestión de asesoras» */
.fet-stats-filters { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.fet-stats-filters label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; font-weight: 600; }
.fet-stats-input { border: 1px solid rgb(209 213 219); border-radius: 0.5rem; padding: 0.4rem 0.6rem; background: #fff; color: inherit; }
.dark .fet-stats-input { background: rgb(31 41 55); border-color: rgb(75 85 99); }
.fet-stats-kpis { display: grid; gap: 0.75rem; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); }
.fet-stats-kpis > div { padding: 0.9rem 1rem; border-radius: 0.75rem; border: 1px solid rgb(229 231 235); background: #fff; font-size: 0.85rem; }
.dark .fet-stats-kpis > div { background: rgb(17 24 39); border-color: rgb(55 65 81); }
.fet-stats-kpis span { display: block; font-size: 1.6rem; font-weight: 800; }
.fet-stats-kpis .is-warning span { color: rgb(180 83 9); }
.fet-stats-scroll { overflow-x: auto; }
.fet-stats-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.fet-stats-table th, .fet-stats-table td { padding: 0.55rem 0.75rem; border-bottom: 1px solid rgb(229 231 235); text-align: right; white-space: nowrap; }
.fet-stats-table th[scope="row"], .fet-stats-table thead th:first-child { text-align: left; }
.fet-stats-table thead th { font-size: 0.75rem; text-transform: uppercase; color: rgb(107 114 128); }
.fet-stats-table .is-success { color: rgb(21 128 61); font-weight: 700; }
.fet-stats-table .is-danger { color: rgb(185 28 28); font-weight: 700; }
.fet-stats-help, .fet-stats-empty { margin-top: 1rem; font-size: 0.85rem; color: rgb(107 114 128); }
.fet-stats-subtitle { margin: 1.5rem 0 0.5rem; font-size: 0.85rem; font-weight: 700; }

/* banner video cropper (filament/forms/video-crop) */
.fet-video-crop { display: grid; gap: 0.6rem; }
.fet-video-crop-tools { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.fet-video-crop-tools button { padding: 0.3rem 0.75rem; border: 1px solid rgb(0 0 0 / 0.15); border-radius: 0.5rem; font-size: 0.8rem; font-weight: 600; background: #fff; color: #1f2937; }
.fet-video-crop-tools button[aria-pressed="true"] { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }
.fet-video-crop-tools .is-reset { margin-left: auto; }
.fet-video-crop-stage { position: relative; overflow: hidden; border-radius: 0.5rem; background: #000; line-height: 0; user-select: none; }
.fet-video-crop-stage video { display: block; width: 100%; height: auto; }
.fet-video-crop-box { position: absolute; border: 2px solid #fff; box-shadow: 0 0 0 9999px rgb(0 0 0 / 0.55); cursor: move; touch-action: none; }
.fet-video-crop-box:focus-visible { outline: 3px solid var(--primary-400); outline-offset: 2px; }
.fet-video-crop-handle { position: absolute; right: -8px; bottom: -8px; width: 16px; height: 16px; border: 2px solid #fff; border-radius: 50%; background: var(--primary-600); cursor: nwse-resize; touch-action: none; }
.fet-video-crop-note { margin: 0; font-size: 0.8125rem; opacity: 0.8; line-height: 1.5; }
.dark .fet-video-crop-tools button:not([aria-pressed="true"]) { background: rgb(255 255 255 / 0.05); border-color: rgb(255 255 255 / 0.15); color: inherit; }
.fet-video-crop-preview { display: grid; gap: 0.4rem; max-width: 36rem; }
.fet-video-crop-frame { position: relative; overflow: hidden; aspect-ratio: var(--crop-ratio); border-radius: 0.5rem; background: #000; }
.fet-video-crop-frame video { position: absolute; max-width: none; object-fit: cover; width: calc(100% / var(--crop-w)); height: auto; aspect-ratio: var(--crop-r);
    left: calc(-100% * var(--crop-x) / var(--crop-w)); top: 50%; transform: translateY(calc(-100% * (var(--crop-y) + var(--crop-h) / 2))); }
a.fet-stats-kpis-link, .fet-stats-kpis > a { display: block; padding: 0.9rem 1rem; border-radius: 0.75rem; border: 1px solid rgb(229 231 235); background: #fff; font-size: 0.85rem; color: inherit; text-decoration: none; }
.fet-stats-kpis > a:hover, .fet-stats-kpis > a:focus-visible { border-color: var(--primary-500); }
.dark .fet-stats-kpis > a { background: rgb(17 24 39); border-color: rgb(55 65 81); }
.fet-stats-two { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr)); }
/* «Mis cambios enviados» on the dashboard */
.fet-mychanges { margin: 0; padding: 0; list-style: none; display: grid; gap: 0.5rem; }
.fet-mychanges-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 1rem; padding: 0.6rem 0.85rem; border-radius: 0.6rem; border-left: 4px solid rgb(217 119 6); background: rgb(255 251 235); }
.fet-mychanges-item.is-approved { border-color: rgb(21 128 61); background: rgb(240 253 244); }
.fet-mychanges-item.is-rejected { border-color: rgb(185 28 28); background: rgb(254 242 242); }
.fet-mychanges-main { display: flex; flex-direction: column; min-width: 0; }
.fet-mychanges-title { font-weight: 700; color: inherit; }
a.fet-mychanges-title { text-decoration: underline; text-underline-offset: 2px; }
.fet-mychanges-meta, .fet-mychanges-reason { font-size: 0.82rem; color: rgb(82 82 91); }
.fet-mychanges-reason { color: rgb(153 27 27); }
.fet-mychanges-badge { flex: none; font-size: 0.8rem; font-weight: 700; }
.dark .fet-mychanges-item { background: rgb(69 26 3 / 0.4); }
.dark .fet-mychanges-item.is-approved { background: rgb(5 46 22 / 0.6); }
.dark .fet-mychanges-item.is-rejected { background: rgb(69 10 10 / 0.6); }
.dark .fet-mychanges-meta { color: rgb(161 161 170); }
.dark .fet-mychanges-reason { color: rgb(252 165 165); }

/* ===== Login: decoration around the form (Diseño › login_design: franja, foto, luz) ===== */
.fi-simple-layout:has(.fet-login-art) { position: relative; overflow: hidden; isolation: isolate; }
.fet-login-art { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.fet-login-kicker { margin: 0 0 .35rem; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .85; }
.fet-login-title { margin: 0; font-size: clamp(1.8rem, 3vw, 2.7rem); font-weight: 800; line-height: 1.1; letter-spacing: -.02em; }
.fet-login-text { margin: .9rem 0 0; max-width: 26rem; font-size: 1.02rem; line-height: 1.55; opacity: .9; }
.fet-login-tag { margin: 0; font-weight: 800; font-size: 1.1rem; color: var(--fet-accent, #ffc20e); }
.fet-login-art .fi-simple-main, .fi-simple-layout:has(.fet-login-art) .fi-simple-main { animation: fet-login-in .7s cubic-bezier(.22,.61,.36,1) both; }
@keyframes fet-login-in { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

/* A · franja: green panel on the left, form on the right */
@media (min-width: 1024px) {
    .fi-simple-layout:has(.fet-login-franja) .fi-simple-main-ctn { padding-left: 46vw; }
}
.fet-login-franja .fet-login-panel { position: absolute; inset: 0 auto 0 0; width: 46vw; display: flex; flex-direction: column; justify-content: space-between; padding: 3rem 3.5rem; color: #fff; overflow: hidden;
    background: radial-gradient(120% 90% at 0% 0%, var(--fet-primary, #087f23) 0%, var(--fet-primary-dark, #05631a) 60%, #033d10 100%); }
.fet-login-franja .fet-login-logo { position: relative; height: 3.2rem; width: auto; align-self: flex-start; filter: brightness(0) invert(1); animation: fet-login-rise .8s .1s cubic-bezier(.22,.61,.36,1) both; }
.fet-login-franja .fet-login-copy { position: relative; animation: fet-login-rise .8s .25s cubic-bezier(.22,.61,.36,1) both; }
.fet-login-franja .fet-login-tag { position: relative; animation: fet-login-rise .8s .4s cubic-bezier(.22,.61,.36,1) both; }
.fet-login-stripes { position: absolute; right: -14%; top: -20%; width: 70%; height: 140%; transform: rotate(18deg); display: flex; gap: 1.4rem; opacity: .9; }
.fet-login-stripes span { flex: 1; border-radius: 2rem; animation: fet-login-slide 9s ease-in-out infinite alternate; }
.fet-login-stripes span:nth-child(1) { background: rgb(255 255 255 / .08); }
.fet-login-stripes span:nth-child(2) { background: rgb(160 190 40 / .35); animation-delay: -3s; }
.fet-login-stripes span:nth-child(3) { background: rgb(255 194 14 / .55); animation-delay: -6s; }
@keyframes fet-login-slide { from { transform: translateY(-4%); } to { transform: translateY(4%); } }
@keyframes fet-login-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 1023.98px) {
    .fet-login-franja .fet-login-panel { position: relative; width: 100%; padding: 1.75rem 1.5rem 2.5rem; min-height: 15rem; }
    .fi-simple-layout:has(.fet-login-franja) { display: flex; flex-direction: column; }
    .fi-simple-layout:has(.fet-login-franja) .fet-login-art { position: relative; z-index: 0; width: 100%; align-self: stretch; }
    .fi-simple-layout:has(.fet-login-franja) .fi-simple-main-ctn { margin-top: -2rem; position: relative; z-index: 1; }
    .fet-login-franja .fet-login-text { display: none; }
}

/* B · foto: a photo of the site behind, the form as frosted glass */
.fet-login-foto .fet-login-photo { position: absolute; inset: -20px; background: var(--fet-primary-dark, #05631a) center / cover no-repeat; filter: blur(6px) saturate(1.1); animation: fet-login-zoom 24s ease-in-out infinite alternate; }
.fet-login-foto .fet-login-shade { position: absolute; inset: 0; background: linear-gradient(115deg, rgb(3 40 12 / .94) 0%, rgb(4 70 20 / .82) 50%, rgb(0 0 0 / .6) 100%); }
.fet-login-foto .fet-login-caption { position: absolute; left: clamp(1.5rem, 5vw, 4.5rem); bottom: clamp(1.5rem, 6vh, 4rem); max-width: 30rem; color: #fff; animation: fet-login-rise .9s .2s cubic-bezier(.22,.61,.36,1) both; }
.fi-simple-layout:has(.fet-login-foto) .fi-simple-main { background: rgb(255 255 255 / .9); backdrop-filter: blur(14px); box-shadow: 0 30px 70px rgb(0 0 0 / .35); }
@media (min-width: 1024px) { .fi-simple-layout:has(.fet-login-foto) .fi-simple-main-ctn { justify-content: flex-end; padding-right: 7vw; } }
@media (max-width: 1023.98px) { .fet-login-foto .fet-login-caption { display: none; } }
@keyframes fet-login-zoom { from { transform: scale(1); } to { transform: scale(1.08); } }

/* C · luz: light background, soft brand shapes floating, a thin stripe on the card */
.fet-login-luz { background: linear-gradient(160deg, #f6faf4 0%, #eef5ec 100%); }
.fet-login-luz .fet-login-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: fet-login-float 16s ease-in-out infinite alternate; }
.fet-login-luz .is-one { width: 34rem; height: 34rem; left: -8rem; top: -10rem; background: var(--fet-primary, #087f23); opacity: .28; }
.fet-login-luz .is-two { width: 26rem; height: 26rem; right: -6rem; bottom: -8rem; background: var(--fet-accent, #ffc20e); animation-delay: -5s; }
.fet-login-luz .is-three { width: 18rem; height: 18rem; right: 18%; top: 12%; background: #9cbf2b; opacity: .35; animation-delay: -10s; }
.fet-login-luz .fet-login-grid { position: absolute; inset: 0; background-image: radial-gradient(rgb(5 99 26 / .12) 1px, transparent 1px); background-size: 22px 22px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.fet-login-luz .fet-login-greeting { position: absolute; left: 0; right: 0; bottom: 1.5rem; margin: 0; text-align: center; font-size: .9rem; color: rgb(5 60 20 / .75); }
.fi-simple-layout:has(.fet-login-luz) .fi-simple-main { position: relative; overflow: hidden; box-shadow: 0 24px 60px rgb(5 60 20 / .14); }
.fi-simple-layout:has(.fet-login-luz) .fi-simple-main::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 5px;
    background: linear-gradient(90deg, var(--fet-primary-dark, #05631a) 0 40%, var(--fet-primary, #087f23) 40% 65%, #9cbf2b 65% 82%, var(--fet-accent, #ffc20e) 82% 100%); }
@keyframes fet-login-float { from { transform: translate(0, 0) scale(1); } to { transform: translate(3rem, 2rem) scale(1.1); } }

.dark .fet-login-luz { background: linear-gradient(160deg, #0d1a10 0%, #10140f 100%); }
.dark .fet-login-luz .fet-login-greeting { color: rgb(220 240 220 / .7); }
.dark .fi-simple-layout:has(.fet-login-foto) .fi-simple-main { background: rgb(24 24 27 / .88); }
/* D · diagonal (identity 2026): the green panel cut on a diagonal with a yellow edge, like the tab of the site header;
   Barlow Condensed titles, the areas of the panel, #YoSoyFET; cream side with a soft dot grid; «diagonal-foto» adds a green photo */
.fet-login-diagonal { --panel: 46vw; --cut: 5.5rem; --edge: .6rem; }
@media (min-width: 1024px) {
    .fi-simple-layout:has(.fet-login-diagonal) .fi-simple-main-ctn { padding-left: calc(var(--panel, 46vw) - 2rem); }
}
.fet-login-diagonal .fet-login-side { position: absolute; inset: 0; background: var(--fet-surface, #f5f5e6);
    background-image: radial-gradient(rgb(15 102 53 / .13) 1.2px, transparent 1.2px); background-size: 20px 20px; }
.fet-login-diagonal .fet-login-side::after { content: ''; position: absolute; right: -4rem; bottom: -4rem; width: 20rem; height: 20rem; background: var(--fet-accent, #fedc03); opacity: .18; clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.fet-login-diagonal .fet-login-panel, .fet-login-diagonal .fet-login-edge { position: absolute; inset: 0 auto 0 0; clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%); }
/* the yellow edge along the cut: a yellow layer a bit wider behind the panel */
.fet-login-diagonal .fet-login-edge { width: calc(var(--panel) + var(--edge)); background: var(--fet-accent, #fedc03); }
.fet-login-diagonal .fet-login-panel { width: var(--panel); display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
    padding: 3rem calc(var(--cut) + 2rem) 2.75rem 3.5rem; color: #fff; overflow: hidden;
    background: radial-gradient(120% 90% at 0% 0%, var(--fet-primary, #0f6635) 0%, var(--fet-secondary, #1b4c24) 62%, #0b2c13 100%); }
.fet-login-diagonal .fet-login-panel-photo { position: absolute; inset: 0; background: center / cover no-repeat; filter: grayscale(1) contrast(1.15) blur(3px); mix-blend-mode: luminosity; opacity: .16; transform: scale(1.05); }
.fet-login-diagonal .fet-login-stripes { right: -24%; opacity: .5; }
.fet-login-diagonal .fet-login-logo { position: relative; height: 5.5rem; width: auto; align-self: flex-start; animation: fet-login-rise .8s .1s cubic-bezier(.22,.61,.36,1) both; }
.fet-login-diagonal .fet-login-copy { position: relative; animation: fet-login-rise .8s .25s cubic-bezier(.22,.61,.36,1) both; }
.fet-login-diagonal .fet-login-kicker { display: flex; align-items: center; gap: .6rem; }
.fet-login-bar { display: inline-flex; gap: 3px; }
.fet-login-bar i { display: block; width: 1.1rem; height: 4px; border-radius: 2px; background: #fff; }
.fet-login-bar i:nth-child(2) { background: #9cbf2b; }
.fet-login-bar i:nth-child(3) { background: var(--fet-accent, #fedc03); width: .6rem; }
.fet-login-diagonal .fet-login-title { font-family: var(--fet-font-heading, inherit); font-size: clamp(2.6rem, 4.6vw, 4.4rem); font-weight: 800; line-height: .95; letter-spacing: -.01em; text-transform: uppercase; }
.fet-login-diagonal .fet-login-title span { display: block; color: var(--fet-accent, #fedc03); }
.fet-login-sub { margin: .85rem 0 0; font-size: 1.05rem; letter-spacing: .02em; opacity: .85; }
.fet-login-quote { position: relative; margin: 2.25rem 0 0; max-width: 27rem; padding: 1.1rem 0 0 1.35rem; border-left: 3px solid var(--fet-accent, #fedc03);
    animation: fet-login-rise .8s .5s cubic-bezier(.22,.61,.36,1) both; }
.fet-login-quote::before { content: '\201C'; position: absolute; left: 1rem; top: -1.6rem; font-family: Georgia, 'Times New Roman', serif; font-size: 4.5rem; line-height: 1; color: var(--fet-accent, #fedc03); opacity: .9; }
.fet-login-quote blockquote { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.4; }
.fet-login-quote figcaption { margin-top: .7rem; font-size: .82rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85; }
.fet-login-quote figcaption strong { display: block; font-size: .9rem; letter-spacing: .04em; color: var(--fet-accent, #fedc03); }
.fet-login-areas { list-style: none; margin: 1.6rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; max-width: 30rem; }
.fet-login-areas li { display: inline-flex; align-items: center; gap: .45rem; padding: .4rem .8rem; border-radius: 999px; font-size: .88rem; font-weight: 600;
    background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .22); animation: fet-login-rise .7s cubic-bezier(.22,.61,.36,1) both; }
.fet-login-areas li:nth-child(1) { animation-delay: .45s; }
.fet-login-areas li:nth-child(2) { animation-delay: .55s; }
.fet-login-areas li:nth-child(3) { animation-delay: .65s; }
.fet-login-areas li:nth-child(4) { animation-delay: .75s; }
.fet-login-areas i { color: var(--fet-accent, #fedc03); }
.fet-login-foot { position: relative; display: flex; flex-direction: column; gap: .5rem; animation: fet-login-rise .8s .5s cubic-bezier(.22,.61,.36,1) both; }
.fet-login-hashtag { height: 3rem; width: auto; align-self: flex-start; }
.fet-login-legal { margin: 0; font-size: .78rem; opacity: .75; }
/* the form: a card with the stripes of the identity on top */
.fi-simple-layout:has(.fet-login-diagonal) .fi-simple-main { position: relative; overflow: hidden; border-radius: 1.1rem; box-shadow: 0 30px 70px rgb(11 44 19 / .16), 0 2px 6px rgb(11 44 19 / .06); }
.fi-simple-layout:has(.fet-login-diagonal) .fi-simple-main::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 6px;
    background: linear-gradient(90deg, var(--fet-secondary, #1b4c24) 0 45%, var(--fet-primary, #0f6635) 45% 70%, #9cbf2b 70% 86%, var(--fet-accent, #fedc03) 86% 100%); }
.fi-simple-layout:has(.fet-login-diagonal) .fi-simple-header-heading { font-family: var(--fet-font-heading, inherit); font-size: 1.9rem; text-transform: uppercase; letter-spacing: .01em; }
@media (max-width: 1023.98px) {
    .fet-login-diagonal { --panel: 100%; --cut: 0px; }
    .fi-simple-layout:has(.fet-login-diagonal) { display: flex; flex-direction: column; }
    .fi-simple-layout:has(.fet-login-diagonal) .fet-login-art { position: relative; z-index: 0; width: 100%; align-self: stretch; }
    .fet-login-diagonal .fet-login-side { position: fixed; z-index: -1; }
    .fet-login-diagonal .fet-login-edge { display: none; }
    .fet-login-diagonal .fet-login-panel { position: relative; width: 100%; padding: 1.75rem 1.5rem 4.5rem; gap: 1.25rem;
        clip-path: polygon(0 0, 100% 0, 100% calc(100% - 3rem), 0 100%); }
    .fet-login-diagonal .fet-login-logo { height: 3.6rem; }
    .fet-login-diagonal .fet-login-title { font-size: 2.4rem; }
    .fet-login-diagonal .fet-login-title span { display: inline; }
    .fet-login-diagonal .fet-login-title { font-size: 2.1rem; }
    .fet-login-areas, .fet-login-legal, .fet-login-sub { display: none; }
    .fet-login-quote { margin-top: 1rem; padding-top: .2rem; }
    .fet-login-quote::before { display: none; }
    .fet-login-quote blockquote { font-size: 1rem; }
    .fet-login-quote figcaption { margin-top: .35rem; font-size: .7rem; }
    .fet-login-quote figcaption strong { display: inline; margin-right: .35rem; font-size: .75rem; }
    .fet-login-diagonal .fet-login-foot { position: absolute; right: 1.5rem; top: 2.1rem; }
    .fet-login-hashtag { height: 1.4rem; }
    .fi-simple-layout:has(.fet-login-diagonal) .fi-simple-main-ctn { margin-top: -2.5rem; position: relative; z-index: 1; }
}
.dark .fet-login-diagonal .fet-login-side { background-color: #0f1611; background-image: radial-gradient(rgb(220 240 220 / .08) 1.2px, transparent 1.2px); }
@media (prefers-reduced-motion: reduce) {
    .fet-login-art *, .fi-simple-layout:has(.fet-login-art) .fi-simple-main { animation: none !important; }
}
/* «Legal» */
.fet-legal-items { margin: 0; padding: 0; list-style: none; display: grid; gap: .75rem; }
.fet-legal-item { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 1.5rem; padding: 1rem 1.1rem; border: 1px solid rgb(229 231 235); border-radius: .75rem; background: #fff; }
.dark .fet-legal-item { background: rgb(24 24 27); border-color: rgb(63 63 70); }
.fet-legal-title { margin: 0; font-weight: 700; }
.fet-legal-summary { margin: .25rem 0 0; font-size: .88rem; color: rgb(82 82 91); max-width: 60ch; }
.fet-legal-meta { margin: .25rem 0 0; font-size: .8rem; color: rgb(113 113 122); }
.fet-legal-badge { margin-left: .4rem; padding: .1rem .5rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgb(244 244 245); color: rgb(82 82 91); }
.fet-legal-badge.is-on { background: rgb(220 252 231); color: rgb(21 128 61); }
.fet-legal-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.fet-legal-btn { padding: .4rem .8rem; border-radius: .5rem; border: 1px solid rgb(212 212 216); font-size: .85rem; font-weight: 600; text-decoration: none; color: inherit; }
.fet-legal-btn.is-primary { background: var(--primary-600); border-color: var(--primary-600); color: #fff; }

/* credit desk: the portal screens for new students inside the panel */
.fet-desk-frame { display: block; width: 100%; height: calc(100vh - 12rem); min-height: 36rem; border: 1px solid rgb(229 231 235); border-radius: .75rem; background: #fff; }
.dark .fet-desk-frame { border-color: rgb(55 65 81); }

/* analytics of the credit area («Gestión de asesoras»): bars and columns made with plain css, readable in light and dark */
.fet-stats-kpis b { font-weight: 700; }
.fet-bars { list-style: none; margin: 0.25rem 0 0; padding: 0; display: grid; gap: 0.45rem; }
.fet-bars-row { display: grid; grid-template-columns: minmax(8rem, 15rem) 1fr 2.5rem; align-items: center; gap: 0.75rem; font-size: 0.85rem; }
.fet-bars-label { line-height: 1.25; overflow-wrap: anywhere; }
.fet-bars-label small { display: block; opacity: 0.7; font-size: 0.75rem; }
.fet-bars-track { display: flex; height: 1.15rem; border-radius: 0.35rem; background: rgb(15 102 53 / 0.08); overflow: hidden; }
.fet-bars-track i, .fet-cols-bar i { display: block; height: 100%; }
.fet-bars-value { font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.fet-bars .is-main, .fet-cols .is-new, .fet-legend .is-new { background: #0f6635; }
.fet-cols .is-returning, .fet-legend .is-returning { background: #9cbf2b; }
.fet-bars .is-success, .fet-legend .is-success { background: #0f6635; }
.fet-bars .is-open, .fet-legend .is-open { background: #d4b800; }
.fet-bars .is-danger, .fet-legend .is-danger { background: #b91c1c; }
.fet-bars .is-void, .fet-legend .is-void { background: #9ca3af; }
.fet-cols { display: grid; grid-template-columns: repeat(var(--cols), minmax(1.6rem, 1fr)); gap: 0.4rem; align-items: end; height: 13rem; padding-top: 1.2rem; }
.fet-cols-item { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; min-width: 0; text-align: center; }
.fet-cols-bar { display: flex; flex-direction: column; border-radius: 0.3rem 0.3rem 0 0; overflow: hidden; min-height: 2px; }
.fet-cols-bar i { height: auto; }
.fet-cols-total { font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.fet-cols-label { font-size: 0.68rem; line-height: 1.1; margin-top: 0.25rem; opacity: 0.75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fet-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 1rem; margin: 0.6rem 0 0; font-size: 0.78rem; opacity: 0.85; }
.fet-legend span { display: inline-block; width: 0.8rem; height: 0.8rem; border-radius: 0.2rem; margin-right: -0.55rem; }
.dark .fet-bars-track { background: rgb(255 255 255 / 0.08); }
.dark .fet-bars .is-main, .dark .fet-cols .is-new, .dark .fet-legend .is-new, .dark .fet-bars .is-success, .dark .fet-legend .is-success { background: #3fb565; }
.dark .fet-bars .is-danger, .dark .fet-legend .is-danger { background: #ef6a6a; }
@media (max-width: 40rem) { .fet-bars-row { grid-template-columns: 1fr 2.5rem; } .fet-bars-track { grid-column: 1 / -1; grid-row: 2; } .fet-cols { height: 10rem; } }
.fet-stats-kpis > div > span { white-space: nowrap; }
.fet-cols { overflow-x: auto; }
@media (max-width: 40rem) { .fet-cols { grid-template-columns: repeat(var(--cols), minmax(2.2rem, 1fr)); } }
/* contrast AA on the light panel background (axe, QA 21-nov-2026): breadcrumbs and outlined danger buttons */
html:not(.dark) .fi-breadcrumbs-item-label { color: rgb(82 82 82); }
html:not(.dark) .fi-btn.fi-outlined.fi-color-danger { color: rgb(193 0 7); }
html:not(.dark) .fi-ta-placeholder, html:not(.dark) .fi-in-placeholder { color: rgb(82 82 82); }
