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

:root {
    --teal: #2AABA0;
    --teal-dark: #1D8C82;
    --teal-light: #D0F0EE;
    --bg-plain: #E8F8F7;
    --glass-bg: rgba(255,255,255,0.18);
    --glass-border: rgba(255,255,255,0.38);
    --glass-shadow: rgba(0,0,0,0.18);
    --field-bg: rgba(255,255,255,0.82);
    --field-bg-img: rgba(255,255,255,0.22);
    --field-border: rgba(255,255,255,0.6);
    --text-dark: #1A2332;
    --text-muted: #4A5568;
    --btn-bg: #ffffff;
    --btn-color: #1A2332;
}

html, body {
    height: 100%;
    /*font-family: 'DM Sans', sans-serif;*/
    font-family: var(--mrep-font) !important;
}

#app {
    min-height: 100vh;
    height: 100vh;
    overflow: hidden;
    display: flex;
    align-items: stretch;
    position: relative;
    background: var(--bg-plain);
    transition: background 0.5s ease;
}

#bg-image-layer {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 0;
}

    #bg-image-layer.active {
        opacity: 1;
    }

#bg-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.45) 0%, rgba(0,60,56,0.55) 100%);
    opacity: 0;
    transition: opacity 0.6s ease;
    z-index: 1;
    pointer-events: none;
}

    #bg-overlay.active {
        opacity: 1;
    }

.teal-shape {
    position: absolute;
    z-index: 0;
    transition: opacity 0.5s ease;
}

.shape-1 {
    bottom: -60px;
    right: 0;
    width: 55%;
    height: 200px;
    background: var(--teal);
    transform: skewY(-4deg);
    transform-origin: right;
    border-radius: 12px 0 0 0;
}

.shape-2 {
    bottom: -40px;
    right: 0;
    width: 62%;
    height: 120px;
    background: var(--teal-dark);
    transform: skewY(-3deg);
    transform-origin: right;
    opacity: 0.7;
}

body.has-image .teal-shape {
    opacity: 0;
    pointer-events: none;
}

/* =============================================
   LEFT PANEL — default for laptop ~1366px
   ============================================= */
.left-panel {
    position: relative;
    z-index: 10;
    flex: 0 0 440px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px 52px;
    transition: background 0.5s ease, backdrop-filter 0.5s ease;
}

    .left-panel.plain {
        background: transparent;
    }

    .left-panel.glassy {
        background: var(--glass-bg);
        backdrop-filter: blur(20px) saturate(1.4);
        -webkit-backdrop-filter: blur(20px) saturate(1.4);
        border-right: 1px solid var(--glass-border);
        box-shadow: 4px 0 40px var(--glass-shadow);
    }

/* ---- LOGO ---- */
.logo {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    margin-bottom: 22px;
    /*font-family: 'Sora', sans-serif;*/
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    transition: color 0.4s;
}

.max-logo {
    width: 70% !important;
}

.logo-m {
    background: var(--teal);
    color: #fff;
    padding: 4px 10px;
    border-radius: 4px 0 0 4px;
}

.logo-rep {
    background: var(--teal-dark);
    color: #fff;
    padding: 4px 10px;
    border-radius: 0 4px 4px 0;
}

body.has-image .logo-m {
    background: rgba(42,171,160,0.85);
}

body.has-image .logo-rep {
    background: rgba(29,140,130,0.85);
}

/* ---- HEADINGS ---- */
.login-heading {
    margin-bottom: 8px;
    /*font-family: 'Sora', sans-serif;*/
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    transition: color 0.4s;
    line-height: 1.2;
}

.login-sub {
    font-size: 0.9rem;
    color: var(--text-muted);
    margin-bottom: 20px;
    transition: color 0.4s;
}

body.has-image .login-heading {
    color: #fff;
}

body.has-image .login-sub {
    color: rgba(255,255,255,0.75);
}

/* ---- FIELDS ---- */
.field-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.field-wrap {
    display: flex;
    flex-direction: column;
}

