/* ═══════════════════════════════════════════════════
   LOGIN.CSS — KPK Retailer Association
   Aesthetic: Dark forest luxury + animated panel reveal
   ═══════════════════════════════════════════════════ */
/* ──────────────────────────────────────
   VARIABLES
────────────────────────────────────── */
:root {
    --p:      #00B34F;
    --pd:     #008c3f;
    --pdd:    #00512E;
    --pl:     #d0f0dd;
    --pll:    #e8f7ef;
    --sl:     #006d3e;

    --txt:    #0a1f14;
    --txt2:   #2d4a38;
    --txt3:   #6b8f7a;

    --border: #c6e8d4;
    --bg:     #f4faf7;
    --white:  #ffffff;

    --shadow-input: 0 0 0 3.5px rgba(0,179,79,.14);
    --shadow-card:  0 24px 64px rgba(0,40,20,.14), 0 8px 24px rgba(0,40,20,.08);
    --shadow-btn:   0 4px 16px rgba(0,179,79,.35), 0 2px 6px rgba(0,179,79,.2);

    /* Animation timing */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-spring:   cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ──────────────────────────────────────
   RESETS
────────────────────────────────────── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { font-size: 15px; }

body {
    font-family: 'Instrument Sans', sans-serif;
    background: var(--bg);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* ──────────────────────────────────────
   PAGE WRAPPER — clips the slide animation
────────────────────────────────────── */
.page-wrap {
    display: flex;
    min-height: 100vh;
    position: relative;
    overflow: hidden;
}

/* ══════════════════════════════════════
   LEFT PANEL — Initial: offscreen RIGHT
   Animated: slides to final left position
══════════════════════════════════════ */
.panel-left {
    width: 44%;
    flex-shrink: 0;
    background: linear-gradient(160deg, #031a0d 0%, #052c14 40%, #083d1c 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    position: relative;
    overflow: hidden;
    z-index: 10;

    /* ── SLIDE IN ANIMATION ── */
    transform: translateX(calc(100vw - 100%));
    opacity: 0;
    animation: panelSlideIn 1.1s var(--ease-out-expo) 0.1s forwards;
}

@keyframes panelSlideIn {
    0%   { transform: translateX(calc(100vw - 100%)); opacity: 1; }
    100% { transform: translateX(0); opacity: 1; }
}

/* ── Decorative orbs ── */
.pl-orb {
    position: absolute; border-radius: 50%;
    pointer-events: none;
}

.pl-orb-1 {
    width: 340px; height: 340px;
    background: radial-gradient(circle, rgba(0,179,79,.22) 0%, transparent 70%);
    bottom: -80px; left: -80px;
    animation: orbFloat 8s ease-in-out infinite;
}

.pl-orb-2 {
    width: 220px; height: 220px;
    background: radial-gradient(circle, rgba(0,179,79,.14) 0%, transparent 70%);
    top: -40px; right: -40px;
    animation: orbFloat 6s ease-in-out 2s infinite reverse;
}

.pl-orb-3 {
    width: 140px; height: 140px;
    background: radial-gradient(circle, rgba(0,255,120,.08) 0%, transparent 70%);
    top: 50%; left: 50%; transform: translate(-50%, -50%);
    animation: orbFloat 10s ease-in-out 1s infinite;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0); }
    50%       { transform: translate(8px, -12px); }
}

/* ── Dot grid texture ── */
.pl-grid {
    position: absolute; inset: 0;
    background-image: radial-gradient(circle, rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 26px 26px;
    pointer-events: none;
}

/* ── Decorative rings ── */
.pl-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(255,255,255,.06);
    pointer-events: none;
}

.pl-ring-1 { width: 500px; height: 500px; top: -200px; right: -200px; }
.pl-ring-2 { width: 300px; height: 300px; bottom: -80px; left: -80px; border-color: rgba(0,179,79,.12); }

/* ── Inner content ── */
.pl-inner {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem 3rem 1.5rem;
    position: relative; z-index: 1;
}

/* ── Brand ── */
.pl-brand { margin-bottom: 2.5rem; }

.pl-brand-icon {
    width: 54px; height: 54px;
    background: rgba(0,179,79,.15);
    border: 1px solid rgba(0,179,79,.3);
    border-radius: 15px;
    display: flex; align-items: center; justify-content: center;
    margin-bottom: 1.4rem;
    box-shadow: 0 0 20px rgba(0,179,79,.15), inset 0 1px 0 rgba(255,255,255,.08);
}

.pl-brand-icon svg {
    width: 26px; height: 26px;
    stroke: var(--p); fill: none;
    stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

.pl-brand h1 {
    font-family: 'Syne', sans-serif;
    font-size: 26px; font-weight: 800;
    color: #fff; line-height: 1.2;
    letter-spacing: -.5px;
}

.pl-brand p {
    font-size: 13px; font-weight: 400;
    color: rgba(255,255,255,.45);
    margin-top: 8px; line-height: 1.55;
}

/* ── Divider ── */
.pl-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,.1) 40%, rgba(255,255,255,.1) 60%, transparent 100%);
    margin-bottom: 2rem;
}

