/* ===================================================================
   eKharid Advanced Login - Glassmorphism Procurement Portal
   Body: .Login-ek.Login-ek--advance
   =================================================================== */

/* --- Design tokens --- */
:root {
    --pp-navy-950: #1a2740;
    --pp-navy-900: #22314c;
    --pp-navy-800: #2b3d5c;
    --pp-navy-700: #35506f;
    --pp-blue-600: #2563eb;
    --pp-blue-500: #3b82f6;
    --pp-blue-400: #60a5fa;
    --pp-teal-500: #14b8a6;
    --pp-teal-400: #2dd4bf;
    --pp-gold-600: #b8860b;
    --pp-gold-500: #d4a017;
    --pp-gold-400: #f0c14b;
    --pp-gold-glow: rgba(240, 193, 75, 0.45);
    --pp-white: #ffffff;
    --pp-ink: #0b1220;
    --pp-muted: rgba(255, 255, 255, 0.78);
    --pp-muted-soft: rgba(255, 255, 255, 0.58);
    --pp-glass-bg: rgba(255, 255, 255, 0.14);
    --pp-glass-bg-strong: rgba(255, 255, 255, 0.2);
    --pp-glass-border: rgba(255, 255, 255, 0.28);
    --pp-glass-border-strong: rgba(255, 255, 255, 0.4);
    --pp-glass-shadow: 0 24px 64px rgba(15, 35, 55, 0.28), 0 8px 24px rgba(15, 35, 55, 0.16);
    --pp-radius-sm: 10px;
    --pp-radius: 16px;
    --pp-radius-lg: 22px;
    --pp-radius-xl: 28px;
    --pp-font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    --pp-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --pp-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --pp-header-h: 64px;
    --pp-gigw-h: 36px;
    --pp-nav-h: 46px;
    --pp-blur: 20px;
    --pp-blur-heavy: 28px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

/* --- Base body --- */
body.Login-ek {
    font-family: var(--pp-font);
    line-height: 1.5;
    min-height: 100vh;
    color: var(--pp-white);
    background: var(--pp-navy-950);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

body.Login-ek.Login-ek--advance {
    display: flex;
    flex-direction: column;
    position: relative;
    isolation: isolate;
}

/* --- Accessibility --- */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    z-index: 10000;
    padding: 10px 18px;
    background: var(--pp-gold-500);
    color: var(--pp-navy-950);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: var(--pp-radius-sm);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
    transition: top 0.2s var(--pp-ease);
}

.skip-link:focus {
    top: 12px;
    outline: 2px solid var(--pp-white);
    outline-offset: 3px;
}

/* --- GIGW bar --- */
.gigw-bar {
    position: relative;
    z-index: 500;
    background: rgba(248, 250, 252, 0.96);
    border-bottom: 1px solid rgba(226, 232, 240, 0.9);
    font-size: 12px;
    color: #334155;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.gigw-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding: 6px 24px;
    max-width: 1440px;
    margin: 0 auto;
}

.gigw-bar__left,
.gigw-bar__center,
.gigw-bar__right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.gigw-link {
    color: #0f766e;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.gigw-link:hover {
    color: #0d9488;
    text-decoration: underline;
}

.gigw-sep {
    color: #cbd5e1;
    user-select: none;
}

.gigw-meta {
    color: #64748b;
    font-weight: 500;
}

.font-adjuster {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 3px 5px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
}

.font-adjuster__label {
    font-size: 11px;
    font-weight: 600;
    color: var(--pp-muted);
    margin-right: 2px;
}

.font-adjuster__btn {
    min-width: 28px;
    height: 26px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.font-adjuster__btn:hover {
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    color: #fff;
}

.font-adjuster__btn--reset {
    font-size: 12px;
}

body.theme-light .font-adjuster {
    border-color: #e2e8f0;
    background: #fff;
}

body.theme-light .font-adjuster__btn {
    border-color: #e2e8f0;
    background: #fff;
    color: #334155;
}

body.theme-light .font-adjuster__btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.lang-toggle {
    display: inline-flex;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.lang-toggle__btn {
    min-width: 36px;
    height: 28px;
    border: 0;
    background: transparent;
    color: var(--pp-muted);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.15s ease, color 0.15s ease;
}

.lang-toggle__btn:hover {
    color: var(--pp-white);
    background: rgba(255, 255, 255, 0.08);
}

.lang-toggle__btn[aria-pressed="true"] {
    background: linear-gradient(135deg, var(--pp-teal-500), #0d9488);
    color: #fff;
}

.theme-toggle {
    width: 34px;
    height: 30px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--pp-white);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.28);
}

/* Font scale */
html[data-font-scale="-2"] { font-size: 14px; }
html[data-font-scale="-1"] { font-size: 15px; }
html[data-font-scale="0"],
html:not([data-font-scale]) { font-size: 16px; }
html[data-font-scale="1"] { font-size: 18px; }
html[data-font-scale="2"] { font-size: 20px; }

.font-adjuster__btn.is-active {
    background: rgba(45, 212, 191, 0.22);
    border-color: rgba(45, 212, 191, 0.55);
    color: #5eead4;
}

.lang-toggle__btn.is-active,
.lang-toggle__btn[aria-pressed="true"] {
    background: rgba(45, 212, 191, 0.28);
    color: #fff;
}

/* ===================================================================
   STAGE - Full bleed dark background with animated layers
   =================================================================== */
.pp-stage {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.pp-stage__bg {
    position: absolute;
    inset: -4%;
    background:
        url(../media/login-bg-procurement.png?v=25) center 55% / cover no-repeat,
        linear-gradient(180deg, #0d1a30 0%, #1b3350 55%, #24425f 100%);
    filter: blur(2px) saturate(0.5) brightness(0.66) contrast(1.14);
    transform: scale(1.06);
}

.pp-stage__veil {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(9, 24, 48, 0.8) 0%, rgba(13, 32, 62, 0.44) 28%, rgba(12, 30, 58, 0.4) 64%, rgba(7, 18, 38, 0.86) 100%),
        radial-gradient(ellipse 120% 90% at 50% 50%, transparent 40%, rgba(6, 16, 34, 0.45) 100%),
        radial-gradient(ellipse 42% 40% at 6% 20%, rgba(245, 176, 84, 0.26) 0%, transparent 64%),
        radial-gradient(ellipse 80% 55% at 18% 82%, rgba(20, 184, 166, 0.22) 0%, transparent 60%),
        radial-gradient(ellipse 70% 45% at 88% 12%, rgba(59, 130, 246, 0.24) 0%, transparent 55%);
}

.pp-stage__glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.55;
}

.pp-stage__glow--a {
    width: 480px;
    height: 480px;
    top: -8%;
    left: -6%;
    background: radial-gradient(circle, rgba(45, 212, 191, 0.35) 0%, transparent 70%);
}

.pp-stage__glow--b {
    width: 560px;
    height: 560px;
    bottom: -12%;
    right: -8%;
    background: radial-gradient(circle, rgba(59, 130, 246, 0.28) 0%, transparent 70%);
}

/* Particle field via pseudo-elements */
.pp-stage__particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.pp-stage__particles::before,
.pp-stage__particles::after {
    content: "";
    position: absolute;
    inset: -20%;
    background-image:
        radial-gradient(1.5px 1.5px at 10% 20%, rgba(255, 255, 255, 0.35) 50%, transparent 50%),
        radial-gradient(1px 1px at 30% 65%, rgba(255, 255, 255, 0.25) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 55% 15%, rgba(240, 193, 75, 0.4) 50%, transparent 50%),
        radial-gradient(1px 1px at 72% 48%, rgba(255, 255, 255, 0.2) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 88% 78%, rgba(45, 212, 191, 0.35) 50%, transparent 50%),
        radial-gradient(1px 1px at 45% 88%, rgba(255, 255, 255, 0.18) 50%, transparent 50%),
        radial-gradient(1px 1px at 18% 42%, rgba(255, 255, 255, 0.22) 50%, transparent 50%),
        radial-gradient(1.5px 1.5px at 92% 28%, rgba(255, 255, 255, 0.3) 50%, transparent 50%);
    background-size: 100% 100%;
}

.pp-stage__particles::after {
    opacity: 0.6;
}

/* ===================================================================
   HEADER
   =================================================================== */
.pp-header {
    position: sticky;
    top: 0;
    z-index: 800;
    overflow: visible;
    backdrop-filter: blur(var(--pp-blur));
    -webkit-backdrop-filter: blur(var(--pp-blur));
    background: rgba(38, 58, 84, 0.78);
    border-bottom: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 8px 28px rgba(20, 40, 60, 0.22);
    animation: ppFadeRise 0.7s var(--pp-ease) both;
}

.pp-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 24px;
    max-width: 1440px;
    margin: 0 auto;
}

.pp-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.pp-brand__logo {
    height: 48px;
    width: auto;
    flex-shrink: 0;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

.pp-brand__text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pp-brand__text strong {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--pp-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.pp-brand__text small {
    font-size: 11px;
    color: var(--pp-muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.pp-header__tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.pp-status {
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 600;
    color: var(--pp-muted);
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    white-space: nowrap;
}

.pp-status__dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e;
    box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.6);
    animation: ppStatusPulse 2.4s ease-in-out infinite;
}

@keyframes ppStatusPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.55);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 0 6px rgba(34, 197, 94, 0);
        transform: scale(1.08);
    }
}

