/* ==========================================================================
   DelegatePortal — Animated Advanced Educational Ecosystem Portal CSS
   Choreographed entrance, live telemetry pulses, SVG light paths,
   animated main feature spotlight, & synced role interactions
   ========================================================================== */

:root {
    --font-display: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;

    --ed-bg-top: #f2f8f6;
    --ed-bg-bot: #ffffff;
    --ed-surface: #ffffff;
    --ed-surface-soft: #f8fafc;
    --ed-surface-muted: #f1f5f9;
    --ed-border: #e2e8f0;
    --ed-border-strong: #cbd5e1;

    --ed-ink: #0f172a;
    --ed-ink-2: #334155;
    --ed-muted: #64748b;
    --ed-subtle: #94a3b8;

    --ed-danger-bg: #fef2f2;
    --ed-danger-border: #fecaca;
    --ed-danger-txt: #b91c1c;
    --ed-success-bg: #ecfdf5;
    --ed-success-border: #a7f3d0;
    --ed-success-txt: #047857;

    /* Default Role Palette (Admin — Emerald) */
    --role-primary: #059669;
    --role-primary-dark: #047857;
    --role-light: #ecfdf5;
    --role-mid: #d1fae5;
    --role-border: #6ee7b7;
    --role-ring: rgba(5, 150, 105, 0.16);
    --role-shadow: rgba(5, 150, 105, 0.28);
    --role-aura: rgba(16, 185, 129, 0.11);
    --role-rgb: 5, 150, 105;
}

/* 7 Distinct Bright Educational Role Themes */
body[data-role="super_admin"] {
    --role-primary: #7c3aed;
    --role-primary-dark: #6d28d9;
    --role-light: #f5f3ff;
    --role-mid: #ede9fe;
    --role-border: #c4b5fd;
    --role-ring: rgba(124, 58, 237, 0.16);
    --role-shadow: rgba(124, 58, 237, 0.28);
    --role-aura: rgba(124, 58, 237, 0.10);
    --role-rgb: 124, 58, 237;
}

body[data-role="admin"] {
    --role-primary: #059669;
    --role-primary-dark: #047857;
    --role-light: #ecfdf5;
    --role-mid: #d1fae5;
    --role-border: #6ee7b7;
    --role-ring: rgba(5, 150, 105, 0.16);
    --role-shadow: rgba(5, 150, 105, 0.28);
    --role-aura: rgba(16, 185, 129, 0.11);
    --role-rgb: 5, 150, 105;
}

body[data-role="teacher"] {
    --role-primary: #2563eb;
    --role-primary-dark: #1d4ed8;
    --role-light: #eff6ff;
    --role-mid: #dbeafe;
    --role-border: #93c5fd;
    --role-ring: rgba(37, 99, 235, 0.16);
    --role-shadow: rgba(37, 99, 235, 0.28);
    --role-aura: rgba(37, 99, 235, 0.10);
    --role-rgb: 37, 99, 235;
}

body[data-role="parent"] {
    --role-primary: #d97706;
    --role-primary-dark: #b45309;
    --role-light: #fffbeb;
    --role-mid: #fef3c7;
    --role-border: #fcd34d;
    --role-ring: rgba(217, 119, 6, 0.16);
    --role-shadow: rgba(217, 119, 6, 0.28);
    --role-aura: rgba(217, 119, 6, 0.10);
    --role-rgb: 217, 119, 6;
}

body[data-role="student"] {
    --role-primary: #0891b2;
    --role-primary-dark: #0e7490;
    --role-light: #ecfeff;
    --role-mid: #cffafe;
    --role-border: #67e8f9;
    --role-ring: rgba(8, 145, 178, 0.16);
    --role-shadow: rgba(8, 145, 178, 0.28);
    --role-aura: rgba(8, 145, 178, 0.10);
    --role-rgb: 8, 145, 178;
}

body[data-role="staff"] {
    --role-primary: #0d9488;
    --role-primary-dark: #0f766e;
    --role-light: #f0fdfa;
    --role-mid: #ccfbf1;
    --role-border: #5eead4;
    --role-ring: rgba(13, 148, 136, 0.16);
    --role-shadow: rgba(13, 148, 136, 0.28);
    --role-aura: rgba(13, 148, 136, 0.10);
    --role-rgb: 13, 148, 136;
}

body[data-role="accountant"] {
    --role-primary: #e11d48;
    --role-primary-dark: #be123c;
    --role-light: #fff1f2;
    --role-mid: #ffe4e6;
    --role-border: #fda4af;
    --role-ring: rgba(225, 29, 72, 0.15);
    --role-shadow: rgba(225, 29, 72, 0.26);
    --role-aura: rgba(225, 29, 72, 0.09);
    --role-rgb: 225, 29, 72;
}