/* ── Stats ── */
.pl-stats {
    display: flex; gap: 12px;
    margin-bottom: 1.75rem;
}

.pl-stat {
    flex: 1;
    background: rgba(255,255,255,.05);
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 14px;
    padding: 14px 12px;
    text-align: center;
    transition: background 0.25s;
}

.pl-stat:hover { background: rgba(255,255,255,.09); }

.pl-stat-val {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 20px; font-weight: 700;
    color: var(--p); line-height: 1;
    margin-bottom: 6px;
}

.pl-stat-lbl {
    font-size: 10px; font-weight: 600;
    color: rgba(255,255,255,.4);
    text-transform: uppercase; letter-spacing: .07em;
    font-family: 'Syne', sans-serif;
}

/* ── Info card ── */
.pl-info-card {
    background: rgba(0,179,79,.07);
    border: 1px solid rgba(0,179,79,.18);
    border-radius: 14px;
    padding: 16px 18px;
    display: flex; align-items: flex-start; gap: 13px;
}

.pl-info-icon {
    width: 34px; height: 34px; flex-shrink: 0;
    background: rgba(0,179,79,.15); border: 1px solid rgba(0,179,79,.25);
    border-radius: 9px;
    display: flex; align-items: center; justify-content: center;
    margin-top: 1px;
}

.pl-info-icon svg { width: 15px; height: 15px; stroke: var(--p); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.pl-info-card p { font-size: 12.5px; line-height: 1.6; color: rgba(255,255,255,.6); font-style: italic; }

/* ── Footer ── */
.pl-footer {
    padding: 1rem 3rem;
    border-top: 1px solid rgba(255,255,255,.06);
    font-size: 11px; color: rgba(255,255,255,.25);
    position: relative; z-index: 1;
    font-family: 'JetBrains Mono', monospace;
}

/* ── Staggered reveal items ── */
.pl-reveal {
    opacity: 0;
    transform: translateY(16px);
    animation: revealUp 0.6s var(--ease-out-expo) forwards;
}

.pl-reveal[data-delay="0"] { animation-delay: 0.85s; }
.pl-reveal[data-delay="1"] { animation-delay: 1.0s;  }
.pl-reveal[data-delay="2"] { animation-delay: 1.15s; }
.pl-reveal[data-delay="3"] { animation-delay: 1.3s;  }

@keyframes revealUp {
    to { opacity: 1; transform: translateY(0); }
}

/* ══════════════════════════════════════
   RIGHT PANEL — Login Form
══════════════════════════════════════ */
.panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--bg);
    position: relative;
}

/* Subtle background mesh */
.panel-right::before {
    content: '';
    position: absolute; inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(0,179,79,.05) 0%, transparent 60%),
        radial-gradient(ellipse 40% 40% at 20% 80%, rgba(0,179,79,.04) 0%, transparent 60%);
    pointer-events: none;
}

/* Login box reveal */
.login-box {
    width: 100%;
    max-width: 420px;
    position: relative; z-index: 1;
    opacity: 0;
    transform: translateX(20px);
    animation: loginBoxReveal 0.7s var(--ease-out-expo) 0.9s forwards;
}

@keyframes loginBoxReveal {
    to { opacity: 1; transform: translateX(0); }
}

/* ── Login Heading ── */
.lb-heading { margin-bottom: 2rem; }

.lb-badge {
    display: inline-flex; align-items: center; gap: 6px;
    font-family: 'Syne', sans-serif;
    font-size: 10.5px; font-weight: 700;
    text-transform: uppercase; letter-spacing: .1em;
    color: var(--sl);
    background: var(--pll); border: 1px solid var(--border);
    padding: 4px 12px; border-radius: 20px;
    margin-bottom: 14px;
}