.mobile-menu-btn {
    display: none;
    width: 40px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--pp-white);
    cursor: pointer;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.15s ease;
}

.mobile-menu-btn:hover {
    background: rgba(255, 255, 255, 0.12);
}

/* --- Navigation --- */
.pp-nav.nav-menu {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    padding: 0 24px 12px;
    max-width: 1440px;
    margin: 0 auto;
    overflow: visible;
}

.pp-nav.nav-menu::-webkit-scrollbar {
    display: none;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(241, 245, 249, 0.92);
    text-decoration: none;
    white-space: nowrap;
    border: 1px solid transparent;
    background: transparent;
    cursor: pointer;
    font-family: inherit;
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.nav-link i {
    font-size: 13px;
    opacity: 1;
    color: rgba(148, 226, 213, 0.95);
}

.nav-link:hover {
    color: var(--pp-white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
}

.nav-link.active {
    color: var(--pp-white);
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

/* Dropdown */
.nav-dropdown {
    position: relative;
    z-index: 900;
}

.nav-dropdown__trigger {
    padding-right: 10px;
}

/* Gradient lead icon (Manual) */
.nav-dropdown__trigger .nav-dropdown__lead {
    font-size: 15px;
    background: linear-gradient(135deg, var(--pp-teal-400) 0%, #7dd3fc 45%, var(--pp-gold-400) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.45));
    transition: transform 0.25s var(--pp-ease), filter 0.25s var(--pp-ease);
}

.nav-dropdown.is-open .nav-dropdown__lead,
.nav-dropdown__trigger:hover .nav-dropdown__lead {
    transform: translateY(-1px) scale(1.12);
    filter: drop-shadow(0 0 10px rgba(240, 193, 75, 0.6));
}

.nav-dropdown__caret {
    font-size: 10px;
    margin-left: 2px;
    transition: transform 0.25s var(--pp-ease);
    opacity: 0.7;
}

.nav-dropdown.is-open .nav-dropdown__caret,
.nav-dropdown:hover .nav-dropdown__caret,
.nav-dropdown:focus-within .nav-dropdown__caret {
    transform: rotate(180deg);
}

.nav-dropdown.is-open .nav-dropdown__trigger,
.nav-dropdown:hover .nav-dropdown__trigger,
.nav-dropdown:focus-within .nav-dropdown__trigger {
    color: var(--pp-white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.15);
}

.nav-dropdown__panel {
    position: absolute;
    top: 100%;
    left: auto;
    right: 0;
    min-width: 280px;
    padding: 8px;
    margin-top: 0;
    border-radius: var(--pp-radius);
    background: linear-gradient(180deg, rgba(40, 61, 89, 0.97) 0%, rgba(26, 42, 64, 0.97) 100%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 24px 56px rgba(10, 20, 34, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--pp-blur-heavy));
    -webkit-backdrop-filter: blur(var(--pp-blur-heavy));
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(4px) scale(0.98);
    transition: opacity 0.18s var(--pp-ease), transform 0.18s var(--pp-ease), visibility 0.18s;
    z-index: 1200;
}

/* Invisible hover bridge - mouse trigger → panel ke beech gap cover */
.nav-dropdown__panel::after {
    content: "";
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    background: transparent;
}

.nav-dropdown__panel::before {
    content: "";
    position: absolute;
    top: -5px;
    right: 28px;
    left: auto;
    width: 12px;
    height: 12px;
    background: rgba(40, 61, 89, 0.97);
    border-left: 1px solid rgba(255, 255, 255, 0.18);
    border-top: 1px solid rgba(255, 255, 255, 0.18);
    transform: rotate(45deg);
    z-index: 1;
}

.nav-dropdown.is-open .nav-dropdown__panel,
.nav-dropdown:hover .nav-dropdown__panel,
.nav-dropdown:focus-within .nav-dropdown__panel {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.nav-dropdown__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: var(--pp-radius-sm);
    text-decoration: none;
    color: var(--pp-white);
    border: 1px solid transparent;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s var(--pp-ease);
}

.nav-dropdown__item:hover {
    background: rgba(45, 212, 191, 0.14);
    border-color: rgba(45, 212, 191, 0.28);
    transform: translateX(2px);
}

.nav-dropdown__item.is-disabled,
.nav-dropdown__item.is-disabled:hover {
    opacity: 0.45;
    cursor: not-allowed;
    pointer-events: none;
}

.nav-dropdown__icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.3), rgba(13, 148, 136, 0.16));
    border: 1px solid rgba(45, 212, 191, 0.32);
    color: #5eead4;
    flex-shrink: 0;
    transition: transform 0.2s var(--pp-ease);
}

.nav-dropdown__item:nth-child(2) .nav-dropdown__icon {
    background: linear-gradient(145deg, rgba(240, 193, 75, 0.28), rgba(184, 134, 11, 0.16));
    border-color: rgba(240, 193, 75, 0.34);
    color: var(--pp-gold-400);
}

.nav-dropdown__item:hover .nav-dropdown__icon {
    transform: scale(1.06);
}

.nav-dropdown__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.nav-dropdown__copy strong {
    font-size: 13px;
    font-weight: 700;
}

.nav-dropdown__copy small {
    font-size: 11px;
    color: var(--pp-muted-soft);
}

/* ===================================================================
   MAIN GRID - Hero left + Card right
   =================================================================== */
.pp-main {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 420px);
    gap: 40px;
    align-items: center;
    max-width: 1440px;
    width: 100%;
    margin: 0 auto;
    padding: 32px 24px 48px;
    animation: ppFadeRise 0.8s var(--pp-ease) 0.1s both;
}

@keyframes ppFadeRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Hero section --- */
.pp-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
}

.pp-hero__kicker {
    display: inline-flex;
    align-self: flex-start;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #fde68a;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22), rgba(13, 148, 136, 0.18));
    border: 1px solid rgba(245, 158, 11, 0.45);
    animation: ppFadeRise 0.7s var(--pp-ease) 0.2s both;
}