/* Per-Tab Distinct Bright Color Tokens */
[data-tab-role="super_admin"] { --t-c: #7c3aed; --t-d: #6d28d9; --t-bg: #f5f3ff; --t-bd: #c4b5fd; --t-sh: rgba(124, 58, 237, 0.24); }
[data-tab-role="admin"]       { --t-c: #059669; --t-d: #047857; --t-bg: #ecfdf5; --t-bd: #6ee7b7; --t-sh: rgba(5, 150, 105, 0.24); }
[data-tab-role="teacher"]     { --t-c: #2563eb; --t-d: #1d4ed8; --t-bg: #eff6ff; --t-bd: #93c5fd; --t-sh: rgba(37, 99, 235, 0.24); }
[data-tab-role="parent"]      { --t-c: #d97706; --t-d: #b45309; --t-bg: #fffbeb; --t-bd: #fcd34d; --t-sh: rgba(217, 119, 6, 0.24); }
[data-tab-role="student"]     { --t-c: #0891b2; --t-d: #0e7490; --t-bg: #ecfeff; --t-bd: #67e8f9; --t-sh: rgba(8, 145, 178, 0.24); }
[data-tab-role="staff"]       { --t-c: #0d9488; --t-d: #0f766e; --t-bg: #f0fdfa; --t-bd: #5eead4; --t-sh: rgba(13, 148, 136, 0.24); }

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html, body {
    min-height: 100%;
    font-family: var(--font-body);
    color: var(--ed-ink);
    background: var(--ed-bg-top);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   Entrance Keyframes & Modern Kinetic Motion
   ========================================================================== */
@keyframes ecoEnterDown {
    from { opacity: 0; transform: translateY(-10px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ecoKineticReveal {
    from { opacity: 0; filter: blur(6px); transform: translateY(12px); }
    to   { opacity: 1; filter: blur(0); transform: translateY(0); }
}

@keyframes ecoEnterUp {
    from { opacity: 0; transform: translateY(14px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes ecoScaleReveal {
    from { opacity: 0; transform: scale(0.98) translateY(10px); }
    to   { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes ecoTextSheen {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

@keyframes ecoAuraDrift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    50%      { transform: translate(18px, -12px) scale(1.06); }
}

@keyframes ecoFloatSoft {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-4px); }
}

@keyframes ecoPulseRing {
    0%   { box-shadow: 0 0 0 0 rgba(var(--role-rgb), 0.45); }
    70%  { box-shadow: 0 0 0 8px rgba(var(--role-rgb), 0); }
    100% { box-shadow: 0 0 0 0 rgba(var(--role-rgb), 0); }
}

@keyframes ecoDomeBeacon {
    0%   { transform: scale(0.75); opacity: 0.72; }
    70%  { transform: scale(1.9); opacity: 0.08; }
    100% { transform: scale(2.2); opacity: 0; }
}

@keyframes ecoGlassSweep {
    0%   { transform: translateX(-140%) skewX(-20deg); opacity: 0; }
    15%  { opacity: 0.55; }
    45%  { transform: translateX(220%) skewX(-20deg); opacity: 0; }
    100% { transform: translateX(220%) skewX(-20deg); opacity: 0; }
}

@keyframes ecoCometTrail {
    0%   { stroke-dashoffset: 320; opacity: 0; }
    15%  { opacity: 0.95; }
    75%  { opacity: 0.95; }
    100% { stroke-dashoffset: -120; opacity: 0; }
}

@keyframes ecoUnderlineDraw {
    from { transform: scaleX(0); opacity: 0.3; }
    to   { transform: scaleX(1); opacity: 1; }
}

@keyframes ecoSignalWave {
    0%, 100% { transform: scaleY(0.38); opacity: 0.65; }
    50%      { transform: scaleY(1); opacity: 1; }
}

@keyframes ecoShimmerSweep {
    0%   { left: -120%; }
    60%  { left: 140%; }
    100% { left: 140%; }
}

@keyframes ecoProgressFill {
    from { transform: scaleX(0); }
    to   { transform: scaleX(1); }
}

@keyframes ecoOrbitSpin {
    from { transform: translate(-50%, -50%) rotate(0deg); }
    to   { transform: translate(-50%, -50%) rotate(360deg); }
}

@keyframes ecoOrbitSpinRev {
    from { transform: translate(-50%, -50%) rotate(360deg); }
    to   { transform: translate(-50%, -50%) rotate(0deg); }
}

@keyframes ecoNodeFloatA {
    0%, 100% { transform: translate3d(0, 0px, 0); }
    50%      { transform: translate3d(0, -5px, 0); }
}

@keyframes ecoNodeFloatB {
    0%, 100% { transform: translate3d(0, 0px, 0); }
    50%      { transform: translate3d(0, 5px, 0); }
}

@keyframes ecoTabPing {
    0%   { transform: scale(1); opacity: 0.75; }
    75%  { transform: scale(2.1); opacity: 0; }
    100% { transform: scale(2.1); opacity: 0; }
}

@property --eco-glow-angle {
    syntax: '<angle>';
    inherits: false;
    initial-value: 0deg;
}

@keyframes ecoGlowSpin {
    from { --eco-glow-angle: 0deg; }
    to   { --eco-glow-angle: 360deg; }
}

@keyframes ecoCircuitFlow {
    from { stroke-dashoffset: 44; }
    to   { stroke-dashoffset: 0; }
}

@keyframes ecoChipSpringIn {
    from { opacity: 0; filter: blur(4px); transform: translateY(8px) scale(0.97); }
    to   { opacity: 1; filter: blur(0); transform: translateY(0) scale(1); }
}

@keyframes ecoArrowGlide {
    0%, 100% { transform: translateX(0); opacity: 0.7; }
    50%      { transform: translateX(3px); opacity: 1; }
}

/* ==========================================================================
   Panoramic Luminous Campus Canvas
   ========================================================================== */
.eco-page {
    position: relative;
    min-height: 100dvh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow-x: clip;
    background:
        radial-gradient(ellipse 68% 52% at 16% 14%, var(--role-aura) 0%, transparent 66%),
        radial-gradient(ellipse 56% 52% at 88% 16%, rgba(var(--role-rgb), 0.06) 0%, transparent 62%),
        linear-gradient(162deg, #f3f7fa 0%, #f8fbfd 50%, #ffffff 100%);
}

/* Subtle campus architectural dot grid */
.eco-page::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: radial-gradient(rgba(15, 23, 42, 0.055) 1px, transparent 1px);
    background-size: 24px 24px;
    mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, black 35%, transparent 90%);
    -webkit-mask-image: radial-gradient(ellipse 85% 80% at 50% 45%, black 35%, transparent 90%);
    pointer-events: none;
    z-index: 0;
}

/* Drifting Ambient Glow Orb */
.eco-ambient-orb {
    position: fixed;
    width: 520px;
    height: 520px;
    top: -160px;
    left: 10%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--role-rgb), 0.14) 0%, transparent 70%);
    filter: blur(46px);
    pointer-events: none;
    z-index: 0;
    animation: ecoAuraDrift 12s ease-in-out infinite;
}

/* ==========================================================================
   Top Institutional Ecosystem Bar
   ========================================================================== */
.eco-topbar {
    position: relative;
    z-index: 3;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 9px 28px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    animation: ecoEnterDown 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.eco-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    flex-shrink: 0;
}

.eco-brand-logo {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.07);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3px;
    transition: transform 0.25s ease;
}

.eco-brand:hover .eco-brand-logo {
    transform: scale(1.05) rotate(-2deg);
}

.eco-brand-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 7px;
}

.eco-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.12;
}

.eco-brand-name {
    font-family: var(--font-display);
    font-size: 16.5px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ed-ink);
}

.eco-brand-name span {
    color: var(--role-primary);
}

.eco-brand-tag {
    font-size: 10.5px;
    font-weight: 600;
    color: var(--ed-muted);
    margin-top: 1px;
}

.eco-topbar-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.eco-top-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid var(--ed-border);
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
    font-size: 12px;
    font-weight: 600;
    color: var(--ed-ink-2);
    text-decoration: none;
    transition: all 0.2s ease;
}

.eco-top-pill[data-mini-role="staff"] i { color: #0d9488; }
.eco-top-pill[data-mini-role="accountant"] i { color: #e11d48; }
.eco-top-pill.eco-top-support i { color: var(--role-primary); }

.eco-top-pill:hover {
    background: #ffffff;
    border-color: var(--role-border);
    color: var(--role-primary-dark);
    transform: translateY(-1.5px);
    box-shadow: 0 6px 14px -4px var(--role-shadow);
}

.eco-top-pill.active {
    background: var(--role-primary);
    border-color: var(--role-primary);
    color: #ffffff;
}

.eco-top-pill.active i {
    color: #ffffff;
}

/* ==========================================================================
   Main Panoramic Grid
   ========================================================================== */
.eco-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1360px;
    margin: auto;
    padding: clamp(4px, 0.9vh, 14px) 28px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(420px, 448px);
    align-items: center;
    gap: clamp(18px, 2vw, 28px);
}

/* ==========================================================================
   LEFT — Animated Living Campus Ecosystem
   ========================================================================== */
.eco-campus-world {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    perspective: 1200px;
}

.eco-world-header {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-top: 20px;
    margin-bottom: 6px;
}

.eco-world-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    width: fit-content;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--role-border);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
    font-family: var(--font-display);
    font-size: 10.2px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--role-primary-dark);
    animation: ecoKineticReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.04s both;
}

.eco-world-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--role-primary);
    animation: ecoPulseRing 2.2s infinite;
}