.lb-badge svg { width: 12px; height: 12px; stroke: var(--sl); fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.lb-heading h2 {
    font-family: 'Syne', sans-serif;
    font-size: 28px; font-weight: 800;
    color: var(--txt); letter-spacing: -.6px; line-height: 1.15;
    margin-bottom: 6px;
}

.lb-heading p { font-size: 13.5px; color: var(--txt3); }

/* ── Alerts ── */
.lb-alert {
    display: flex; align-items: flex-start; gap: 10px;
    padding: 12px 14px; border-radius: 11px;
    font-size: 13px; font-weight: 500;
    margin-bottom: 1.4rem; border: 1px solid;
    animation: alertSlide .3s var(--ease-out-expo);
}

@keyframes alertSlide {
    from { opacity: 0; transform: translateY(-8px); }
    to   { opacity: 1; transform: translateY(0); }
}

.lb-alert svg { width: 16px; height: 16px; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; margin-top: 1px; }

.lb-alert--error   { background: #fff1f1; color: #b91c1c; border-color: #fecaca; }
.lb-alert--error svg { stroke: #b91c1c; }
.lb-alert--success { background: var(--pll); color: var(--pdd); border-color: var(--border); }
.lb-alert--success svg { stroke: var(--pd); }

/* ── Form Fields ── */
.lb-field { margin-bottom: 1.1rem; }

.lb-field label {
    display: block;
    font-size: 12.5px; font-weight: 700;
    color: var(--txt2); margin-bottom: 7px;
    letter-spacing: .01em;
    font-family: 'Syne', sans-serif;
}

.lb-input-wrap {
    position: relative;
    display: block;
    width: 100%;
}

.lb-ico {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    width: 16px; height: 16px;
    stroke: var(--txt3); fill: none;
    stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
    pointer-events: none;
    transition: stroke 0.2s;
    z-index: 2;
}

.lb-input-wrap:focus-within .lb-ico { stroke: var(--p); }

.lb-input-wrap input {
    width: 100%;
    height: 48px;
    padding: 0 50px 0 42px;
    border: 1.5px solid var(--border);
    border-radius: 12px;
    font-size: 14px;
    font-family: 'Instrument Sans', sans-serif;
    color: var(--txt);
    background: var(--white);
    outline: none;
    transition: border-color .2s, box-shadow .2s, background .2s;
}

.lb-input-wrap input::placeholder { color: #b0c8ba; }

.lb-input-wrap input:focus {
    border-color: var(--p);
    box-shadow: var(--shadow-input);
    background: #fff;
}

.lb-input-wrap input:hover:not(:focus) {
    border-color: #a0d4b4;
}

/* ═══════════════════════════════════════════════════
   PASSWORD TOGGLE EYE BUTTON STYLES (FIXED)
   ═══════════════════════════════════════════════════ */

/* Eye Button Container - Fixed positioning */
.lb-eye {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    transition: all 0.2s ease;
}

/* Eye Button SVG Icons */
.lb-eye svg {
    width: 18px;
    height: 18px;
    stroke: #8baF9a;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: all 0.2s ease;
}

/* Hide both icons by default, show based on state */
.lb-eye .eye-show,
.lb-eye .eye-hide {
    display: none;
}

/* Show eye-open icon when state is hidden (password mode) */
.lb-eye[data-state="hidden"] .eye-show {
    display: block;
}

/* Show eye-closed icon when state is visible (text mode) */
.lb-eye[data-state="visible"] .eye-hide {
    display: block;
}

/* Eye Button Hover Effect */
.lb-eye:hover {
    background: rgba(0, 179, 79, 0.08);
}

.lb-eye:hover svg {
    stroke: #00B34F;
}

/* Eye Button Active/Click Effect */
.lb-eye:active {
    transform: translateY(-50%) scale(0.95);
}

/* Eye Button Focus (Accessibility) */
.lb-eye:focus-visible {
    outline: 2px solid #00B34F;
    outline-offset: 2px;
    background: rgba(0, 179, 79, 0.05);
}

/* Disabled state for eye button */
.lb-eye:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.lb-eye:disabled:hover {
    background: transparent;
}

/* Tooltip on hover */
.lb-eye::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: #0a1f14;
    color: white;
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
    font-family: 'JetBrains Mono', monospace;
    z-index: 100;
}

.lb-eye::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid #0a1f14;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s ease;
    pointer-events: none;
}

.lb-eye:hover::after,
.lb-eye:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Animation for eye icon transition */
.lb-eye svg {
    animation: eyeFade 0.2s ease;
}

@keyframes eyeFade {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lb-hint { 
    font-size: 11px; 
    color: var(--txt3); 
    margin-top: 5px; 
    display: block; 
}

/* ── Remember row ── */
.lb-row {
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    margin-bottom: 1.5rem; 
    margin-top: .3rem;
}

.lb-remember {
    display: flex; 
    align-items: center; 
    gap: 8px;
    font-size: 13px; 
    color: var(--txt2); 
    cursor: pointer;
    font-weight: 500;
}

/* Custom checkbox */
.lb-check-wrap { 
    position: relative; 
    display: inline-flex; 
}
.lb-check-wrap input { 
    position: absolute; 
    opacity: 0; 
    width: 0; 
    height: 0; 
}
.lb-checkmark {
    width: 17px; 
    height: 17px;
    border: 1.5px solid var(--border);
    border-radius: 5px; 
    background: var(--white);
    display: inline-flex; 
    align-items: center; 
    justify-content: center;
    transition: all .18s; 
    flex-shrink: 0;
}
.lb-check-wrap input:checked ~ .lb-checkmark {
    background: var(--p); 
    border-color: var(--p);
}
.lb-checkmark::after {
    content: '';
    width: 5px; 
    height: 9px;
    border-right: 2px solid #fff; 
    border-bottom: 2px solid #fff;
    transform: rotate(45deg) scaleY(0);
    transform-origin: bottom;
    transition: transform .18s;
    margin-top: -2px;
}
.lb-check-wrap input:checked ~ .lb-checkmark::after {
    transform: rotate(45deg) scaleY(1);
}

/* ── Submit Button ── */
.lb-submit {
    width: 100%; 
    height: 48px;
    background: linear-gradient(135deg, var(--p) 0%, var(--pd) 100%);
    color: #fff; 
    border: none; 
    border-radius: 12px;
    font-size: 15px; 
    font-weight: 700;
    font-family: 'Syne', sans-serif;
    cursor: pointer; 
    letter-spacing: -.1px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 10px;
    position: relative; 
    overflow: hidden;
    transition: transform .15s, box-shadow .15s;
    box-shadow: var(--shadow-btn);
}

/* Shimmer sweep on hover */
.lb-submit::before {
    content: '';
    position: absolute; 
    top: 0; 
    left: -100%;
    width: 80%; 
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
    transition: left .5s;
}
.lb-submit:hover::before { left: 120%; }
.lb-submit:hover { 
    transform: translateY(-2px); 
    box-shadow: 0 8px 24px rgba(0,179,79,.4), 0 3px 8px rgba(0,179,79,.25); 
}
.lb-submit:active { 
    transform: translateY(0); 
    box-shadow: var(--shadow-btn); 
}

.lb-submit-icon svg { 
    width: 16px; 
    height: 16px; 
    stroke: #fff; 
    fill: none; 
    stroke-width: 2.5; 
    stroke-linecap: round; 
    stroke-linejoin: round; 
}

/* Captcha styles */
.captcha-container {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.captcha-code {
    background: linear-gradient(135deg, #f5f7fa 0%, #e9ecef 100%);
    padding: 12px 20px;
    border-radius: 12px;
    font-family: 'Courier New', monospace;
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 4px;
    text-align: center;
    flex: 1;
    border: 1px solid #dee2e6;
}

.captcha-refresh {
    background: #6c5ce7;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.captcha-refresh:hover {
    background: #5b4bc4;
    transform: rotate(180deg);
}

.captcha-refresh svg {
    width: 20px;
    height: 20px;
    stroke: white;
    fill: none;
    stroke-width: 2;
}

/* Modal Styles */
.lb-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1001;
    width: 90%;
    max-width: 450px;
    animation: modalSlideIn 0.3s ease;
}

.lb-modal-content {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.lb-modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lb-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
}

.lb-modal-close {
    background: none;
    border: none;
    font-size: 28px;
    cursor: pointer;
    color: #6c757d;
    transition: color 0.3s;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.lb-modal-close:hover {
    color: #dc3545;
    background: rgba(220, 53, 69, 0.1);
}

.lb-modal-body {
    padding: 24px;
}

.lb-modal-icon {
    text-align: center;
    margin-bottom: 20px;
}

.lb-modal-icon svg {
    width: 60px;
    height: 60px;
    stroke: #6c5ce7;
    stroke-width: 1.5;
    fill: none;
}

.lb-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    z-index: 1000;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -60%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

/* Loading state */
.lb-submit--loading {
    opacity: 0.7;
    cursor: not-allowed;
}

.lb-submit-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error styles */
.lb-error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.lb-input-error {
    border-color: #dc3545 !important;
    background-color: #fff5f5 !important;
}

.lb-field-error {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    font-size: 12px;
    color: #dc3545;
}

.lb-field-error svg {
    stroke: #dc3545;
    fill: none;
}

/* Shake animation */
.lb-shake {
    animation: lbShakeAnim 0.4s ease-in-out;
}

@keyframes lbShakeAnim {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Security Warning Styles */
.lb-security-warning {
    position: fixed;
    top: 20px;
    right: 20px;
    left: 20px;
    max-width: 450px;
    margin: 0 auto;
    z-index: 10000;
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.lb-security-warning--show {
    transform: translateX(0);
}

.lb-security-warning-content {
    background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
    border-left: 4px solid #dc3545;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 10px 40px rgba(220, 53, 69, 0.2);
}

.lb-security-warning-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: #dc3545;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-security-warning-icon svg {
    width: 24px;
    height: 24px;
    stroke: white;
    fill: none;
}

.lb-security-warning-text {
    flex: 1;
}

.lb-security-warning-text strong {
    display: block;
    color: #dc3545;
    font-size: 14px;
    margin-bottom: 4px;
}

.lb-security-warning-text p {
    margin: 0;
    font-size: 13px;
    color: #721c24;
    line-height: 1.4;
}

.lb-security-warning-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #dc3545;
    opacity: 0.7;
    transition: opacity 0.3s;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.lb-security-warning-close:hover {
    opacity: 1;
    background: rgba(220, 53, 69, 0.1);
}

/* Toast Styles */
.lb-toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10001;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    transform: translateX(120%);
    transition: transform 0.3s ease;
}

.lb-toast--show {
    transform: translateX(0);
}

.lb-toast--hide {
    transform: translateX(120%);
}

.lb-toast-content {
    display: flex;
    align-items: center;
    padding: 16px;
    gap: 12px;
}

.lb-toast-icon {
    flex-shrink: 0;
}

.lb-toast-icon svg {
    width: 24px;
    height: 24px;
}

.lb-toast--success .lb-toast-icon svg {
    stroke: #28a745;
    fill: none;
}

.lb-toast--error .lb-toast-icon svg {
    stroke: #dc3545;
    fill: none;
}

.lb-toast--info .lb-toast-icon svg {
    stroke: #17a2b8;
    fill: none;
}

.lb-toast-title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 4px;
}

.lb-toast-message {
    font-size: 13px;
    color: #666;
}

.lb-toast-close {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #999;
    padding: 8px;
    margin-left: auto;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.lb-toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
}

/* Ripple Animation */
@keyframes lbRippleAnim {
    0% {
        width: 0;
        height: 0;
        opacity: 0.5;
    }
    100% {
        width: 200px;
        height: 200px;
        opacity: 0;
    }
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 900px) {
    .page-wrap { flex-direction: column; }

    .panel-left {
        width: 100%;
        transform: translateY(-120%);
        animation: panelSlideInMobile 1s var(--ease-out-expo) 0.1s forwards;
    }

    @keyframes panelSlideInMobile {
        to { transform: translateY(0); opacity: 1; }
    }

    .pl-inner { padding: 2rem 1.75rem 1rem; }
    .pl-footer { padding: .75rem 1.75rem; }
    .pl-brand h1 { font-size: 22px; }
    .pl-stats { gap: 8px; }
    .pl-stat { padding: 10px 8px; }
    .pl-stat-val { font-size: 17px; }

    .panel-right { padding: 1.5rem 1.25rem 2rem; }
    .login-box { max-width: 100%; animation-delay: 0.85s; }

    .lb-heading h2 { font-size: 24px; }
}

@media (max-width: 768px) {
    .lb-eye {
        padding: 6px;
        right: 8px;
        width: 32px;
        height: 32px;
    }
    
    .lb-eye svg {
        width: 16px;
        height: 16px;
    }
    
    .lb-input-wrap input {
        height: 44px;
        padding: 0 46px 0 38px;
        font-size: 13px;
    }
    
    .lb-ico {
        left: 12px;
        width: 14px;
        height: 14px;
    }

    .lb-submit {
        height: 44px;
        font-size: 14px;
    }
    
    .lb-modal {
        width: 95%;
        max-width: 400px;
    }
    
    .lb-toast {
        min-width: 280px;
        max-width: 350px;
    }
}

@media (max-width: 480px) {
    .pl-info-card { flex-direction: column; gap: 10px; }
    .pl-stats { gap: 6px; }
    .lb-submit { height: 42px; }
    
    .lb-modal-body {
        padding: 20px;
    }
    
    .lb-toast {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .lb-eye svg {
        stroke: #000000;
    }
    
    .lb-eye:hover svg {
        stroke: #000000;
    }
    
    .lb-eye:focus-visible {
        outline: 3px solid #000000;
    }
}

/* Reduced Motion Preference */
@media (prefers-reduced-motion: reduce) {
    .lb-eye,
    .lb-eye svg,
    .panel-left,
    .login-box,
    .pl-stat,
    .pl-info-card {
        transition: none;
        animation: none;
    }
    
    .lb-eye:active {
        transform: translateY(-50%);
    }
    
    .panel-left {
        transform: translateX(0);
        opacity: 1;
    }
    
    .login-box {
        opacity: 1;
        transform: none;
    }
}

/* Dark Mode Support */
@media (prefers-color-scheme: dark) {
    .lb-eye svg {
        stroke: #a0c2b2;
    }
    
    .lb-eye:hover svg {
        stroke: #00B34F;
    }
    
    .lb-eye::after {
        background: #1a3a2a;
        color: #e8f0ec;
    }
    
    .lb-eye::before {
        border-top-color: #1a3a2a;
    }
}

/* ═══════════════════════════════════════════════
   LOGO STYLES - KPK Retailer Association
   ═══════════════════════════════════════════════ */

/* Logo Image */
.pl-logo-img {
    width: 55px;
    height: 55px;
    object-fit: contain;
    transition: transform 0.3s ease;
    background-color: white;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Logo Hover Effect */
.pl-brand-icon:hover {
    transform: scale(1.05);
    background: linear-gradient(135deg, rgba(255,255,255,.2) 0%, rgba(255,255,255,.08) 100%);
    border-color: rgba(255,255,255,.35);
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.pl-brand-icon:hover .pl-logo-img {
    transform: scale(1.02);
}

/* Fallback SVG (if image fails to load) */
.pl-logo-fallback {
    width: 42px;
    height: 42px;
    stroke: #fff;
    stroke-width: 1.5;
    fill: none;
    transition: transform 0.3s ease;
}

.pl-brand-icon:hover .pl-logo-fallback {
    transform: scale(1.02);
}

/* Logo Animation on Page Load */
@keyframes logoReveal {
    0% {
        opacity: 0;
        transform: scale(0.8) rotate(-5deg);
    }
    100% {
        opacity: 1;
        transform: scale(1) rotate(0deg);
    }
}

.pl-brand-icon {
    animation: logoReveal 0.5s cubic-bezier(0.34, 1.2, 0.64, 1) forwards;
}

/* Responsive Logo Sizes */
@media (max-width: 768px) {
    .pl-brand-icon {
        width: 65px;
        height: 65px;
        border-radius: 18px;
        margin-bottom: 18px;
    }
    
    .pl-logo-img {
        width: 45px;
        height: 45px;
    }
    
    .pl-logo-fallback {
        width: 35px;
        height: 35px;
    }
}

@media (max-width: 480px) {
    .pl-brand-icon {
        width: 55px;
        height: 55px;
        border-radius: 15px;
        margin-bottom: 15px;
    }
    
    .pl-logo-img {
        width: 38px;
        height: 38px;
    }
    
    .pl-logo-fallback {
        width: 30px;
        height: 30px;
    }
}

/* Dark/Light Mode Support */
@media (prefers-color-scheme: light) {
    .pl-brand-icon {
        background: linear-gradient(135deg, rgba(0,179,79,.12) 0%, rgba(0,179,79,.05) 100%);
        border-color: rgba(0,179,79,.2);
    }
    
    .pl-logo-img {
        filter: drop-shadow(0 2px 4px rgba(0,0,0,0.05));
    }
}

/* Loading State for Logo */
.pl-logo-img[src=""] {
    opacity: 0;
}

.pl-logo-img:not([src]) {
    opacity: 0;
}

/* Pulse Effect on Logo (Optional) */
@keyframes logoPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255,255,255,0.2);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(255,255,255,0);
    }
}

.pl-brand-icon.pulse {
    animation: logoPulse 1.5s infinite;
}