.pp-hero__title {
    font-size: clamp(2rem, 4.5vw, 3.25rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -0.02em;
    color: #f8fafc;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
    animation: ppFadeRise 0.7s var(--pp-ease) 0.3s both;
}

.pp-hero__title em {
    font-style: normal;
    background: linear-gradient(135deg, #5eead4 0%, #2dd4bf 42%, #fbbf24 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 16px rgba(45, 212, 191, 0.35));
}

.pp-hero__sub {
    font-size: 15px;
    color: rgba(226, 232, 240, 0.92);
    max-width: 48ch;
    font-weight: 600;
    animation: ppFadeRise 0.7s var(--pp-ease) 0.4s both;
}

/* Journey SVG animation */
.pp-journey {
    position: relative;
    padding: 16px 0 8px;
    animation: ppFadeRise 0.8s var(--pp-ease) 0.5s both;
}

.pp-journey__line {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 80px;
    transform: translateY(-50%);
    pointer-events: none;
}

.pp-journey__track {
    stroke: rgba(255, 255, 255, 0.08);
    stroke-width: 2;
    stroke-linecap: round;
}

.pp-journey__draw {
    stroke: url(#ppJourneyGrad);
    stroke: rgba(45, 212, 191, 0.75);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 800;
    stroke-dashoffset: 800;
    animation: ppPathDraw 2.8s var(--pp-ease-out) 0.6s forwards;
    filter: drop-shadow(0 0 6px rgba(45, 212, 191, 0.5));
}

@keyframes ppPathDraw {
    to { stroke-dashoffset: 0; }
}

.pp-journey__steps {
    position: relative;
    display: flex;
    justify-content: space-between;
    gap: 8px;
    list-style: none;
    padding: 0 4px;
    z-index: 1;
}

.pp-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    flex: 1;
    min-width: 0;
    opacity: 0;
    transform: translateY(16px);
    animation: ppStepFloat 0.6s var(--pp-ease) forwards;
}

.pp-step--1 { animation-delay: 0.9s; }
.pp-step--2 { animation-delay: 1.05s; }
.pp-step--3 { animation-delay: 1.2s; }
.pp-step--4 { animation-delay: 1.35s; }
.pp-step--5 { animation-delay: 1.5s; }

@keyframes ppStepFloat {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pp-step__n {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 800;
    color: var(--pp-white);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.pp-step strong {
    font-size: 11px;
    font-weight: 700;
    color: var(--pp-white);
    line-height: 1.2;
}

.pp-step small {
    font-size: 9px;
    color: var(--pp-muted-soft);
    line-height: 1.2;
}

/* Stats glass cards */
.pp-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    animation: ppFadeRise 0.8s var(--pp-ease) 0.7s both;
}

.pp-stat {
    padding: 16px 14px;
    border-radius: var(--pp-radius);
    background: var(--pp-glass-bg);
    border: 1px solid var(--pp-glass-border);
    backdrop-filter: blur(var(--pp-blur));
    -webkit-backdrop-filter: blur(var(--pp-blur));
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transition: transform 0.25s var(--pp-ease), border-color 0.25s ease, box-shadow 0.25s ease;
}

.pp-stat:hover {
    transform: translateY(-3px);
    border-color: var(--pp-glass-border-strong);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.28);
}

.pp-stat__value {
    display: block;
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--pp-white);
    letter-spacing: -0.01em;
    margin-bottom: 4px;
}

.pp-stat__label {
    display: block;
    font-size: 10px;
    font-weight: 600;
    color: var(--pp-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    line-height: 1.3;
}

/* Help chip */
.glass-chip,
.pp-help.glass-chip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 16px;
    padding: 14px 18px;
    border-radius: var(--pp-radius);
    background: var(--pp-glass-bg);
    border: 1px solid var(--pp-glass-border);
    backdrop-filter: blur(var(--pp-blur));
    -webkit-backdrop-filter: blur(var(--pp-blur));
    font-size: 13px;
    color: var(--pp-muted);
    animation: ppFadeRise 0.8s var(--pp-ease) 0.85s both;
}

.pp-help strong {
    color: var(--pp-white);
    font-weight: 700;
}

.pp-help a {
    color: var(--pp-teal-400);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.pp-help a:hover {
    color: var(--pp-white);
    text-decoration: underline;
}

.pp-wa {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(37, 211, 102, 0.12);
    border: 1px solid rgba(37, 211, 102, 0.3);
    color: #86efac !important;
}

.pp-wa:hover {
    background: rgba(37, 211, 102, 0.2);
    text-decoration: none !important;
}

/* ===================================================================
   LOGIN CARD - Glassmorphism panel
   =================================================================== */
.pp-card-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 0;
    animation: ppCardFloat 0.9s var(--pp-ease) 0.35s both;
}

@keyframes ppCardFloat {
    from {
        opacity: 0;
        transform: translateY(32px) scale(0.97);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.login-card.pp-glass,
.login-card {
    width: 100%;
    max-width: 420px;
    padding: 32px 28px 28px;
    border-radius: var(--pp-radius-xl);
    background: linear-gradient(165deg, rgba(52, 74, 104, 0.82) 0%, rgba(40, 60, 88, 0.78) 100%);
    border: 1px solid rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(24px) saturate(1.35);
    -webkit-backdrop-filter: blur(24px) saturate(1.35);
    box-shadow:
        0 28px 64px rgba(20, 40, 64, 0.32),
        0 0 0 1px rgba(45, 212, 191, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.28);
    position: relative;
    overflow: hidden;
    animation: none;
}

@keyframes ppCardHover {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.login-card.pp-glass::before,
.login-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.45), transparent);
}

.login-card.pp-glass::after,
.login-card::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.card-header {
    position: relative;
    z-index: 2;
    text-align: center;
    margin-bottom: 24px;
}

.pp-card-icon {
    width: 52px;
    height: 52px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    color: var(--pp-gold-400);
    background: rgba(240, 193, 75, 0.12);
    border: 1px solid rgba(240, 193, 75, 0.25);
    box-shadow: 0 4px 16px rgba(240, 193, 75, 0.15);
}

.login-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--pp-teal-400);
    margin-bottom: 6px;
}

.login-title {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--pp-white);
    letter-spacing: -0.02em;
    margin-bottom: 6px;
}

.login-subtitle {
    font-size: 13px;
    color: var(--pp-muted);
}

/* Portal alerts */
.portal-alerts {
    position: relative;
    z-index: 2;
    width: 100%;
    max-width: 420px;
    margin-bottom: 12px;
}

.portal-alerts:not(:has(.portal-alert:not([hidden]))) {
    display: none;
    margin: 0;
}

.portal-alert {
    margin: 0;
    padding: 10px 14px;
    border-radius: var(--pp-radius-sm);
    font-size: 12px;
    line-height: 1.45;
    font-weight: 600;
}

.portal-alert--info {
    background: rgba(255, 255, 255, 0.92);
    color: #0f4c5c;
    border: 1px solid rgba(20, 120, 120, 0.25);
}

.portal-alert--warn {
    background: rgba(254, 243, 199, 0.95);
    color: #92400e;
    border: 1px solid #fcd34d;
}

.portal-alert--danger {
    background: rgba(254, 226, 226, 0.96);
    color: #991b1b;
    border: 1px solid #fca5a5;
}

.portal-alert[hidden] {
    display: none !important;
}

/* --- Form --- */
.login-form {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.login-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-label {
    font-size: 12px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.02em;
}

.form-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.forgot-inline {
    font-size: 12px;
    font-weight: 600;
    color: var(--pp-teal-400);
    text-decoration: none;
    transition: color 0.15s ease;
}

.forgot-inline:hover {
    color: var(--pp-white);
    text-decoration: underline;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 22px;
    height: 22px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    line-height: 1;
    color: rgba(148, 226, 213, 0.9) !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none;
    z-index: 6;
    transition: color 0.2s ease;
}

.input-icon svg {
    display: block !important;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor !important;
    fill: none !important;
    opacity: 1 !important;
}

.show-pass {
    z-index: 8;
    pointer-events: auto;
}

.show-pass svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    stroke: currentColor !important;
    fill: none !important;
    opacity: 1 !important;
    pointer-events: none;
}

.show-pass .show-pass__eye {
    display: block !important;
}

.show-pass .show-pass__eye-off,
.show-pass .show-pass__eye-off[hidden] {
    display: none !important;
}

.show-pass.is-visible .show-pass__eye {
    display: none !important;
}

.show-pass.is-visible .show-pass__eye-off,
.show-pass.is-visible .show-pass__eye-off[hidden] {
    display: block !important;
}

.form-input {
    width: 100%;
    height: 48px;
    padding: 0 44px 0 42px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--pp-radius-sm);
    background: rgba(255, 255, 255, 0.14);
    color: #f1f5f9;
    font-size: 14px;
    font-family: inherit;
    outline: none;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    -webkit-text-fill-color: #f1f5f9;
    caret-color: #f1f5f9;
}

.form-input::placeholder {
    color: rgba(226, 232, 240, 0.45);
    -webkit-text-fill-color: rgba(226, 232, 240, 0.45);
}

.form-input:hover {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.2);
}

.form-input:focus {
    border-color: rgba(45, 212, 191, 0.7);
    background: rgba(255, 255, 255, 0.18);
    box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.16);
}