.eco-world-header h2 {
    font-family: var(--font-display);
    font-size: clamp(20px, 1.85vw, 25px);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.15;
    color: var(--ed-ink);
    animation: ecoKineticReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.12s both;
}

.eco-world-header h2 span {
    position: relative;
    display: inline-block;
    background: linear-gradient(100deg, var(--role-primary) 0%, var(--role-primary-dark) 45%, var(--role-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: ecoTextSheen 6s ease-in-out infinite;
}

.eco-world-header h2 span::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 2.5px;
    border-radius: 99px;
    background: linear-gradient(90deg, var(--role-primary), transparent);
    transform-origin: left center;
    animation: ecoUnderlineDraw 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.eco-world-header p {
    font-size: 12.6px;
    line-height: 1.38;
    color: var(--ed-ink-2);
    max-width: 640px;
    animation: ecoKineticReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.2s both;
    transition: opacity 0.22s ease, transform 0.22s ease;
}

.eco-world-header.morphing h2,
.eco-world-header.morphing p {
    opacity: 0.45;
    transform: translateY(-2px);
}

.eco-world-header h2 {
    transition: opacity 0.22s ease, transform 0.22s ease;
}

/* ==========================================================================
   DELEGATE ERP — Interactive Animated Product Showcase Console
   ========================================================================== */
.eco-erp-frame {
    --px: 0px;
    --py: 0px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    margin-top: 2px;
    margin-bottom: 14px;
    padding: 15px 17px 13px;
    border-radius: 22px;
    background:
        radial-gradient(ellipse 68% 58% at 88% 8%, rgba(var(--role-rgb), 0.08) 0%, transparent 66%),
        radial-gradient(ellipse 46% 42% at 12% 18%, rgba(124, 58, 237, 0.04) 0%, transparent 65%),
        linear-gradient(155deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 253, 252, 0.92) 60%, rgba(var(--role-rgb), 0.04) 100%);
    border: 1px solid rgba(var(--role-rgb), 0.14);
    box-shadow:
        0 20px 48px -20px rgba(15, 42, 36, 0.14),
        0 4px 16px -4px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    overflow: hidden;
    min-height: 0;
    transform-style: preserve-3d;
    transition: transform 0.36s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.36s ease;
    animation: ecoScaleReveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.16s both, ecoGlowSpin 12s linear infinite;
}

.eco-erp-frame:hover {
    box-shadow:
        0 34px 74px -18px rgba(15, 42, 36, 0.20),
        0 0 0 1px rgba(var(--role-rgb), 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 1);
}

.eco-erp-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(to right, rgba(var(--role-rgb), 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(var(--role-rgb), 0.04) 1px, transparent 1px),
        radial-gradient(rgba(var(--role-rgb), 0.16) 1px, transparent 1px);
    background-size: 28px 28px, 28px 28px, 28px 28px;
    mask-image: radial-gradient(ellipse 80% 74% at 50% 48%, black 28%, transparent 94%);
    -webkit-mask-image: radial-gradient(ellipse 80% 74% at 50% 48%, black 28%, transparent 94%);
    opacity: 0.85;
    transform: translate3d(calc(var(--px) * -0.4), calc(var(--py) * -0.4), 0);
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    pointer-events: none;
    z-index: 0;
}

.eco-erp-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 24px;
    padding: 1.5px;
    background: conic-gradient(
        from var(--eco-glow-angle),
        transparent 15%,
        rgba(var(--role-rgb), 0.38) 32%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(var(--role-rgb), 0.28) 68%,
        transparent 85%
    );
    -webkit-mask: linear-gradient(#ffffff 0 0) content-box, linear-gradient(#ffffff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 5;
}

.eco-campus-sheen {
    position: absolute;
    inset: 0;
    width: 44%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.52), transparent);
    pointer-events: none;
    z-index: 1;
    animation: ecoGlassSweep 8.5s ease-in-out infinite;
}

/* Showcase View Mode Tabs directly under Hero Intro */
.eco-erp-modes {
    position: relative;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
    max-width: 100%;
    margin: 4px 0 6px;
    padding: 4px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(var(--role-rgb), 0.16);
    box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.10), inset 0 1px 0 rgba(255, 255, 255, 0.98);
    flex-wrap: wrap;
    animation: ecoKineticReveal 0.65s cubic-bezier(0.22, 1, 0.36, 1) 0.24s both;
}

.eco-mode-btn {
    appearance: none;
    cursor: pointer;
    border: 1px solid transparent;
    background: transparent;
    border-radius: 9px;
    padding: 5.5px 10px;
    display: inline-flex;
    align-items: center;
    gap: 5.5px;
    font-family: var(--font-display);
    font-size: 10.6px;
    font-weight: 700;
    color: var(--ed-ink-2);
    transition: all 0.2s cubic-bezier(0.22, 1, 0.36, 1);
    white-space: nowrap;
}

.eco-mode-btn i {
    font-size: 10.5px;
    color: var(--role-primary);
}

.eco-mode-btn:hover:not(.active) {
    background: var(--role-light);
    color: var(--role-primary-dark);
}