.field-input-row {
    display: flex !important;
    align-items: center !important;
    position: relative !important;
}

.field-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #888;
    pointer-events: none;
}

.field-error {
    color: #e74c3c;
    font-size: 0.75rem;
    margin-top: 4px;
    padding-left: 4px;
    display: block;
    min-height: 18px;
}

.field-wrap:focus-within .field-icon {
    opacity: 1;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 12px 18px 12px 48px;
    border-radius: 12px;
    border: 1.5px solid rgba(42,171,160,0.25);
    /*font-family: 'DM Sans', sans-serif;*/
    font-family: var(--mrep-font) !important;
    font-size: 0.95rem;
    font-weight: 500;
    outline: none;
    transition: all 0.35s ease;
    color: var(--text-dark);
    background: var(--field-bg);
}

body:not(.has-image) input[type="text"],
body:not(.has-image) input[type="password"] {
    background: rgba(255,255,255,0.78);
    border-color: rgba(42,171,160,0.2);
    box-shadow: 0 2px 12px rgba(42,171,160,0.08);
    color: #1A2332;
}

body:not(.has-image) input::placeholder {
    color: #8bb8b4;
}

body.has-image input[type="text"],
body.has-image input[type="password"] {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15), inset 0 1px 0 rgba(255,255,255,0.2);
    color: #ffffff;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.has-image input::placeholder {
    color: rgba(255,255,255,0.6);
}

input:focus {
    border-color: var(--teal) !important;
    box-shadow: 0 0 0 3px rgba(42,171,160,0.18) !important;
}

body.has-image input:focus {
    border-color: rgba(255,255,255,0.7) !important;
    box-shadow: 0 0 0 3px rgba(255,255,255,0.15) !important;
    background: rgba(255,255,255,0.22) !important;
}