.form-input:-webkit-autofill,
.form-input:-webkit-autofill:hover,
.form-input:-webkit-autofill:focus {
    -webkit-text-fill-color: #f1f5f9;
    caret-color: #f1f5f9;
    box-shadow: 0 0 0 1000px #3a5578 inset;
    transition: background-color 99999s ease-in-out 0s;
}

.input-group:focus-within .input-icon {
    color: var(--pp-teal-400) !important;
}

.show-pass {
    position: absolute;
    right: 4px;
    width: 38px;
    height: 38px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: rgba(226, 232, 240, 0.75);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 6;
    opacity: 1;
    visibility: visible;
    transition: color 0.15s ease, background 0.15s ease;
}

.show-pass:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.input-group:focus-within .show-pass {
    color: var(--pp-teal-400);
}

.remember-user {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-size: 12px;
    color: var(--pp-muted);
    cursor: pointer;
}

.remember-user input {
    accent-color: var(--pp-blue-500);
    width: 15px;
    height: 15px;
}

/* Validation errors */
.ak-login-error,
.field-validation-error {
    display: block;
    font-size: 11px;
    font-weight: 600;
    color: #fca5a5;
    margin-bottom: 2px;
}

.ak-login-error:empty {
    display: none;
}

.ak-login-error--global {
    margin: 8px 0 4px;
    padding: 8px 12px;
    border-radius: 8px;
    background: rgba(239, 68, 68, 0.12);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fecaca;
}

.ak-login-error--global:empty {
    display: none;
}

/* --- Captcha --- */
.captcha-group {
    margin-top: 4px;
}

.ek-captcha,
.captcha-row {
    display: grid;
    grid-template-columns: minmax(120px, 148px) 42px 42px minmax(96px, 1fr);
    gap: 8px;
    align-items: stretch;
}

.ek-captcha--compact,
.ek-captcha--with-audio {
    grid-template-columns: minmax(120px, 148px) 42px 42px minmax(96px, 1fr) !important;
}

.ek-captcha__media,
.captcha-box {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    min-width: 0;
    max-width: 148px;
    width: 100%;
    padding: 4px 6px;
    border-radius: 10px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.95) 0%, rgba(11, 18, 32, 0.98) 100%);
    border: 1px solid rgba(45, 212, 191, 0.28);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 6px 16px rgba(0, 0, 0, 0.22);
    overflow: hidden;
}

.ek-captcha__img,
.captcha-box img {
    height: 40px;
    max-width: 100%;
    width: auto;
    display: block;
    object-fit: contain;
    border-radius: 6px;
}

.ek-captcha__refresh,
.captcha-refresh,
.ek-captcha__audio,
.captcha-audio {
    width: 42px;
    min-width: 42px;
    min-height: 48px;
    border: 1px solid rgba(45, 212, 191, 0.28);
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.55);
    color: var(--pp-teal-400);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.ek-captcha__refresh:hover,
.captcha-refresh:hover,
.ek-captcha__audio:hover,
.captcha-audio:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.24);
    color: var(--pp-white);
}

.ek-captcha__input,
.captcha-field {
    min-width: 0;
    width: 100% !important;
    height: 48px !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    font-size: 14px !important;
    letter-spacing: 0.04em;
    text-align: left;
    text-transform: none;
    font-weight: 600;
    border-radius: 10px !important;
}

.ek-captcha__input:not(:placeholder-shown),
.captcha-field:not(:placeholder-shown) {
    letter-spacing: 0.18em;
    text-align: center;
    font-size: 15px !important;
    font-weight: 700;
}

.form-hint {
    font-size: 11px;
    color: var(--pp-muted-soft);
    margin-top: 4px;
}

/* --- Submit button with shine (teal - matches portal accents) --- */
.submit-btn {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    height: 50px;
    margin-top: 20px;
    padding: 0 24px;
    border: 0;
    border-radius: var(--pp-radius-sm);
    background: linear-gradient(135deg, #0f766e 0%, var(--pp-teal-500) 48%, #2dd4bf 100%);
    color: var(--pp-white);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.42), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    transition: transform 0.2s var(--pp-ease), box-shadow 0.2s ease, filter 0.2s ease;
}

.submit-btn::before {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
    animation: ppBtnShine 3.5s ease-in-out infinite;
}