.eco-mode-btn.active {
    background: linear-gradient(135deg, var(--role-primary) 0%, var(--role-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 5px 12px -4px var(--role-shadow);
}

.eco-mode-btn.active i {
    color: #ffffff;
}

/* Main Landing Showcase Viewport (Borderless Open Canvas — Zero Nested Box Clutter) */
.eco-erp-viewport {
    position: relative;
    z-index: 3;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 8px;
    padding: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    min-height: 0;
}

.eco-dept-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(var(--role-rgb), 0.14);
}

.eco-dept-banner-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--role-primary) 0%, var(--role-primary-dark) 100%);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    flex-shrink: 0;
    box-shadow: 0 8px 18px -6px var(--role-shadow);
    margin-top: 2px;
}

.eco-dept-banner-copy {
    min-width: 0;
    flex: 1;
}

.eco-dept-kicker {
    font-family: var(--font-display);
    font-size: 9.8px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--role-primary-dark);
    line-height: 1.2;
    margin-bottom: 1px;
}

.eco-dept-banner-title {
    font-family: var(--font-display);
    font-size: 14.5px;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--ed-ink);
    line-height: 1.2;
}

.eco-dept-banner-sub {
    font-size: 11px;
    color: var(--ed-muted);
    line-height: 1.35;
    margin-top: 2px;
}

.eco-dept-count {
    display: inline-flex;
    align-items: center;
    padding: 3px 9px;
    border-radius: 999px;
    background: var(--role-light);
    border: 1px solid var(--role-border);
    color: var(--role-primary-dark);
    font-family: var(--font-display);
    font-size: 9.8px;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
}

/* Landing-Page Bento Capability Cards Grid */
.eco-dept-features {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.eco-erp-chip {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 5.5px 9px;
    border-radius: 11px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.075);
    box-shadow: 0 3px 10px -5px rgba(15, 23, 42, 0.08);
    animation: ecoChipSpringIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) var(--stagger, 0ms) both;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.22s ease, transform 0.22s cubic-bezier(0.22, 1, 0.36, 1);
    min-width: 0;
}