/* ---- BUTTON ---- */
.btn-signin {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 12px;
    /*font-family: 'DM Sans', sans-serif;*/
    font-family: var(--mrep-font) !important;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    letter-spacing: 0.3px;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

body:not(.has-image) .btn-signin {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 4px 20px rgba(42,171,160,0.35);
}

    body:not(.has-image) .btn-signin:hover {
        background: var(--teal-dark);
        transform: translateY(-1px);
        box-shadow: 0 6px 28px rgba(42,171,160,0.45);
    }

body.has-image .btn-signin {
    background: rgba(255,255,255,0.92);
    color: var(--teal-dark);
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

    body.has-image .btn-signin:hover {
        background: #fff;
        transform: translateY(-1px);
        box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    }

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

/* ---- UPLOAD ---- */
.bg-upload-area {
    margin-top: 20px;
    border-top: 1px solid rgba(42,171,160,0.15);
    padding-top: 16px;
}

body.has-image .bg-upload-area {
    border-top-color: rgba(255,255,255,0.15);
}

.bg-label {
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
    margin-bottom: 12px;
    display: block;
    transition: color 0.4s;
}

body.has-image .bg-label {
    color: rgba(255,255,255,0.6);
}

.upload-row {
    display: flex;
    gap: 10px;
    align-items: center;
}

.upload-btn {
    flex: 1;
    padding: 10px 16px;
    border-radius: 10px;
    border: 1.5px dashed rgba(42,171,160,0.35);
    background: rgba(255,255,255,0.5);
    /*font-family: 'Quicksand'  !important;*/
    font-size: 0.82rem;
    color: var(--teal-dark);
    cursor: pointer;
    transition: all 0.25s;
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

    .upload-btn:hover {
        background: rgba(42,171,160,0.08);
        border-color: var(--teal);
    }

body.has-image .upload-btn {
    border-color: rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.85);
}

    body.has-image .upload-btn:hover {
        background: rgba(255,255,255,0.2);
        border-color: rgba(255,255,255,0.55);
    }

.remove-btn {
    padding: 10px 14px;
    border-radius: 10px;
    border: 1.5px solid rgba(220,80,80,0.3);
    background: rgba(220,80,80,0.08);
    /*font-family: 'DM Sans', sans-serif;*/
    font-size: 0.82rem;
    color: #c0392b;
    cursor: pointer;
    transition: all 0.25s;
    font-weight: 500;
    white-space: nowrap;
    display: none;
}

    .remove-btn.visible {
        display: block;
    }

    .remove-btn:hover {
        background: rgba(220,80,80,0.15);
        border-color: #c0392b;
    }

body.has-image .remove-btn {
    border-color: rgba(255,120,120,0.4);
    background: rgba(255,80,80,0.15);
    color: #ffaaaa;
}

#file-input {
    display: none;
}

.filename-badge {
    font-size: 0.75rem;
    color: var(--teal-dark);
    margin-top: 8px;
    opacity: 0;
    transition: opacity 0.3s;
    font-style: italic;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

    .filename-badge.visible {
        opacity: 1;
    }

body.has-image .filename-badge {
    color: rgba(255,255,255,0.65);
}

/* =============================================
   RIGHT PANEL
   ============================================= */
.right-panel {
    flex: 1;
    position: relative;
    z-index: 5;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}

/* phone-mockup — scale via media queries ONLY (no vw trick) */
.phone-mockup {
    position: relative;
    width: 260px;
    transform: scale(0.88);
    transform-origin: center center;
    transition: filter 0.5s ease, opacity 0.5s ease;
}

body.has-image .phone-mockup {
    filter: drop-shadow(0 20px 60px rgba(0,0,0,0.4));
    opacity: 0.9;
}

.phone-frame {
    width: 260px;
    height: 520px;
    background: #0d0d0d;
    border-radius: 33px;
    padding: 2px;
    box-shadow: 0 30px 80px rgba(0,0,0,0.3), inset 0 0 0 1px rgba(255,255,255,0.08);
    position: relative;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: #ffffff;
    border-radius: 32px;
    overflow: hidden;
    padding: 14px 12px 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
    position: relative;
}

.phone-notch {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #1a1a1a;
    border-radius: 4px;
    z-index: 2;
}

/* ---- status bar ---- */
.ps-status { display: flex; align-items: center; justify-content: space-between; font-size: 0.62rem; color: #2b3340; }
.ps-time { font-weight: 700; letter-spacing: .3px; }
.ps-sys { display: flex; align-items: center; gap: 3px; color: #2b3340; }
.ps-sys svg { width: 9px; height: 9px; }
.ps-sig { display: inline-flex; align-items: flex-end; gap: 1px; height: 9px; }
.ps-sig i { width: 2px; background: #2b3340; border-radius: 1px; }
.ps-sig i:nth-child(1) { height: 3px; } .ps-sig i:nth-child(2) { height: 5px; }
.ps-sig i:nth-child(3) { height: 7px; } .ps-sig i:nth-child(4) { height: 9px; }
.ps-batt { position: relative; width: 15px; height: 8px; border: 1px solid #2b3340; border-radius: 2px; padding: 1px; }
.ps-batt::after { content: ""; position: absolute; right: -3px; top: 2px; width: 2px; height: 4px; background: #2b3340; border-radius: 0 1px 1px 0; }
.ps-batt-fill { display: block; width: 40%; height: 100%; background: #e0a92e; border-radius: 1px; }
.ps-pct { font-size: 0.55rem; font-weight: 700; }

/* ---- header ---- */
.ps-header { display: flex; align-items: center; gap: 8px; }
.ps-burger { display: flex; flex-direction: column; gap: 3px; width: 16px; }
.ps-burger i { height: 2px; background: #1A2332; border-radius: 2px; }
.ps-burger i:nth-child(2) { width: 70%; }
.ps-welcome { flex: 1; line-height: 1.12; }
.ps-welcome span { display: block; font-size: 0.62rem; color: #1A2332; font-weight: 600; }
.ps-welcome b { display: block; font-size: 0.8rem; color: #1A2332; font-weight: 800; }
.ps-refresh { width: 24px; height: 24px; border-radius: 7px; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.14); display: flex; align-items: center; justify-content: center; color: var(--teal); }
.ps-refresh svg { width: 13px; height: 13px; }

/* ---- tabs ---- */
.mini-tabs { display: flex; gap: 6px; background: #eaf6f5; border-radius: 11px; padding: 3px; }
.mini-tab { flex: 1; text-align: center; font-size: 0.64rem; font-weight: 700; padding: 7px 5px; border-radius: 9px; }
    .mini-tab.active { background: var(--teal); color: #fff; box-shadow: 0 2px 6px rgba(42,171,160,.35); }
    .mini-tab.inactive { background: transparent; color: #5b8f8a; }

/* ---- filter chips ---- */
.ps-filter { display: flex; align-items: center; gap: 5px; }
.ps-filter-lbl { display: inline-flex; align-items: center; gap: 3px; font-size: 0.6rem; color: #5b6673; font-weight: 600; }
.ps-filter-lbl svg { width: 11px; height: 11px; color: var(--teal); }
.ps-chip { font-size: 0.58rem; font-weight: 700; padding: 3px 11px; border-radius: 11px; }
.ps-chip-a { background: #fbe0e4; color: #c2455c; }
.ps-chip-b { background: #f7dfa0; color: #8a6a10; }

/* ---- card shell ---- */
.mini-card { background: #fff; border-radius: 12px; padding: 10px; box-shadow: 0 2px 10px rgba(0,0,0,0.06); border: 1px solid #f0f2f4; }
.mini-card-title { font-size: 0.72rem; font-weight: 800; color: #1A2332; }

/* ---- sales card ---- */
.ps-sales { padding: 9px 10px; flex: 1; display: flex; flex-direction: column; min-height: 0; }
.ps-sales-head { display: flex; justify-content: space-between; align-items: flex-start; border-bottom: 1px solid #eef1f3; padding-bottom: 6px; }
.ps-refresh-at { font-size: 0.48rem; color: #8a929c; text-align: right; line-height: 1.3; }
.ps-refresh-at svg { width: 9px; height: 9px; vertical-align: middle; margin-left: 2px; }
.ps-closed { font-size: 0.56rem; color: #e14b4b; font-weight: 700; margin: 6px 0; }
.ps-salestats { display: grid; grid-template-columns: repeat(4,1fr); gap: 2px; }
.ps-salestats > div { display: flex; flex-direction: column; }
.ps-salestats .lbl { font-size: 0.48rem; color: #8a929c; }
.ps-salestats .val { font-size: 0.82rem; font-weight: 800; color: #1A2332; }
.ps-timegone { font-size: 0.5rem; color: #5b6673; margin: 6px 0 2px; }
.ps-timegone b { color: #d98a2b; font-weight: 800; margin: 0 3px; }

/* ---- chart ---- */
.ps-chart { position: relative; flex: 1; min-height: 120px; margin-top: 2px; }
.ps-chart-svg { width: 100%; height: 118px; display: block; }
.ps-yaxis { position: absolute; left: 0; top: 2px; height: 112px; display: flex; flex-direction: column; justify-content: space-between; font-size: 0.42rem; color: #aab2bb; }
.ps-xaxis { display: flex; justify-content: space-between; font-size: 0.42rem; color: #8a929c; padding: 1px 2px 0 28px; }
.ps-xaxis .on { font-weight: 800; color: #1A2332; }
.ps-tooltip { position: absolute; top: -2px; left: 34%; background: #fff; border: 1px solid #e6eaed; border-radius: 6px; box-shadow: 0 3px 10px rgba(0,0,0,.13); padding: 4px 6px; z-index: 3; }
.ps-tt-date { font-size: 0.5rem; color: #8a929c; font-weight: 700; }
.ps-tt-a { font-size: 0.5rem; color: var(--teal-dark); font-weight: 700; }
.ps-tt-b { font-size: 0.5rem; color: #d98a2b; font-weight: 700; }

/* ---- bottom nav ---- */
.ps-nav { display: flex; justify-content: space-between; align-items: center; gap: 2px; margin: 7px -12px 0; padding: 8px 8px 10px; background: #fff; border-top: 1px solid #eef1f3; }
.ps-nav-item { display: flex; flex-direction: column; align-items: center; gap: 2px; color: #9aa3ad; font-size: 0.46rem; font-weight: 600; flex: 1; }
.ps-nav-item svg { width: 15px; height: 15px; }
.ps-nav-item.active { color: var(--teal); }

/* ---- floating cards ---- */
.float-card { position: absolute; background: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: 0 12px 36px rgba(0,0,0,0.14); z-index: 20; }
.float-card-1 { top: 39%; left: -185px; color: #1A2332; }
.float-card-2 { bottom: 14%; right: -55px; color: #1A2332; }
.fc-title { font-weight: 800; margin-bottom: 8px; color: #1A2332; font-size: 0.72rem; }
.fc-loc { display: flex; align-items: center; gap: 12px; }
.fc-donut { width: 80px; flex: 0 0 80px; }
.fc-donut svg { width: 100%; height: auto; display: block; }
.fc-donut-num { font-size: 12px; font-weight: 800; fill: #1A2332; }
.fc-donut-lbl { font-size: 6px; fill: #9aa3ad; font-weight: 600; }
.fc-legend { display: flex; flex-direction: column; gap: 7px; }
.fc-leg { display: flex; align-items: center; gap: 6px; font-size: 0.62rem; color: #5b6673; white-space: nowrap; }
.fc-leg b { color: #1A2332; font-weight: 800; margin-left: auto; padding-left: 12px; }
.fc-dot { width: 8px; height: 8px; border-radius: 50%; flex: 0 0 8px; }
.fc-gol { display: flex; align-items: center; justify-content: space-between; gap: 22px; font-size: 0.68rem; font-weight: 800; color: #1A2332; }
.fc-gol + .fc-gol { margin-top: 8px; }
.fc-up { color: #27ae60; font-weight: 800; }
.fc-dn { color: #e74c3c; font-weight: 800; }

/* =============================================
   ANIMATIONS
   ============================================= */
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-in {
    animation: fadeUp 0.6s ease both;
}

.delay-1 {
    animation-delay: 0.1s;
}

.delay-2 {
    animation-delay: 0.2s;
}

.delay-3 {
    animation-delay: 0.3s;
}

.delay-4 {
    animation-delay: 0.4s;
}

.delay-5 {
    animation-delay: 0.5s;
}

.smooth-transition {
    transition: all 0.45s cubic-bezier(0.4,0,0.2,1);
}

/* =============================================
   RESPONSIVE BREAKPOINTS
   ============================================= */

@media (max-width: 1150px) {
    .phone-mockup {
        transform: scale(0.79) !important;
    }
}

/* Very small laptop ≤ 1280px */
@media (min-width: 1150px) and (max-width: 1280px) {
    .left-panel {
        flex: 0 0 400px;
        padding: 24px 40px;
    }

    .phone-mockup {
        transform: scale(0.9) !important;
    }

    .float-card-1 {
        left: -150px;
    }

    .float-card-2 {
        right: -20px;
    }
}

@media (min-width: 1281px) and (max-width: 1440px) {
    .left-panel {
        flex: 0 0 440px;
        padding: 28px 52px;
    }

    .phone-mockup {
        transform: scale(0.88);
    }
}

/* Large laptop 1441–1600px */
@media (min-width: 1441px) and (max-width: 1600px) {
    .left-panel {
        flex: 0 0 460px;
        padding: 30px 56px;
    }

    .phone-mockup {
        transform: scale(1.10) !important;
    }
}

/* 1601–1919px (small LED / large monitor) */
@media (min-width: 1601px) and (max-width: 1919px) {
    .left-panel {
        flex: 0 0 480px;
        padding: 32px 60px;
    }

    .phone-mockup {
        transform: scale(1.25) !important;
    }
}

/* Full HD 1920px ← yahan LED screen hoga */
@media (min-width: 1920px) and (max-width: 2559px) {
    .left-panel {
        flex: 0 0 540px;
        padding: 36px 70px;
    }

    .phone-mockup {
        transform: scale(1.35) !important;
    }

    .login-heading {
        font-size: 2.4rem;
    }

    .login-sub {
        font-size: 1rem;
    }

    input[type="text"],
    input[type="password"] {
        padding: 14px 18px 14px 52px;
        font-size: 1rem;
    }

    .btn-signin {
        padding: 14px;
        font-size: 1.05rem;
    }

    .field-icon {
        width: 20px;
        height: 20px;
    }



    /* Cards ko thoda bahar nikaalte hain badi screen par */
    .float-card-1 {
        left: -230px;
        padding: 15px 20px;
    }

    .float-card-2 {
        right: -70px;
        padding: 15px 20px;
    }

    .fc-title {
        font-size: 0.8rem;
    }

    .fc-num {
        font-size: 1.3rem;
    }
}

/* QHD / 2K 2560px */
@media (min-width: 2560px) and (max-width: 3839px) {
    .left-panel {
        flex: 0 0 680px;
        padding: 50px 84px;
    }

    .phone-mockup {
        transform: scale(1.5);
    }

    .login-heading {
        font-size: 3rem;
    }

    .login-sub {
        font-size: 1.15rem;
    }

    input[type="text"],
    input[type="password"] {
        padding: 16px 20px 16px 56px;
        font-size: 1.1rem;
        border-radius: 14px;
    }

    .btn-signin {
        padding: 16px;
        font-size: 1.15rem;
        border-radius: 14px;
    }

    .field-icon {
        width: 22px;
        height: 22px;
    }

    .float-card-1 {
        left: -220px;
        border-radius: 20px;
    }

    .float-card-2 {
        right: -100px;
        border-radius: 20px;
    }

    .fc-title {
        font-size: 1rem;
    }

    .fc-num {
        font-size: 1.8rem;
    }

    .fc-sub {
        font-size: 0.8rem;
    }
}

/* 4K 3840px */
@media (min-width: 3840px) {
    .phone-mockup {
        transform: scale(2.2);
    }

    .float-card-1 {
        left: -360px;
        padding: 30px;
        border-radius: 30px;
        box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    }

    .float-card-2 {
        right: -150px;
        padding: 30px;
        border-radius: 30px;
    }

    .fc-title {
        font-size: 1.5rem;
        margin-bottom: 15px;
    }

    .fc-num {
        font-size: 2.8rem;
    }

    .fc-sub {
        font-size: 1.2rem;
    }


    .left-panel {
        flex: 0 0 900px;
        padding: 64px 104px;
    }

    /* .phone-mockup {
        transform: scale(1.85);
    }*/

    .login-heading {
        font-size: 4rem;
    }

    .login-sub {
        font-size: 1.4rem;
    }

    input[type="text"],
    input[type="password"] {
        padding: 20px 24px 20px 68px;
        font-size: 1.35rem;
        border-radius: 16px;
    }

    .btn-signin {
        padding: 20px;
        font-size: 1.4rem;
        border-radius: 16px;
    }

    .field-icon {
        width: 28px;
        height: 28px;
        left: 20px;
    }
}

/* Mobile */
@media (max-width: 800px) {
    .right-panel {
        display: none;
    }

    .left-panel {
        flex: 1;
    }
}

/* =============================================
   PRELOADER
   ============================================= */
#preloadermrepcrm {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #ffffff;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

.loadermrepcrm {
    --d: 22px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    color: #25b09b;
    box-shadow: calc(1*var(--d)) calc(0*var(--d)) 0 0, calc(0.707*var(--d)) calc(0.707*var(--d)) 0 1px, calc(0*var(--d)) calc(1*var(--d)) 0 2px, calc(-0.707*var(--d)) calc(0.707*var(--d)) 0 3px, calc(-1*var(--d)) calc(0*var(--d)) 0 4px, calc(-0.707*var(--d)) calc(-0.707*var(--d)) 0 5px, calc(0*var(--d)) calc(-1*var(--d)) 0 6px;
    animation: l27 1s infinite steps(8);
}

@keyframes l27 {
    100% {
        transform: rotate(1turn);
    }
}
.Validation_fiels {
    color: #e74c3c;
    font-size: 0.78rem;
    margin-top: 4px;
    display: block;
    padding-left: 10px;
}

/* =============================================
  Captcha
   ============================================= */

/* ── CAPTCHA shared ─────────────────────────────────────── */
.captcha-box {
    display: none; /* hidden by default, JS shows the right one */
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 6px 14px 6px 10px;
    height: 58px;
    border-radius: 12px;
    border: 1.5px solid rgba(42,171,160,0.25);
    background: rgba(255,255,255,0.78);
    box-shadow: 0 2px 12px rgba(42,171,160,0.08);
    transition: all 0.35s ease;
}

    .captcha-box.active {
        display: flex;
    }

    .captcha-box:focus-within {
        border-color: var(--teal) !important;
        box-shadow: 0 0 0 3px rgba(42,171,160,0.18) !important;
    }

.captcha-refresh {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--teal);
    font-size: 1.2rem;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s, transform 0.3s;
}

    .captcha-refresh:hover {
        color: var(--teal-dark);
        transform: rotate(180deg);
    }

/* ── Math CAPTCHA ───────────────────────────────────────── */
.field-icon-static {
    width: 18px;
    height: 18px;
    color: #888;
    flex-shrink: 0;
}

#captcha-question {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--mrep-font) !important;
}

#captcha-answer {
    flex: 1;
    min-width: 0;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 8px !important;
    border-radius: 0 !important;
    width: auto !important;
    font-family: var(--mrep-font) !important;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
}

    #captcha-answer::placeholder {
        color: #8bb8b4;
        font-weight: 400;
    }

    #captcha-answer:focus {
        border: none !important;
        box-shadow: none !important;
    }

/* ── Image CAPTCHA ──────────────────────────────────────── */
#captcha-canvas {
    border-radius: 8px;
    flex-shrink: 0;
    display: block;
    cursor: pointer;
}

#captcha-image-answer {
    flex: 1;
    min-width: 0;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 8px !important;
    border-radius: 0 !important;
    width: auto !important;
    font-family: var(--mrep-font) !important;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 2px;
    color: var(--text-dark);
    outline: none;
}

    #captcha-image-answer::placeholder {
        color: #8bb8b4;
        font-weight: 400;
        letter-spacing: normal;
    }

    #captcha-image-answer:focus {
        border: none !important;
        box-shadow: none !important;
    }

/* ── With background image ──────────────────────────────── */
body.has-image .captcha-box {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.has-image #captcha-question,
body.has-image #captcha-answer,
body.has-image #captcha-image-answer {
    color: #fff;
}

    body.has-image #captcha-answer::placeholder,
    body.has-image #captcha-image-answer::placeholder {
        color: rgba(255,255,255,0.6);
    }

/* ── CAPTCHA ───────────────────────────────────────────── */
/*.captcha-box {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 0 14px;
    height: 48px;
    border-radius: 12px;
    border: 1.5px solid rgba(42,171,160,0.25);
    background: rgba(255,255,255,0.78);
    box-shadow: 0 2px 12px rgba(42,171,160,0.08);
    transition: all 0.35s ease;
}

    .captcha-box:focus-within {
        border-color: var(--teal) !important;
        box-shadow: 0 0 0 3px rgba(42,171,160,0.18) !important;
    }

.field-icon-static {
    width: 18px;
    height: 18px;
    color: #888;
    flex-shrink: 0;
}

#captcha-question {
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.9rem;
    white-space: nowrap;
    flex-shrink: 0;
    font-family: var(--mrep-font) !important;
}

#captcha-answer {
    flex: 1;
    min-width: 0;
    border: none !important;
    box-shadow: none !important;
    background: transparent !important;
    padding: 0 8px !important;
    border-radius: 0 !important;
    width: auto !important;
    font-family: var(--mrep-font) !important;
    font-size: 0.95rem;
    color: var(--text-dark);
    outline: none;
}

    #captcha-answer::placeholder {
        color: #8bb8b4;
    }

    #captcha-answer:focus {
        border: none !important;
        box-shadow: none !important;
    }

.captcha-box button {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--teal);
    font-size: 1.15rem;
    padding: 0;
    flex-shrink: 0;
    line-height: 1;
    transition: color 0.2s;
}

    .captcha-box button:hover {
        color: var(--teal-dark);
    }*/

/* with background image */
/*body.has-image .captcha-box {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.4);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

body.has-image #captcha-question {
    color: #fff;
}

body.has-image #captcha-answer {
    color: #fff;
}

    body.has-image #captcha-answer::placeholder {
        color: rgba(255,255,255,0.6);
    }*/
/* =============================================
   TWO-FACTOR STEP (Google Authenticator)
   Shown in place of the login form once the password is accepted and the
   account still owes a code. Reuses the form's field/button styles, so only
   the pieces that do not exist elsewhere are defined here.
   ============================================= */
.twofa-title {
    font-size: 1.35rem;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0 0 6px;
}

.twofa-sub {
    font-size: 0.86rem;
    color: var(--text-muted);
    margin: 0 0 16px;
    line-height: 1.5;
}

.twofa-qr {
    text-align: center;
    margin-bottom: 12px;
}

    .twofa-qr img {
        width: 190px;
        max-width: 70%;
        background: #fff;
        padding: 8px;
        border-radius: 10px;
        box-shadow: 0 4px 14px rgba(20,50,60,.12);
    }

.twofa-manual {
    font-size: 0.78rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: 16px;
    word-break: break-all;
}

    .twofa-manual code {
        display: block;
        margin-top: 4px;
        font-size: 0.8rem;
        letter-spacing: 1px;
        color: var(--teal-dark);
    }

#twofa-code {
    letter-spacing: 6px;
    font-size: 1.05rem;
}

/* This field-wrap sits outside .field-group, which is what supplies the gap on the
   login form — without this the code box and the Verify button touch. */
#twofa-step .field-wrap {
    margin-bottom: 16px;
}

.twofa-back {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    width: 100%;
    margin-top: 14px;
    padding: 9px 12px;
    background: transparent;
    border: 1.5px solid rgba(42,171,160,0.28);
    border-radius: 12px;
    color: var(--teal-dark);
    font-family: var(--mrep-font) !important;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.25s ease;
}

    /* Arrow drawn in CSS so the button carries no icon dependency. */
    .twofa-back::before {
        content: "←";
        font-size: 0.95rem;
        line-height: 1;
        transition: transform 0.25s ease;
    }

    .twofa-back:hover {
        background: rgba(42,171,160,0.10);
        border-color: var(--teal);
        color: var(--teal-dark);
    }

        .twofa-back:hover::before {
            transform: translateX(-3px);
        }

    .twofa-back:active {
        transform: translateY(1px);
    }

body.has-image .twofa-back {
    border-color: rgba(255,255,255,0.45);
    color: #fff;
}

    body.has-image .twofa-back:hover {
        background: rgba(255,255,255,0.16);
        border-color: rgba(255,255,255,0.7);
        color: #fff;
    }

body.has-image .twofa-title {
    color: #fff;
}

body.has-image .twofa-sub,
body.has-image .twofa-manual {
    color: rgba(255,255,255,0.85);
}