@keyframes ppBtnShine {
    0%, 100% { left: -100%; }
    50% { left: 140%; }
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(15, 118, 110, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    filter: brightness(1.06);
}

.submit-btn:active {
    transform: translateY(0);
    filter: brightness(0.98);
}

.submit-btn__spinner {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #fff;
    border-radius: 50%;
    animation: ppBtnSpin 0.7s linear infinite;
}

.submit-btn.is-loading .submit-btn__spinner {
    display: inline-block;
}

.submit-btn.is-loading .submit-btn__lock,
.submit-btn.is-loading .submit-btn__label {
    opacity: 0.7;
}

@keyframes ppBtnSpin {
    to { transform: rotate(360deg); }
}

.submit-btn__lock {
    font-size: 14px;
    opacity: 0.9;
}

/* Alt actions divider */
.pp-alt {
    margin-top: 20px;
    text-align: center;
}

.pp-alt__line {
    display: block;
    position: relative;
    font-size: 11px;
    font-weight: 600;
    color: var(--pp-muted-soft);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.pp-alt__line::before,
.pp-alt__line::after {
    content: "";
    position: absolute;
    top: 50%;
    width: calc(50% - 70px);
    height: 1px;
    background: rgba(255, 255, 255, 0.12);
}

.pp-alt__line::before { left: 0; }
.pp-alt__line::after { right: 0; }

.pp-alt__row {
    display: flex;
    gap: 10px;
}

.pp-alt__btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 12px;
    border-radius: var(--pp-radius-sm);
    font-size: 12px;
    font-weight: 600;
    color: var(--pp-muted);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.pp-alt__btn:hover {
    color: var(--pp-white);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.login-footer-note {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 11px;
    color: var(--pp-muted-soft);
    text-align: center;
}

.login-footer-note i {
    color: var(--pp-teal-400);
    font-size: 12px;
}

/* ===================================================================
   PROCUREMENT FLOW
   =================================================================== */
.pp-flow {
    width: 100%;
    margin: 0;
    padding: 0;
    animation: ppFadeRise 0.8s var(--pp-ease) 0.2s both;
}

.pp-flow__inner {
    padding: 14px 16px 16px;
    border-radius: 16px;
    background: rgba(10, 18, 32, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.pp-flow__label {
    margin: 0 0 12px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.pp-flow__steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 2px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

.pp-flow__step {
    position: relative;
    flex: 1 1 0;
    min-width: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
}

.pp-flow__step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 22px;
    left: calc(50% + 22px);
    right: calc(-50% + 22px);
    border-top: 1.5px dotted rgba(255, 255, 255, 0.28);
    pointer-events: none;
}

.pp-flow__icon {
    position: relative;
    z-index: 1;
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 18px;
    transition: transform 0.25s var(--pp-ease), box-shadow 0.25s ease;
}

.pp-flow__step:hover .pp-flow__icon {
    transform: translateY(-3px) scale(1.06);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.35);
}

/* One accent family (teal → soft navy) - subtle step variation only */
.pp-flow__step--farmer .pp-flow__icon { color: #99f6e4; background: rgba(45, 212, 191, 0.1); border-color: rgba(45, 212, 191, 0.22); }
.pp-flow__step--harvest .pp-flow__icon { color: #5eead4; background: rgba(45, 212, 191, 0.1); border-color: rgba(45, 212, 191, 0.22); }
.pp-flow__step--transport .pp-flow__icon { color: #2dd4bf; background: rgba(20, 184, 166, 0.12); border-color: rgba(20, 184, 166, 0.24); }
.pp-flow__step--procure .pp-flow__icon { color: #14b8a6; background: rgba(20, 184, 166, 0.12); border-color: rgba(20, 184, 166, 0.24); }
.pp-flow__step--quality .pp-flow__icon { color: #5b9fd4; background: rgba(28, 50, 86, 0.28); border-color: rgba(91, 159, 212, 0.28); }
.pp-flow__step--storage .pp-flow__icon { color: #7eb8d9; background: rgba(28, 50, 86, 0.28); border-color: rgba(126, 184, 217, 0.28); }
.pp-flow__step--payment .pp-flow__icon { color: #2dd4bf; background: rgba(45, 212, 191, 0.12); border-color: rgba(45, 212, 191, 0.26); }

.pp-flow__name {
    font-size: 12px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.88);
    letter-spacing: 0.01em;
}

/* ===================================================================
   APP / eAUTH STRIP
   =================================================================== */
.pp-apps {
    width: 100%;
    margin: 0;
    padding: 0;
    animation: ppFadeRise 0.8s var(--pp-ease) 0.3s both;
}

.pp-apps__inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    padding: 10px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(8, 28, 34, 0.72), rgba(6, 20, 28, 0.78)),
        repeating-linear-gradient(0deg, transparent, transparent 23px, rgba(125, 211, 252, 0.04) 24px),
        repeating-linear-gradient(90deg, transparent, transparent 23px, rgba(125, 211, 252, 0.04) 24px);
    border: 1px solid rgba(125, 211, 252, 0.22);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.pp-apps__card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: rgba(10, 22, 30, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.pp-apps__card:hover {
    transform: translateY(-2px);
    border-color: rgba(125, 211, 252, 0.45);
    background: rgba(14, 32, 42, 0.75);
}

.pp-apps__icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(13, 148, 136, 0.35);
    border: 1px solid rgba(45, 212, 191, 0.35);
    color: #fff;
    font-size: 20px;
}

.pp-apps__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pp-apps__copy strong {
    font-size: 14px;
    font-weight: 700;
    color: #fff;
}

.pp-apps__copy small {
    font-size: 12px;
    color: rgba(186, 210, 220, 0.85);
}

/* ===================================================================
   MILL REGISTRATION (hero)
   =================================================================== */
.pp-mill {
    width: 100%;
    margin: 0;
    padding: 0;
    animation: ppFadeRise 0.8s var(--pp-ease) 0.28s both;
}

.pp-mill__inner {
    padding: 14px 14px 12px;
    border-radius: 14px;
    background: rgba(10, 18, 32, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.22);
}

.pp-mill__label {
    margin: 0 0 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.72);
}

.pp-mill__row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.pp-mill__card {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    transition: transform 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

a.pp-mill__card:hover {
    transform: translateY(-2px);
    border-color: rgba(240, 193, 75, 0.45);
    background: rgba(240, 193, 75, 0.08);
}

.pp-mill__card--disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.pp-mill__icon {
    width: 42px;
    height: 42px;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 11px;
    background: rgba(96, 165, 250, 0.18);
    border: 1px solid rgba(96, 165, 250, 0.35);
    color: #93c5fd;
    font-size: 17px;
}

.pp-mill__icon--mill {
    background: rgba(240, 193, 75, 0.14);
    border-color: rgba(240, 193, 75, 0.4);
    color: var(--pp-gold-400);
}

.pp-mill__copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.pp-mill__copy strong {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}

.pp-mill__copy small {
    font-size: 11px;
    color: rgba(186, 210, 220, 0.85);
    line-height: 1.3;
}

/* ===================================================================
   FOOTER
   =================================================================== */
.pp-footer {
    margin-top: auto;
    backdrop-filter: blur(var(--pp-blur));
    -webkit-backdrop-filter: blur(var(--pp-blur));
    background: rgba(36, 54, 78, 0.82);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    animation: ppFadeRise 0.8s var(--pp-ease) 0.5s both;
}

.pp-footer__grid {
    display: grid;
    grid-template-columns: 1.2fr 1.4fr 1fr 1fr auto;
    gap: 0;
    max-width: 1440px;
    margin: 0 auto;
    padding: 18px 24px 14px;
}

.pp-footer__col {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 4px 18px;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: var(--pp-muted);
}

.pp-footer__col:first-child {
    padding-left: 0;
}

.pp-footer__col:last-child {
    border-right: 0;
    padding-right: 0;
}

.pp-footer__col strong {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.92);
}

.pp-footer__col strong i {
    color: var(--pp-teal-400);
    font-size: 12px;
}

.pp-footer__phones {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

.pp-footer__phones a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-weight: 600;
    font-size: 12px;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.pp-footer__phones a:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.22);
}

.pp-footer__wa {
    color: #fff !important;
    background: rgba(34, 197, 94, 0.22) !important;
    border-color: rgba(34, 197, 94, 0.45) !important;
}

.pp-footer__wa:hover {
    background: rgba(34, 197, 94, 0.35) !important;
}

.pp-footer__social {
    display: flex;
    gap: 8px;
    margin-top: 2px;
}

.pp-footer__social a {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #fff;
    text-decoration: none;
    transition: transform 0.15s ease, background 0.15s ease;
}

.pp-footer__social a:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
}

.pp-footer__social a:nth-child(2) { color: #f87171; }
.pp-footer__social a:nth-child(3) { color: #60a5fa; }

.pp-footer__col--version {
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    min-width: 110px;
}

.pp-footer__ver {
    font-weight: 700;
    color: rgba(255, 255, 255, 0.9);
}

.pp-footer__stable {
    display: inline-flex;
    align-items: center;
    padding: 3px 10px;
    border-radius: 999px;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.45);
    color: #4ade80;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.pp-footer__bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 24px 16px;
    max-width: 1440px;
    margin: 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 12px;
    color: var(--pp-muted);
}

.pp-footer__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 24px;
    max-width: 1440px;
    margin: 0 auto;
    font-size: 12px;
    color: var(--pp-muted);
}

.pp-footer__badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.75);
}

.pp-footer__badge i {
    color: var(--pp-teal-400);
    font-size: 11px;
}

.pp-footer__copy {
    font-size: 11px;
}

.pp-footer__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

.pp-footer__meta a {
    color: var(--pp-teal-400);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.15s ease;
}

.pp-footer__meta a:hover {
    color: var(--pp-white);
    text-decoration: underline;
}

/* ===================================================================
   LIGHT THEME
   =================================================================== */
body.theme-light.Login-ek--advance {
    color: #0b1220;
    background: #dce6f0;
}

body.theme-light .pp-stage__bg {
    filter: blur(2.5px) saturate(1.06) brightness(1.06);
    opacity: 1;
}

body.theme-light .pp-stage__veil {
    background:
        linear-gradient(180deg, rgba(255, 252, 245, 0.8) 0%, rgba(252, 246, 235, 0.62) 30%, rgba(250, 245, 236, 0.6) 65%, rgba(246, 242, 234, 0.82) 100%),
        radial-gradient(ellipse 120% 90% at 50% 50%, transparent 38%, rgba(255, 250, 240, 0.5) 100%),
        radial-gradient(ellipse 80% 60% at 20% 80%, rgba(13, 148, 136, 0.1) 0%, transparent 60%);
}

body.theme-light .pp-header {
    background: rgba(248, 244, 236, 0.92);
    border-bottom: 1px solid rgba(15, 118, 110, 0.18);
    box-shadow: 0 8px 28px rgba(61, 48, 28, 0.1);
}

body.theme-light .pp-brand__text strong {
    color: #0b1220;
}

body.theme-light .pp-brand__text small {
    color: #334155;
}

body.theme-light .pp-status {
    color: #1e293b;
    background: rgba(15, 118, 110, 0.08);
    border-color: rgba(15, 118, 110, 0.22);
}

body.theme-light .lang-toggle {
    border-color: #e2e8f0;
    background: #fff;
}

body.theme-light .lang-toggle__btn {
    color: #1e293b;
}

body.theme-light .theme-toggle {
    border-color: #e2e8f0;
    background: #fff;
    color: #334155;
}

body.theme-light .nav-link {
    color: #0f172a;
}

body.theme-light .nav-link i {
    color: #0f766e;
}

body.theme-light .nav-link:hover,
body.theme-light .nav-link.active {
    color: #042f2e;
    background: rgba(15, 118, 110, 0.1);
    border-color: rgba(15, 118, 110, 0.22);
}

body.theme-light .pp-hero__kicker {
    color: #92400e !important;
    background: linear-gradient(135deg, #fef3c7, #fde68a) !important;
    border-color: #f59e0b !important;
}

body.theme-light .pp-hero__title {
    color: #0f172a !important;
    background: none !important;
    -webkit-text-fill-color: #0f172a !important;
    text-shadow: none !important;
    filter: none !important;
}

body.theme-light .pp-hero__title em {
    font-style: normal;
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 42%, #b45309 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #0f766e !important;
    filter: none !important;
}

body.theme-light .pp-hero__sub {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
    text-shadow: none !important;
    font-weight: 600;
}

body.theme-light .pp-stat {
    background: rgba(255, 253, 248, 0.88);
    border-color: rgba(15, 118, 110, 0.18);
}

body.theme-light .pp-stat__value {
    color: #0b1220;
}

body.theme-light .pp-stat__label {
    color: #334155;
}

body.theme-light .glass-chip,
body.theme-light .pp-help.glass-chip {
    background: rgba(255, 253, 248, 0.88);
    border-color: rgba(15, 118, 110, 0.18);
    color: #1e293b;
}

body.theme-light .pp-help strong {
    color: var(--pp-navy-900);
}

body.theme-light .login-card.pp-glass,
body.theme-light .login-card {
    background: linear-gradient(180deg, #fffdf8 0%, #f6efe3 100%);
    border-color: rgba(15, 118, 110, 0.22);
    box-shadow:
        0 28px 64px rgba(61, 48, 28, 0.18),
        0 0 0 1px rgba(15, 118, 110, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.9);
    color: #0b1220;
}

body.theme-light .login-eyebrow {
    color: #0f766e;
}

body.theme-light .login-title {
    color: #0b1220;
}

body.theme-light .login-subtitle {
    color: #334155 !important;
}

body.theme-light .form-label,
body.theme-light .captcha-group .form-label,
body.theme-light .form-hint,
body.theme-light .captcha-group .form-hint {
    color: #0f172a !important;
    font-weight: 600;
}

body.theme-light .forgot-inline {
    color: #0f766e;
}

body.theme-light .forgot-inline:hover {
    color: #115e59;
}

body.theme-light .ak-login-error,
body.theme-light .field-validation-error {
    color: #b91c1c !important;
}

body.theme-light .ak-login-error--global {
    background: rgba(254, 226, 226, 0.95);
    border-color: rgba(220, 38, 38, 0.35);
    color: #991b1b !important;
}

body.theme-light.Login-ek .form-input,
body.theme-light.Login-ek .ek-captcha__input,
body.theme-light.Login-ek .captcha-field,
body.theme-light.Login-ek input.form-input,
body.theme-light.Login-ek .login-card .form-input,
body.theme-light.Login-ek .login-card input[type="text"],
body.theme-light.Login-ek .login-card input[type="password"],
body.theme-light.Login-ek #UserName,
body.theme-light.Login-ek #Password,
body.theme-light.Login-ek #CaptchaText {
    background: #ffffff !important;
    border-color: #64748b !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a !important;
    box-shadow: none !important;
}

body.theme-light .form-input::placeholder,
body.theme-light .ek-captcha__input::placeholder,
body.theme-light .captcha-field::placeholder {
    color: #94a3b8 !important;
    -webkit-text-fill-color: #94a3b8 !important;
}

body.theme-light .form-input:hover,
body.theme-light .ek-captcha__input:hover,
body.theme-light .captcha-field:hover {
    background: #ffffff !important;
    border-color: #64748b !important;
}

body.theme-light .form-input:focus,
body.theme-light .ek-captcha__input:focus,
body.theme-light .captcha-field:focus {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16) !important;
}

body.theme-light .form-input:-webkit-autofill,
body.theme-light .form-input:-webkit-autofill:hover,
body.theme-light .form-input:-webkit-autofill:focus,
body.theme-light .ek-captcha__input:-webkit-autofill,
body.theme-light .captcha-field:-webkit-autofill {
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    transition: background-color 99999s ease-in-out 0s;
}

body.theme-light .input-icon {
    color: #334155 !important;
}

body.theme-light .input-group:focus-within .input-icon {
    color: #1d4ed8 !important;
}

body.theme-light .show-pass {
    color: #334155 !important;
}

body.theme-light .show-pass:hover {
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .input-group:focus-within .show-pass {
    color: #1d4ed8 !important;
}

body.theme-light .ek-captcha__media,
body.theme-light .captcha-box {
    background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%) !important;
    border: 1px solid rgba(13, 148, 136, 0.35) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.9),
        0 8px 20px rgba(15, 23, 42, 0.08) !important;
}

body.theme-light .ek-captcha__refresh,
body.theme-light .ek-captcha__audio,
body.theme-light .captcha-refresh,
body.theme-light .captcha-audio {
    background: #ffffff !important;
    border-color: rgba(13, 148, 136, 0.35) !important;
    color: #0f766e !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

body.theme-light .ek-captcha__refresh:hover,
body.theme-light .ek-captcha__audio:hover,
body.theme-light .captcha-refresh:hover,
body.theme-light .captcha-audio:hover {
    background: #f0fdfa !important;
    border-color: #0f766e !important;
    color: #0f766e !important;
}

body.theme-light .remember-user {
    color: #1e293b;
}

body.theme-light .pp-apps__icon {
    color: #0f766e;
    background: rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.28);
}

body.theme-light .font-adjuster__btn.is-active {
    background: rgba(13, 148, 136, 0.12);
    border-color: rgba(13, 148, 136, 0.4);
    color: #0f766e;
}

body.theme-light .lang-toggle__btn.is-active,
body.theme-light .lang-toggle__btn[aria-pressed="true"] {
    background: rgba(13, 148, 136, 0.16);
    color: #0f766e;
}

body.theme-light .pp-alt__btn {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.08);
    color: #475569;
}

body.theme-light .pp-alt__btn:hover {
    background: rgba(15, 23, 42, 0.08);
    color: var(--pp-navy-900);
}

body.theme-light .login-footer-note {
    color: #475569;
}

body.theme-light .pp-footer {
    background: rgba(248, 244, 236, 0.94);
    border-top: 1px solid rgba(15, 118, 110, 0.18);
}

body.theme-light .pp-footer__badge {
    background: rgba(15, 118, 110, 0.08);
    border-color: rgba(15, 118, 110, 0.22);
    color: #0f172a;
}

body.theme-light .pp-footer__copy,
body.theme-light .pp-footer__meta,
body.theme-light .pp-footer__col {
    color: #1e293b;
}

body.theme-light .pp-footer__col {
    border-right-color: rgba(15, 23, 42, 0.1);
}

body.theme-light .pp-footer__col strong,
body.theme-light .pp-footer__ver {
    color: var(--pp-navy-900);
}

body.theme-light .pp-footer__phones a,
body.theme-light .pp-footer__social a {
    background: rgba(15, 23, 42, 0.04);
    border-color: rgba(15, 23, 42, 0.1);
    color: var(--pp-navy-900);
}

body.theme-light .pp-footer__bottom {
    border-top-color: rgba(15, 23, 42, 0.08);
}

body.theme-light .pp-flow__inner,
body.theme-light .pp-apps__inner {
    background: #ffffff !important;
    border-color: #94a3b8 !important;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.14);
}

body.theme-light .pp-flow__label {
    color: #0f172a !important;
    font-weight: 800;
}

body.theme-light .pp-flow__name {
    color: #0f172a !important;
    font-weight: 700;
    font-size: 13px;
}

body.theme-light .pp-flow__step:not(:last-child)::after {
    border-top-color: rgba(15, 23, 42, 0.28) !important;
}

body.theme-light .pp-flow__icon {
    background: rgba(15, 118, 110, 0.1) !important;
    border-color: rgba(15, 118, 110, 0.28) !important;
    color: #0f766e !important;
}

body.theme-light .pp-flow__step--farmer .pp-flow__icon { color: #0f766e !important; background: #ccfbf1 !important; border-color: #14b8a6 !important; }
body.theme-light .pp-flow__step--harvest .pp-flow__icon { color: #15803d !important; background: #dcfce7 !important; border-color: #22c55e !important; }
body.theme-light .pp-flow__step--transport .pp-flow__icon { color: #1d4ed8 !important; background: #dbeafe !important; border-color: #3b82f6 !important; }
body.theme-light .pp-flow__step--procure .pp-flow__icon { color: #0f766e !important; background: #ccfbf1 !important; border-color: #14b8a6 !important; }
body.theme-light .pp-flow__step--quality .pp-flow__icon { color: #7c3aed !important; background: #ede9fe !important; border-color: #8b5cf6 !important; }
body.theme-light .pp-flow__step--storage .pp-flow__icon { color: #1e3a8a !important; background: #e0e7ff !important; border-color: #6366f1 !important; }
body.theme-light .pp-flow__step--payment .pp-flow__icon { color: #b45309 !important; background: #fef3c7 !important; border-color: #f59e0b !important; }

body.theme-light .pp-apps__card {
    background: #ffffff !important;
    border-color: rgba(15, 23, 42, 0.12) !important;
}

body.theme-light .pp-apps__copy strong {
    color: #0f172a !important;
    font-weight: 800;
}

body.theme-light .pp-apps__copy small {
    color: #1e293b !important;
    font-weight: 600;
}

body.theme-light .pp-apps__icon {
    color: #0f766e !important;
    background: rgba(15, 118, 110, 0.12) !important;
    border-color: rgba(15, 118, 110, 0.3) !important;
}

body.theme-light .pp-mill__inner {
    background: rgba(255, 255, 255, 0.72);
    border-color: rgba(15, 23, 42, 0.1);
}

body.theme-light .pp-mill__label,
body.theme-light .pp-mill__copy small {
    color: #334155;
}

body.theme-light .pp-mill__card {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(15, 23, 42, 0.1);
}

body.theme-light .pp-mill__copy strong {
    color: var(--pp-navy-900);
}

body.theme-light .nav-dropdown__panel {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.1);
}

body.theme-light .nav-dropdown__panel::before {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(15, 23, 42, 0.1);
}

body.theme-light .nav-dropdown__item {
    color: var(--pp-navy-900);
}

body.theme-light .nav-dropdown__item:hover {
    background: rgba(20, 184, 166, 0.1);
    border-color: rgba(20, 184, 166, 0.3);
}

body.theme-light .nav-dropdown__icon {
    background: linear-gradient(145deg, rgba(20, 184, 166, 0.16), rgba(13, 148, 136, 0.08));
    border-color: rgba(20, 184, 166, 0.3);
    color: #0f766e;
}

body.theme-light .nav-dropdown__item:nth-child(2) .nav-dropdown__icon {
    background: linear-gradient(145deg, rgba(240, 193, 75, 0.22), rgba(184, 134, 11, 0.1));
    border-color: rgba(184, 134, 11, 0.32);
    color: #b8860b;
}

body.theme-light .nav-dropdown__copy small {
    color: #334155;
}

body.theme-light .mobile-menu-btn {
    border-color: #e2e8f0;
    background: #fff;
    color: #334155;
}

/* ===================================================================
   RESPONSIVE
   =================================================================== */
@media (min-width: 1100px) {
    .pp-status {
        display: inline-flex;
    }
}

@media (max-width: 1024px) {
    .pp-main {
        grid-template-columns: 1fr;
        gap: 32px;
        padding-top: 24px;
        max-width: 560px;
    }

    .pp-hero {
        order: 1;
        text-align: center;
        align-items: center;
    }

    .pp-hero__kicker {
        align-self: center;
    }

    .pp-hero__sub {
        max-width: none;
    }

    .pp-card-wrap {
        order: 2;
        width: 100%;
    }

    .pp-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .pp-help.glass-chip {
        justify-content: center;
    }

    .pp-footer__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 14px;
    }

    .pp-footer__col {
        border-right: 0;
        padding: 0 8px 8px 0;
    }

    .pp-apps__inner {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .pp-header__inner {
        padding: 10px 16px;
    }

    .pp-nav.nav-menu {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        padding: 0 16px 12px;
        background: rgba(10, 18, 32, 0.97);
        border-top: 1px solid rgba(255, 255, 255, 0.08);
        overflow: visible;
    }

    .pp-nav.nav-menu.active {
        display: flex;
    }

    .nav-link {
        justify-content: flex-start;
        border-radius: var(--pp-radius-sm);
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown__panel {
        position: static;
        left: 0;
        right: 0;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid rgba(255, 255, 255, 0.08);
        margin-top: 4px;
        display: none;
        min-width: 0;
        width: 100%;
    }

    .nav-dropdown.is-open .nav-dropdown__panel {
        display: block;
    }

    .nav-dropdown:hover .nav-dropdown__panel {
        display: none;
    }

    .nav-dropdown.is-open:hover .nav-dropdown__panel {
        display: block;
    }

    .nav-dropdown__panel::before {
        display: none;
    }

    .mobile-menu-btn {
        display: inline-flex;
    }

    .pp-brand__text small {
        display: none;
    }

    .pp-main {
        padding: 20px 16px 36px;
    }

    .pp-journey__line {
        display: none;
    }

    .pp-journey__steps {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .pp-step {
        flex: 0 0 calc(33.333% - 12px);
    }

    .pp-step small {
        display: none;
    }

    .login-card.pp-glass,
    .login-card {
        padding: 24px 20px 22px;
    }

    .gigw-bar__inner {
        flex-direction: column;
        align-items: stretch;
        padding: 8px 12px;
    }

    .gigw-bar__left,
    .gigw-bar__right {
        justify-content: center;
    }

    .ek-captcha,
    .ek-captcha--compact,
    .ek-captcha--with-audio {
        grid-template-columns: minmax(96px, 120px) 38px 38px minmax(72px, 1fr) !important;
        gap: 6px;
    }

    .ek-captcha__media,
    .captcha-box {
        min-width: 0;
        max-width: 120px;
        min-height: 44px;
    }

    .ek-captcha__img,
    .captcha-box img {
        height: 34px;
        max-width: 100%;
    }

    .ek-captcha__refresh,
    .captcha-refresh,
    .ek-captcha__audio,
    .captcha-audio {
        width: 38px;
        min-width: 38px;
        min-height: 44px;
    }

    .ek-captcha__input,
    .captcha-field {
        height: 44px !important;
        font-size: 13px !important;
        letter-spacing: 0.04em;
    }

    .pp-alt__row {
        flex-direction: column;
    }

    .pp-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 16px;
        padding: 16px;
    }

    .pp-footer__col {
        border-right: 0;
        padding: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
        padding-bottom: 12px;
    }

    .pp-footer__col--version {
        align-items: flex-start;
    }

    .pp-footer__bottom {
        flex-direction: column;
        text-align: center;
        justify-content: center;
    }

    .pp-apps__inner {
        grid-template-columns: 1fr;
    }

    .pp-mill__row {
        grid-template-columns: 1fr;
    }

    .pp-flow__step:not(:last-child)::after {
        display: none;
    }

    .pp-flow__steps {
        justify-content: flex-start;
        gap: 12px;
    }

    .pp-flow__step {
        flex: 0 0 calc(33.333% - 8px);
        min-width: 0;
    }
}

@media (max-width: 480px) {
    .pp-journey {
        display: none;
    }

    .pp-flow__name {
        font-size: 10px;
    }

    .pp-flow__icon {
        width: 38px;
        height: 38px;
        font-size: 15px;
    }

    .pp-stats {
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .pp-stat {
        padding: 12px 10px;
    }

    .pp-stat__value {
        font-size: 1rem;
    }

    .pp-hero__title {
        font-size: 1.75rem;
    }

    .portal-alerts,
    .login-card.pp-glass,
    .login-card {
        max-width: 100%;
    }
}

/* ===================================================================
   REDUCED MOTION
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .pp-stage__bg {
        transform: none;
    }

    .pp-journey__draw {
        stroke-dashoffset: 0;
    }

    .pp-step {
        opacity: 1;
        transform: none;
    }

    .login-card.pp-glass,
    .login-card {
        animation: none;
    }

    .submit-btn::before {
        animation: none;
    }
}

/* ===================================================================
   LEGACY FALLBACK - body.Login-ek without --advance (NewLogIn.cshtml)
   Minimal styles so shared form selectors still render acceptably.
   =================================================================== */
body.Login-ek:not(.Login-ek--advance) {
    background: var(--pp-slate-50, #f4f7fb);
    color: var(--pp-ink);
}

body.Login-ek:not(.Login-ek--advance) .header {
    background: linear-gradient(180deg, var(--pp-navy-900) 0%, var(--pp-navy-800) 100%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.Login-ek:not(.Login-ek--advance) .header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 24px;
}

body.Login-ek:not(.Login-ek--advance) .logo-section {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.Login-ek:not(.Login-ek--advance) .emblem .main-logo {
    height: 50px;
}

body.Login-ek:not(.Login-ek--advance) .logo-text h1 {
    font-size: 16px;
    color: #fff;
}

body.Login-ek:not(.Login-ek--advance) .logo-text p {
    font-size: 12px;
    color: var(--pp-muted);
}

body.Login-ek:not(.Login-ek--advance) .main-container {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    min-height: calc(100vh - 120px);
}

body.Login-ek:not(.Login-ek--advance) .sidebar {
    background: var(--pp-navy-900);
    color: #fff;
    padding: 24px;
}

body.Login-ek:not(.Login-ek--advance) .main-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: #eef2f7;
}

body.Login-ek:not(.Login-ek--advance) .login-card {
    background: #fff;
    border-radius: var(--pp-radius-lg);
    box-shadow: 0 20px 50px rgba(6, 13, 24, 0.15);
    padding: 28px;
    max-width: 440px;
    width: 100%;
    color: var(--pp-ink);
    animation: none;
}

body.Login-ek:not(.Login-ek--advance) .form-input {
    background: #fff;
    border-color: #e2e8f0;
    color: var(--pp-ink);
}

body.Login-ek:not(.Login-ek--advance) .form-label {
    color: #475569;
}

body.Login-ek:not(.Login-ek--advance) .login-title {
    color: var(--pp-navy-900);
}

body.Login-ek:not(.Login-ek--advance) .footer {
    background: var(--pp-navy-900);
    color: var(--pp-muted);
    padding: 16px 24px;
}

@media (max-width: 900px) {
    body.Login-ek:not(.Login-ek--advance) .main-container {
        grid-template-columns: 1fr;
    }

    body.Login-ek:not(.Login-ek--advance) .sidebar {
        display: none;
    }
}

/* ===================================================================
   LIGHT MODE FORMS - final override (autofill-safe)
   =================================================================== */
body.theme-light .submit-btn {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #14b8a6 100%);
    box-shadow: 0 8px 24px rgba(15, 118, 110, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

body.theme-light .submit-btn:hover {
    box-shadow: 0 12px 32px rgba(15, 118, 110, 0.36), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

body.theme-light.Login-ek {
    color-scheme: light;
}

/* White shell so autofill grey never reads as the field fill */
body.theme-light.Login-ek .login-card .input-group {
    background: #ffffff !important;
    border: 1px solid #94a3b8 !important;
    border-radius: var(--pp-radius-sm) !important;
    box-shadow: none !important;
    overflow: hidden;
}

body.theme-light.Login-ek .login-card .input-group:focus-within {
    border-color: #0f766e !important;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.16) !important;
}

body.theme-light.Login-ek .login-card input.form-input,
body.theme-light.Login-ek .login-card input[type="text"],
body.theme-light.Login-ek .login-card input[type="password"],
body.theme-light.Login-ek .login-card #UserName,
body.theme-light.Login-ek .login-card #Password,
body.theme-light.Login-ek .login-card #CaptchaText,
body.theme-light.Login-ek .login-card .ek-captcha__input,
body.theme-light.Login-ek .login-card .captcha-field {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    border: 1px solid #94a3b8 !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    filter: none !important;
}

body.theme-light.Login-ek .login-card .input-group input.form-input,
body.theme-light.Login-ek .login-card .input-group #UserName,
body.theme-light.Login-ek .login-card .input-group #Password {
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
}

body.theme-light.Login-ek .login-card input.form-input:hover,
body.theme-light.Login-ek .login-card input[type="text"]:hover,
body.theme-light.Login-ek .login-card input[type="password"]:hover,
body.theme-light.Login-ek .login-card #UserName:hover,
body.theme-light.Login-ek .login-card #Password:hover,
body.theme-light.Login-ek .login-card #CaptchaText:hover {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #64748b !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
}

body.theme-light.Login-ek .login-card input.form-input:focus,
body.theme-light.Login-ek .login-card input[type="text"]:focus,
body.theme-light.Login-ek .login-card input[type="password"]:focus,
body.theme-light.Login-ek .login-card #UserName:focus,
body.theme-light.Login-ek .login-card #Password:focus,
body.theme-light.Login-ek .login-card #CaptchaText:focus {
    background: #ffffff !important;
    background-color: #ffffff !important;
    border-color: #0f766e !important;
    /* MUST keep white inset - focus ring alone lets grey autofill show through */
    box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 3px rgba(15, 118, 110, 0.16) !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset, 0 0 0 3px rgba(15, 118, 110, 0.16) !important;
}

body.theme-light.Login-ek .login-card .input-group input:focus {
    border: 0 !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
}

body.theme-light.Login-ek .login-card input:-webkit-autofill,
body.theme-light.Login-ek .login-card input:-webkit-autofill:hover,
body.theme-light.Login-ek .login-card input:-webkit-autofill:focus,
body.theme-light.Login-ek .login-card input:-webkit-autofill:active,
body.theme-light.Login-ek .login-card input:autofill,
body.theme-light.Login-ek .login-card input:autofill:hover,
body.theme-light.Login-ek .login-card input:autofill:focus,
body.theme-light.Login-ek .login-card input:autofill:active,
body.theme-light.Login-ek .login-card input.form-input:-webkit-autofill,
body.theme-light.Login-ek .login-card #UserName:-webkit-autofill,
body.theme-light.Login-ek .login-card #Password:-webkit-autofill,
body.theme-light.Login-ek .login-card #CaptchaText:-webkit-autofill {
    background: #ffffff !important;
    background-color: #ffffff !important;
    background-image: none !important;
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    caret-color: #0f172a !important;
    border-color: #94a3b8 !important;
    box-shadow: 0 0 0 1000px #ffffff inset !important;
    -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
    filter: none !important;
    transition: background-color 99999s ease-out 0s !important;
}

@keyframes onAutoFillStart { from {} to {} }
@keyframes onAutoFillCancel { from {} to {} }
@keyframes ekAutofillWhite {
    from { -webkit-box-shadow: 0 0 0 1000px #ffffff inset; }
    to { -webkit-box-shadow: 0 0 0 1000px #ffffff inset; }
}

body.theme-light.Login-ek .login-card input:-webkit-autofill {
    animation-name: onAutoFillStart, ekAutofillWhite;
    animation-duration: 0.001s, 0.001s;
}

/* Day mode: colorful accents, dark text on white */
body.theme-light.Login-ek,
body.theme-light.Login-ek--advance {
    color: #0f172a !important;
}

body.theme-light .pp-hero__title {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
    background-image: none !important;
}

body.theme-light .pp-hero__title em {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 45%, #b45309 100%) !important;
    -webkit-background-clip: text !important;
    background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    color: #0f766e;
    filter: none !important;
}

body.theme-light .pp-flow__inner,
body.theme-light .pp-apps__inner {
    background: #ffffff !important;
    border-color: #99f6e4 !important;
    box-shadow: 0 14px 36px rgba(15, 118, 110, 0.12);
}

body.theme-light .pp-flow__label {
    color: #0f766e !important;
    -webkit-text-fill-color: #0f766e !important;
}

body.theme-light .pp-flow__name,
body.theme-light .pp-apps__copy,
body.theme-light .pp-apps__copy strong {
    color: #0f172a !important;
    -webkit-text-fill-color: #0f172a !important;
}

body.theme-light .pp-apps__copy small {
    color: #334155 !important;
    -webkit-text-fill-color: #334155 !important;
}

body.theme-light .pp-apps__card,
body.theme-light .pp-mill__card {
    background: #ffffff !important;
    border-color: #99f6e4 !important;
}

body.theme-light .pp-step__n,
body.theme-light .pp-step span,
body.theme-light .pp-step__label {
    color: #0f172a !important;
}

body.theme-light .pp-footer__meta a {
    color: #0f766e;
}

body.theme-light .pp-footer__meta a:hover {
    color: #115e59;
}

body.theme-light .pp-card-icon {
    color: #b45309;
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(180, 83, 9, 0.28);
}

body.theme-light .submit-btn {
    background: linear-gradient(135deg, #0f766e 0%, #0d9488 50%, #14b8a6 100%);
    box-shadow: 0 10px 28px rgba(15, 118, 110, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.28);
}