.eco-erp-chip::before {
    content: "";
    position: absolute;
    left: 0;
    top: 20%;
    bottom: 20%;
    width: 2.5px;
    border-radius: 0 4px 4px 0;
    background: var(--role-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.eco-erp-chip:hover {
    background: #ffffff;
    border-color: var(--role-border);
    box-shadow: 0 8px 18px -8px var(--role-shadow);
    transform: translateY(-1.5px);
}

.eco-erp-chip:hover::before {
    opacity: 1;
}

.eco-erp-chip-ico {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--role-light);
    border: 1px solid rgba(var(--role-rgb), 0.16);
    color: var(--role-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.eco-erp-chip:hover .eco-erp-chip-ico {
    background: linear-gradient(135deg, var(--role-primary) 0%, var(--role-primary-dark) 100%);
    border-color: var(--role-primary-dark);
    color: #ffffff;
}

.eco-erp-chip-copy {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
}

.eco-erp-chip-name {
    font-family: var(--font-display);
    font-size: 10.6px;
    font-weight: 700;
    color: var(--ed-ink);
    line-height: 1.2;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eco-erp-chip-tag {
    font-size: 9.2px;
    font-weight: 600;
    color: var(--role-primary-dark);
    line-height: 1.18;
    max-width: 100%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Full-width Spotlight Card when a Department has an Odd Feature Count (e.g. 5, 7, 9) */
.eco-dept-features > .eco-erp-chip:last-child:nth-child(odd) {
    grid-column: 1 / -1;
    background: linear-gradient(95deg, rgba(var(--role-rgb), 0.05) 0%, #ffffff 70%);
    border-color: rgba(var(--role-rgb), 0.18);
}

.eco-dept-features > .eco-erp-chip:last-child:nth-child(odd) .eco-erp-chip-copy {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.eco-dept-features > .eco-erp-chip:last-child:nth-child(odd) .eco-erp-chip-tag {
    padding: 1.5px 7px;
    border-radius: 999px;
    background: var(--role-light);
    border: 1px solid rgba(var(--role-rgb), 0.16);
}

/* Why Choose Delegate ERP (6 Cards Grid) */
.eco-why-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.eco-why-card {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 9px;
    border-radius: 11px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.075);
    box-shadow: 0 3px 10px -5px rgba(15, 23, 42, 0.08);
    animation: ecoChipSpringIn 0.38s cubic-bezier(0.22, 1, 0.36, 1) var(--stagger, 0ms) both;
}

.eco-why-card-ico {
    width: 24px;
    height: 24px;
    border-radius: 7px;
    background: var(--role-light);
    color: var(--role-primary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10.5px;
    flex-shrink: 0;
    margin-top: 1px;
}

.eco-why-title {
    font-family: var(--font-display);
    font-size: 10.4px;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: var(--ed-ink);
}

.eco-why-desc {
    font-size: 10.2px;
    color: var(--ed-muted);
    line-height: 1.32;
    margin-top: 2px;
}

/* Traditional System vs Delegate ERP Comparison Table */
.eco-vs-wrap {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.eco-vs-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 0 4px 4px;
    font-family: var(--font-display);
    font-size: 10.2px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.eco-vs-h-old {
    color: var(--ed-muted);
}

.eco-vs-h-new {
    color: var(--role-primary-dark);
}

.eco-vs-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr);
    align-items: center;
    gap: 6px;
    padding: 3.5px 7px;
    border-radius: 8px;
    background: rgba(248, 250, 252, 0.9);
    border: 1px solid rgba(15, 23, 42, 0.05);
    font-size: 10px;
    animation: ecoChipSpringIn 0.34s cubic-bezier(0.22, 1, 0.36, 1) var(--stagger, 0ms) both;
}

.eco-vs-old {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--ed-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eco-vs-old i {
    color: #ef4444;
    font-size: 9.5px;
    flex-shrink: 0;
}

.eco-vs-arrow {
    text-align: center;
    color: var(--role-primary);
    font-size: 10px;
    animation: ecoArrowGlide 1.6s ease-in-out infinite;
}

.eco-vs-new {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--ed-ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eco-vs-new i {
    color: var(--role-primary);
    font-size: 10px;
    flex-shrink: 0;
}

/* Commitments, Digital Future & Free Demo View */
.eco-demo-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
    gap: 10px;
    align-items: stretch;
}

.eco-commit-col {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.eco-commit-card {
    padding: 8px 10px;
    border-radius: 12px;
    background: rgba(248, 250, 252, 0.94);
    border: 1px solid rgba(15, 23, 42, 0.06);
    animation: ecoChipSpringIn 0.36s cubic-bezier(0.22, 1, 0.36, 1) var(--stagger, 0ms) both;
}

.eco-commit-head {
    font-family: var(--font-display);
    font-size: 10.2px;
    font-weight: 800;
    color: var(--role-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 5px;
}

.eco-commit-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.eco-commit-list li {
    display: flex;
    align-items: flex-start;
    gap: 6px;
    font-size: 10.2px;
    color: var(--ed-ink-2);
    line-height: 1.3;
}

.eco-commit-list i {
    color: var(--role-primary);
    font-size: 9px;
    margin-top: 3px;
    flex-shrink: 0;
}

.eco-demo-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 8px;
    padding: 12px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--role-primary) 0%, var(--role-primary-dark) 100%);
    color: #ffffff;
    box-shadow: 0 14px 28px -10px var(--role-shadow);
    animation: ecoChipSpringIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) 80ms both;
}

.eco-demo-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    width: fit-content;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.2);
    font-family: var(--font-display);
    font-size: 9.2px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.eco-demo-ceo {
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
}

.eco-demo-role {
    font-size: 10.5px;
    color: rgba(255, 255, 255, 0.88);
    margin-top: 2px;
}

.eco-demo-contacts {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.eco-demo-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 5.5px 9px;
    border-radius: 9px;
    background: rgba(255, 255, 255, 0.16);
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #ffffff;
    text-decoration: none;
    font-family: var(--font-display);
    font-size: 11px;
    font-weight: 700;
    transition: background 0.18s ease, transform 0.18s ease;
}

.eco-demo-link:hover {
    background: rgba(255, 255, 255, 0.26);
    transform: translateY(-1px);
}

.eco-demo-promise {
    font-size: 10.2px;
    line-height: 1.38;
    color: rgba(255, 255, 255, 0.94);
    padding-top: 6px;
    border-top: 1px solid rgba(255, 255, 255, 0.22);
}

/* Bottom Brand Promise & Website CTA Strip inside Landing Showcase */
.eco-erp-ribbon {
    position: relative;
    overflow: hidden;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6.5px 11px 7.5px;
    border-radius: 13px;
    background: linear-gradient(105deg, rgba(var(--role-rgb), 0.08) 0%, rgba(255, 255, 255, 0.98) 62%);
    border: 1px solid rgba(var(--role-rgb), 0.22);
    box-shadow: 0 6px 16px -8px rgba(15, 23, 42, 0.10);
    flex-wrap: wrap;
}

.eco-tour-progress {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--role-primary), var(--role-primary-dark));
    transform-origin: left center;
    animation: ecoProgressFill 4.8s linear infinite;
    pointer-events: none;
}

.eco-erp-frame.tour-paused .eco-tour-progress {
    animation-play-state: paused;
}

.eco-erp-promise {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 10.6px;
    font-weight: 600;
    color: var(--ed-ink-2);
    min-width: 0;
}

.eco-erp-promise i {
    color: var(--role-primary);
    font-size: 12px;
    flex-shrink: 0;
}

.eco-erp-promise strong {
    font-family: var(--font-display);
    color: var(--ed-ink);
}

.eco-erp-controls {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    flex-shrink: 0;
}

.eco-tour-btn {
    appearance: none;
    cursor: pointer;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid var(--ed-border);
    color: var(--ed-ink-2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    transition: all 0.18s ease;
}

.eco-tour-btn:hover {
    background: var(--role-light);
    border-color: var(--role-border);
    color: var(--role-primary-dark);
}

.eco-ribbon-call {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--role-primary) 0%, var(--role-primary-dark) 100%);
    border: 1px solid var(--role-primary-dark);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 10.4px;
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 6px 14px -5px var(--role-shadow);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.eco-ribbon-call:hover {
    filter: brightness(1.06);
    transform: translateY(-1px);
    box-shadow: 0 9px 18px -5px var(--role-shadow);
}

/* ==========================================================================
   RIGHT — Elevated Portal Sign-In Card (Cursor Spotlight + Modern Glass Rim)
   ========================================================================== */
.eco-auth-card {
    --mx: 50%;
    --my: 50%;
    position: relative;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 22px;
    padding: 18px 20px 16px;
    box-shadow:
        0 26px 60px -20px rgba(15, 38, 34, 0.16),
        0 6px 18px -4px rgba(15, 23, 42, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.98);
    animation: ecoScaleReveal 0.55s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.eco-auth-card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 28px;
    right: 28px;
    height: 3px;
    border-radius: 0 0 99px 99px;
    background: linear-gradient(90deg, transparent, var(--role-primary), transparent);
    opacity: 0.78;
    pointer-events: none;
    z-index: 2;
}

.eco-auth-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(360px circle at var(--mx) var(--my), rgba(var(--role-rgb), 0.075), transparent 60%);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.eco-auth-card:hover::before {
    opacity: 1;
}

.eco-auth-card > * {
    position: relative;
    z-index: 1;
}

.eco-role-header {
    margin-bottom: 10px;
}

.eco-role-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--role-light);
    border: 1px solid var(--role-border);
    color: var(--role-primary-dark);
    font-family: var(--font-display);
    font-size: 10.8px;
    font-weight: 700;
    margin-bottom: 6px;
}

.eco-role-eyebrow i {
    font-size: 10.8px;
    color: var(--role-primary);
}

.eco-role-header h1 {
    font-family: var(--font-display);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--ed-ink);
    line-height: 1.16;
    margin-bottom: 3px;
}

.eco-role-header p {
    font-size: 12.6px;
    line-height: 1.38;
    color: var(--ed-muted);
}

/* Vibrant Colored 6-Portal Bento Switcher (3x2 Horizontal Pills) */
.eco-tabs-wrap {
    margin-bottom: 11px;
}

.eco-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 5px;
    padding: 5px;
    background: var(--ed-surface-soft);
    border: 1px solid var(--ed-border);
    border-radius: 14px;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.eco-tab {
    min-width: 0;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 5.5px 7px;
    border-radius: 9px;
    text-decoration: none;
    color: var(--ed-ink-2);
    font-family: var(--font-display);
    font-size: 10.8px;
    font-weight: 600;
    line-height: 1.15;
    text-align: left;
    border: 1.5px solid transparent;
    background: #ffffff;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.18s ease, border-color 0.18s ease, box-shadow 0.2s ease, color 0.18s ease;
    user-select: none;
}

.eco-tab-ico {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--t-bg);
    border: 1px solid var(--t-bd);
    color: var(--t-c);
    font-size: 11px;
    transition: all 0.2s ease;
    flex-shrink: 0;
}

.eco-tab-label {
    display: block;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.eco-tab:hover:not(.active),
.eco-tab.linked-hover:not(.active) {
    background: var(--t-bg);
    border-color: var(--t-bd);
    color: var(--t-d);
    transform: translateY(-2px);
    box-shadow: 0 6px 14px -4px var(--t-sh);
}

.eco-tab:hover:not(.active) .eco-tab-ico,
.eco-tab.linked-hover:not(.active) .eco-tab-ico {
    background: var(--t-c);
    border-color: var(--t-c);
    color: #ffffff;
    transform: scale(1.06);
}

.eco-tab.active {
    background: var(--t-bg);
    border-color: var(--t-c);
    color: var(--t-d);
    font-weight: 700;
    box-shadow: 0 6px 16px -5px var(--t-sh);
}

.eco-tab.active .eco-tab-ico {
    background: linear-gradient(135deg, var(--t-c) 0%, var(--t-d) 100%);
    border-color: var(--t-d);
    color: #ffffff;
}

/* Alerts & Multi-School Picker */
.eco-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 13px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.45;
    margin-bottom: 14px;
    animation: ecoEnterDown 0.22s ease-out;
}

.eco-alert i {
    margin-top: 2px;
    font-size: 14px;
    flex-shrink: 0;
}

.eco-alert-danger {
    background: var(--ed-danger-bg);
    border: 1px solid var(--ed-danger-border);
    color: var(--ed-danger-txt);
}

.eco-alert-success {
    background: var(--ed-success-bg);
    border: 1px solid var(--ed-success-border);
    color: var(--ed-success-txt);
}

.eco-branch-card {
    background: var(--role-light);
    border: 1px solid var(--role-border);
    border-radius: 12px;
    padding: 13px;
    margin-bottom: 14px;
    animation: ecoEnterDown 0.22s ease-out;
}

.eco-branch-card h4 {
    font-family: var(--font-display);
    font-size: 13px;
    font-weight: 700;
    color: var(--role-primary-dark);
    margin-bottom: 4px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.eco-branch-card p {
    font-size: 12px;
    color: var(--ed-ink-2);
    margin-bottom: 9px;
}

.eco-branch-list {
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.eco-branch-btn {
    width: 100%;
    text-align: left;
    padding: 9px 12px;
    background: #ffffff;
    border: 1px solid var(--ed-border-strong);
    border-radius: 9px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ed-ink);
    transition: all 0.18s ease;
}

.eco-branch-btn:hover {
    border-color: var(--role-primary);
    background: var(--role-light);
    transform: translateX(2px);
}

/* Form Controls */
.eco-form {
    display: flex;
    flex-direction: column;
    gap: 9.5px;
}

.eco-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eco-field-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.eco-field-label {
    font-size: 12.5px;
    font-weight: 600;
    color: var(--ed-ink-2);
}

.eco-caps-badge {
    display: none;
    align-items: center;
    gap: 4px;
    font-size: 10.5px;
    font-weight: 700;
    color: #b45309;
    background: #fef3c7;
    border: 1px solid #fcd34d;
    padding: 1px 7px;
    border-radius: 999px;
}

.eco-caps-badge.visible {
    display: inline-flex;
}

.eco-input-box {
    position: relative;
    display: flex;
    align-items: center;
}

.eco-input-icon {
    position: absolute;
    left: 14px;
    color: var(--ed-subtle);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.18s ease, transform 0.18s ease;
    z-index: 2;
}

.eco-input {
    width: 100%;
    height: 41px;
    padding: 0 40px 0 38px;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ed-ink);
    background: var(--ed-surface-soft);
    border: 1.5px solid var(--ed-border-strong);
    border-radius: 10px;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.eco-input::placeholder {
    color: var(--ed-subtle);
    font-weight: 400;
}

.eco-input:hover {
    border-color: #94a3b8;
}

.eco-input:focus {
    background: #ffffff;
    border-color: var(--role-primary);
    box-shadow: 0 0 0 3.5px var(--role-ring);
}

.eco-input-box:focus-within .eco-input-icon {
    color: var(--role-primary);
    transform: scale(1.08);
}

.eco-pwd-toggle {
    position: absolute;
    right: 8px;
    width: 31px;
    height: 31px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--ed-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13.5px;
    z-index: 2;
    transition: background 0.18s ease, color 0.18s ease;
}

.eco-pwd-toggle:hover {
    background: var(--ed-surface-muted);
    color: var(--ed-ink);
}

.eco-form-options {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.eco-remember {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    cursor: pointer;
    color: var(--ed-ink-2);
    font-weight: 500;
    user-select: none;
}

.eco-remember input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: var(--role-primary);
    cursor: pointer;
}

.eco-forgot-btn {
    background: none;
    border: none;
    padding: 2px 0;
    font-family: inherit;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--role-primary-dark);
    cursor: pointer;
}

.eco-forgot-btn:hover {
    text-decoration: underline;
}

/* Animated Shimmer CTA Button */
.eco-submit-btn {
    position: relative;
    overflow: hidden;
    width: 100%;
    height: 42px;
    margin-top: 2px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--role-primary) 0%, var(--role-primary-dark) 100%);
    color: #ffffff;
    font-family: var(--font-display);
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    box-shadow: 0 10px 24px -6px var(--role-shadow);
    transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.2s ease, filter 0.2s ease;
}

.eco-submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -120%;
    width: 65%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.24), transparent);
    transform: skewX(-18deg);
    animation: ecoShimmerSweep 4.8s ease-in-out infinite;
}

.eco-submit-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.05);
    box-shadow: 0 14px 28px -6px var(--role-shadow);
}

.eco-submit-btn:active {
    transform: translateY(0);
}

.eco-submit-btn i.eco-btn-arrow {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.eco-submit-btn:hover i.eco-btn-arrow {
    transform: translateX(4px);
}

.eco-card-back-wrap {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--ed-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.5px;
}

.eco-back-home {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--ed-ink-2);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.18s ease, transform 0.18s ease;
}

.eco-back-home:hover {
    color: var(--role-primary);
    transform: translateX(-2px);
}

/* ==========================================================================
   Bottom Institutional Footer (Clean Minimal Copyright)
   ========================================================================== */
.eco-footer {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 1360px;
    margin: 0 auto;
    padding: 3px 28px 7px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11.2px;
    color: var(--ed-muted);
    animation: ecoEnterUp 0.5s ease-out 0.3s both;
}

/* ==========================================================================
   Modal & Loading Overlay
   ========================================================================== */
.eco-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(5px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 10000;
}

.eco-modal-backdrop.open {
    display: flex;
    animation: ecoFadeIn 0.18s ease-out;
}

.eco-modal {
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 20px;
    padding: 24px;
    box-shadow: 0 28px 60px -15px rgba(15, 23, 42, 0.3);
    border: 1px solid var(--ed-border);
    position: relative;
    animation: ecoScaleIn 0.2s cubic-bezier(0.22, 1, 0.36, 1);
}

.eco-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    border: 1px solid var(--ed-border);
    background: var(--ed-surface-soft);
    color: var(--ed-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.eco-modal-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--role-light);
    border: 1px solid var(--role-border);
    color: var(--role-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 13px;
}

.eco-modal h3 {
    font-family: var(--font-display);
    font-size: 18px;
    font-weight: 800;
    color: var(--ed-ink);
    margin-bottom: 7px;
}

.eco-modal p {
    font-size: 13.5px;
    color: var(--ed-ink-2);
    line-height: 1.55;
    margin-bottom: 15px;
}

.eco-modal-steps {
    background: var(--ed-surface-soft);
    border: 1px solid var(--ed-border);
    border-radius: 11px;
    padding: 12px 14px;
    margin-bottom: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    font-size: 12.8px;
    color: var(--ed-ink-2);
}

.eco-modal-steps div {
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.eco-modal-steps i {
    color: var(--role-primary);
    margin-top: 3px;
}

.eco-modal-actions {
    display: flex;
    gap: 10px;
}

.eco-btn-secondary {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--ed-border);
    background: #ffffff;
    color: var(--ed-ink);
    font-weight: 600;
    font-size: 13.5px;
    cursor: pointer;
}

.eco-btn-whatsapp {
    flex: 1;
    height: 40px;
    border-radius: 10px;
    background: var(--role-primary);
    color: #ffffff;
    font-weight: 600;
    font-size: 13.5px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.eco-btn-whatsapp:hover {
    background: var(--role-primary-dark);
}

/* Loading Overlay */
.eco-loader-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    color: var(--ed-ink);
    z-index: 10001;
}

.eco-loader-overlay.active {
    display: flex;
}

.eco-spinner {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 3.5px solid var(--role-mid);
    border-top-color: var(--role-primary);
    animation: ecoSpin 0.8s linear infinite;
}

.eco-loader-text {
    font-family: var(--font-display);
    font-size: 16.5px;
    font-weight: 700;
}

.eco-loader-sub {
    font-size: 13px;
    color: var(--ed-muted);
}

.eco-progress-wrap {
    width: 210px;
    height: 6px;
    border-radius: 99px;
    background: var(--ed-surface-muted);
    overflow: hidden;
    display: none;
}

.eco-progress-bar {
    height: 100%;
    width: 0%;
    border-radius: 99px;
    background: var(--role-primary);
    transition: width 0.12s linear;
}

@keyframes ecoSpin { to { transform: rotate(360deg); } }
@keyframes ecoFadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes ecoScaleIn { from { opacity: 0; transform: scale(0.97); } to { opacity: 1; transform: scale(1); } }

/* ==========================================================================
   Accessibility & Reduced Motion
   ========================================================================== */
.eco-tab:focus-visible,
.eco-submit-btn:focus-visible,
.eco-forgot-btn:focus-visible,
.eco-pwd-toggle:focus-visible,
.eco-mode-btn:focus-visible,
.eco-tour-btn:focus-visible,
.eco-demo-link:focus-visible,
.eco-ribbon-call:focus-visible {
    outline: 2px solid var(--role-primary);
    outline-offset: 2px;
}

.eco-input:focus-visible {
    outline: none;
}

@media (prefers-reduced-motion: reduce) {
    .eco-ambient-orb,
    .eco-campus-sheen,
    .eco-world-dot,
    .eco-vs-arrow {
        animation: none !important;
    }
    .eco-erp-frame,
    .eco-erp-chip,
    .eco-why-card,
    .eco-vs-row,
    .eco-auth-card {
        animation-duration: 0.15s !important;
    }
}

/* ==========================================================================
   Responsive Design — Multi-Dimension Fit to Screen
   ========================================================================== */
@media (max-width: 1200px) and (min-width: 921px) {
    .eco-topbar,
    .eco-footer {
        padding-left: 18px;
        padding-right: 18px;
    }

    .eco-stage {
        grid-template-columns: minmax(0, 1fr) minmax(338px, 376px);
        gap: 16px;
        padding: 4px 18px;
    }

    .eco-campus-world {
        gap: 10px;
    }

    .eco-world-header {
        margin-top: 16px;
        margin-bottom: 3px;
    }

    .eco-world-header h2 {
        font-size: clamp(17.5px, 1.85vw, 21px);
    }

    .eco-world-header p {
        font-size: 11.4px;
        line-height: 1.32;
    }

    .eco-erp-modes {
        margin: 2px 0 4px;
    }

    .eco-mode-btn {
        padding: 4.5px 7px;
        font-size: 9.6px;
        gap: 4px;
    }

    .eco-erp-frame {
        margin-top: 0;
        margin-bottom: 10px;
        padding: 10px 11px 9px;
        border-radius: 18px;
        gap: 7px;
    }

    .eco-erp-viewport {
        padding: 0;
        gap: 6px;
    }

    .eco-dept-banner-ico {
        width: 30px;
        height: 30px;
        font-size: 12px;
    }

    .eco-dept-kicker {
        font-size: 9px;
    }

    .eco-dept-banner-title {
        font-size: 13px;
    }

    .eco-dept-banner-sub {
        font-size: 10px;
    }

    .eco-dept-count {
        font-size: 9px;
        padding: 2px 7px;
    }

    .eco-erp-chip {
        padding: 4.5px 7.5px;
    }

    .eco-erp-chip-ico {
        width: 21px;
        height: 21px;
        font-size: 9.5px;
    }

    .eco-erp-chip-name {
        font-size: 10px;
    }

    .eco-erp-chip-tag {
        font-size: 8.6px;
    }

    .eco-why-card {
        padding: 5.5px 7px;
    }

    .eco-why-title {
        font-size: 9.8px;
    }

    .eco-why-desc {
        font-size: 9.2px;
    }

    .eco-erp-ribbon {
        padding: 5px 8px 6px;
        gap: 6px;
    }

    .eco-erp-promise {
        font-size: 9.6px;
    }

    .eco-auth-card {
        padding: 14px 15px 13px;
        border-radius: 18px;
    }

    .eco-role-header {
        margin-bottom: 8px;
    }

    .eco-role-header h1 {
        font-size: 20px;
    }

    .eco-role-header p {
        font-size: 11.6px;
    }

    .eco-tabs-wrap {
        margin-bottom: 9px;
    }

    .eco-tab {
        padding: 5px 5.5px;
        font-size: 9.8px;
        gap: 5px;
    }

    .eco-tab-ico {
        width: 20px;
        height: 20px;
        font-size: 10px;
    }

    .eco-form {
        gap: 8px;
    }

    .eco-input {
        height: 38px;
        font-size: 12.8px;
    }

    .eco-submit-btn {
        height: 39px;
        font-size: 13.5px;
    }

    .eco-footer {
        padding: 2px 18px 6px;
        font-size: 10.6px;
    }
}

@media (max-height: 660px) and (min-width: 921px) {
    .eco-topbar {
        padding: 5px 22px 1px;
    }

    .eco-brand-logo {
        width: 28px;
        height: 28px;
        border-radius: 8px;
    }

    .eco-brand-name {
        font-size: 15px;
    }

    .eco-brand-tag {
        font-size: 9.5px;
    }

    .eco-stage {
        padding: 2px 22px;
    }

    .eco-campus-world {
        gap: 8px;
    }

    .eco-world-header {
        gap: 2px;
        margin-top: 14px;
        margin-bottom: 2px;
    }

    .eco-world-eyebrow {
        padding: 2px 8px;
        font-size: 9.5px;
    }

    .eco-world-header h2 {
        font-size: clamp(17px, 1.7vw, 20px);
    }

    .eco-world-header p {
        font-size: 11px;
        line-height: 1.28;
    }

    .eco-erp-modes {
        margin: 2px 0;
        padding: 3px;
        gap: 3px;
    }

    .eco-mode-btn {
        padding: 4px 7.5px;
        font-size: 9.6px;
    }

    .eco-erp-frame {
        margin-top: 0;
        margin-bottom: 8px;
        padding: 9px 11px 8px;
        gap: 6px;
        border-radius: 17px;
    }

    .eco-erp-viewport {
        padding: 0;
        gap: 5px;
    }

    .eco-dept-banner {
        padding-bottom: 5px;
    }

    .eco-dept-banner-ico {
        width: 28px;
        height: 28px;
        font-size: 11.5px;
    }

    .eco-dept-kicker {
        font-size: 8.8px;
    }

    .eco-dept-banner-title {
        font-size: 13px;
    }

    .eco-dept-banner-sub {
        font-size: 10px;
    }

    .eco-erp-chip {
        padding: 4px 7.5px;
    }

    .eco-erp-chip-ico {
        width: 20px;
        height: 20px;
        font-size: 9.5px;
    }

    .eco-erp-chip-name {
        font-size: 10px;
    }

    .eco-erp-chip-tag {
        font-size: 8.6px;
    }

    .eco-why-card {
        padding: 5px 7px;
    }

    .eco-vs-row {
        padding: 2.5px 6px;
        font-size: 9.5px;
    }

    .eco-commit-card {
        padding: 6px 8px;
    }

    .eco-demo-card {
        padding: 9px 10px;
        gap: 6px;
    }

    .eco-erp-ribbon {
        padding: 4px 8px 5px;
    }

    .eco-auth-card {
        padding: 12px 16px 11px;
        border-radius: 18px;
    }

    .eco-role-header {
        margin-bottom: 6px;
    }

    .eco-role-eyebrow {
        padding: 2px 8px;
        font-size: 10px;
        margin-bottom: 4px;
    }

    .eco-role-header h1 {
        font-size: 19px;
        margin-bottom: 2px;
    }

    .eco-role-header p {
        font-size: 11.2px;
    }

    .eco-tabs-wrap {
        margin-bottom: 7px;
    }

    .eco-tabs {
        gap: 4px;
        padding: 4px;
    }

    .eco-tab {
        padding: 4.5px 6px;
        font-size: 10px;
    }

    .eco-tab-ico {
        width: 19px;
        height: 19px;
        font-size: 9.5px;
    }

    .eco-form {
        gap: 6.5px;
    }

    .eco-field {
        gap: 3px;
    }

    .eco-field-label {
        font-size: 11.5px;
    }

    .eco-input {
        height: 35px;
        font-size: 12.5px;
    }

    .eco-form-options,
    .eco-forgot-btn {
        font-size: 11.5px;
    }

    .eco-submit-btn {
        height: 36px;
        font-size: 13px;
    }

    .eco-card-back-wrap {
        margin-top: 6px;
        padding-top: 6px;
        font-size: 11px;
    }

    .eco-footer {
        padding: 2px 22px 4px;
        font-size: 10.2px;
    }
}

@media (max-width: 920px) {
    .eco-stage {
        grid-template-columns: 1fr;
        max-width: 700px;
        gap: 18px;
        padding: 10px 20px 18px;
    }

    .eco-world-header {
        margin-top: -70px;
        margin-bottom: 2px;
    }

    .eco-erp-modes {
        margin: 2px 0;
    }

    .eco-auth-card {
        order: -1;
    }

    .eco-topbar,
    .eco-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .eco-erp-frame {
        margin-bottom: 8px;
        min-height: 0;
        height: auto;
    }
}

@media (max-width: 640px) {
    .eco-topbar {
        padding: 14px 16px 6px;
    }

    .eco-stage {
        padding: 8px 16px 16px;
    }

    .eco-auth-card {
        padding: 20px 16px 18px;
        border-radius: 18px;
    }

    .eco-role-header h1 {
        font-size: 24px;
    }

    /* Clean 2x3 horizontal portal grid on mobile */
    .eco-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .eco-erp-modes {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .eco-mode-btn {
        justify-content: center;
    }

    .eco-erp-frame {
        height: auto;
        min-height: 0;
        padding: 10px;
        gap: 8px;
    }

    .eco-erp-viewport {
        min-height: 0;
    }

    .eco-dept-banner {
        flex-wrap: wrap;
    }

    .eco-dept-features,
    .eco-why-grid,
    .eco-demo-grid {
        grid-template-columns: 1fr;
    }

    .eco-dept-features > .eco-erp-chip:last-child:nth-child(odd) .eco-erp-chip-copy {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .eco-vs-row,
    .eco-vs-header {
        grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
    }

    .eco-erp-ribbon {
        flex-direction: column;
        align-items: flex-start;
    }

    .eco-footer {
        padding: 8px 16px 14px;
    }
}
