/* LicenseTracker - Pure Vanilla CSS for Login Page (Matches login tracker.png) */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');

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

html, body {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f4f8fc;
    color: #0f2342;
    -webkit-font-smoothing: antialiased;
}

@media (min-width: 901px) {
    html, body {
        height: 100vh;
        max-height: 100vh;
        overflow: hidden;
    }
}

.login-wrapper {
    display: flex;
    width: 100%;
    height: 100vh;
    max-height: 100vh;
    overflow: hidden;
}

/* ================= LEFT HERO PANEL ================= */
.login-left {
    width: 53%;
    height: 100vh;
    max-height: 100vh;
    background: linear-gradient(155deg, #0b46a8 0%, #093582 55%, #072866 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(14px, 2.5vh, 32px) clamp(20px, 3.5vw, 44px);
    color: #ffffff;
    box-sizing: border-box;
}

/* Decorative background circles matching login tracker.png */
.login-left::before {
    content: '';
    position: absolute;
    top: -120px;
    left: -120px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(35, 120, 255, 0.42) 0%, rgba(18, 84, 196, 0.15) 70%, transparent 100%);
    pointer-events: none;
}

.login-left::after {
    content: '';
    position: absolute;
    top: -90px;
    right: -90px;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: rgba(6, 33, 84, 0.45);
    pointer-events: none;
}

.bg-wave-circle {
    position: absolute;
    right: -60px;
    top: 250px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(25, 102, 224, 0.35), rgba(8, 45, 112, 0.15));
    pointer-events: none;
    z-index: 0;
}

.hero-top {
    position: relative;
    z-index: 2;
    max-width: 520px;
    margin-left: 0;
    flex-shrink: 0;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: clamp(10px, 1.2vw, 16px);
    margin-bottom: clamp(6px, 1.4vh, 16px);
}

.shield-logo {
    width: clamp(42px, 5vh, 60px);
    height: auto;
    aspect-ratio: 80 / 90;
    flex-shrink: 0;
    filter: drop-shadow(0 6px 16px rgba(0, 18, 56, 0.45));
}

.brand-title {
    font-size: clamp(24px, 2.4vw, 34px);
    font-weight: 800;
    letter-spacing: -0.5px;
    line-height: 1.1;
    color: #ffffff;
}

.brand-title span {
    color: #2da0ff;
}

.brand-subtitle {
    font-size: clamp(12px, 1.1vw, 15px);
    font-weight: 400;
    color: #c8deff;
    margin-top: 2px;
    letter-spacing: 0.1px;
}

.hero-description {
    font-size: clamp(12px, 1vw, 14.5px);
    line-height: 1.5;
    color: #d6e6ff;
    max-width: 440px;
    font-weight: 400;
}

/* ================= 3D LAPTOP SCENE ================= */
.laptop-scene {
    position: relative;
    z-index: 2;
    margin: auto 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1 1 auto;
    min-height: 0;
}

.desk-objects {
    position: relative;
    width: 100%;
    max-width: 540px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 6px;
    transform-origin: center center;
    transition: transform 0.2s ease;
}

/* Laptop Screen Frame with subtle perspective matching mockup */
.laptop-assembly {
    position: relative;
    width: 450px;
    z-index: 3;
}

.laptop-lid {
    background: #0d1b33;
    border: 3px solid #2b4368;
    border-bottom-width: 8px;
    border-radius: 14px 14px 4px 4px;
    padding: 8px 8px 10px;
    box-shadow: 0 20px 44px rgba(2, 12, 35, 0.65), 0 0 0 1px rgba(255,255,255,0.12) inset;
    transform: perspective(1100px) rotateY(8deg) rotateX(1deg);
    transform-origin: center bottom;
}

.laptop-screen {
    background: #f3f7fc;
    border-radius: 7px;
    overflow: hidden;
    display: flex;
    height: 225px;
    color: #0f2342;
    font-size: 10px;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}

/* Mini Sidebar inside Laptop */
.mini-sidebar {
    width: 98px;
    background: linear-gradient(180deg, #0b2249 0%, #071633 100%);
    color: #cbd5e1;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 3px;
    flex-shrink: 0;
}

.mini-brand {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 8.5px;
    font-weight: 700;
    color: #fff;
    padding: 2px 3px 6px;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    margin-bottom: 2px;
}

.mini-brand span {
    color: #38bdf8;
}

.mini-nav-item {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px 6px;
    border-radius: 4px;
    font-size: 7.8px;
    color: #b4c6e0;
    font-weight: 500;
}

.mini-nav-item.active {
    background: #0d6efd;
    color: #ffffff;
    font-weight: 700;
}

.mini-nav-dot {
    width: 3.5px;
    height: 3.5px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.8;
}

/* Mini Main Content */
.mini-main {
    flex: 1;
    padding: 8px 9px;
    display: flex;
    flex-direction: column;
    gap: 7px;
    background: #f8fafc;
    overflow: hidden;
}

.mini-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-weight: 700;
    font-size: 9px;
    color: #1e293b;
    padding-bottom: 4px;
    border-bottom: 1px solid #e2e8f0;
}

.mini-kpis {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
}

.mini-kpi {
    border-radius: 6px;
    padding: 6px 7px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.mini-kpi.blue { background: linear-gradient(135deg, #1d7dfa, #0d5bd9); }
.mini-kpi.red { background: linear-gradient(135deg, #f04444, #d92626); }
.mini-kpi.amber { background: linear-gradient(135deg, #fbbf24, #ea8a0c); }
.mini-kpi.green { background: linear-gradient(135deg, #22c55e, #109e48); }

.mini-kpi-label {
    font-size: 7px;
    opacity: 0.92;
    font-weight: 600;
}

.mini-kpi-val {
    font-size: 13.5px;
    font-weight: 800;
    margin-top: 2px;
}

.mini-table-card {
    background: #ffffff;
    border-radius: 6px;
    padding: 7px 8px;
    box-shadow: 0 1px 4px rgba(15, 35, 66, 0.05);
    flex: 1;
}

.mini-table-title {
    font-size: 9px;
    font-weight: 700;
    color: #0f2342;
    margin-bottom: 4px;
}

.mini-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 7.5px;
}

.mini-table th {
    text-align: left;
    color: #64748b;
    font-weight: 600;
    padding: 2px 3px;
    border-bottom: 1px solid #edf2f7;
}

.mini-table td {
    padding: 4px 3px;
    border-bottom: 1px solid #f1f5f9;
    color: #1e293b;
    font-weight: 500;
}

.mini-app-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 3px;
    font-size: 6.5px;
    font-weight: 800;
    color: #fff;
    margin-right: 3px;
}

.mini-app-badge.ps { background: #001e36; color: #31a8ff; }
.mini-app-badge.ms { background: #f25022; }
.mini-app-badge.vm { background: #1e293b; }

.mini-status {
    padding: 1.5px 5px;
    border-radius: 6px;
    font-size: 6.5px;
    font-weight: 700;
}

.mini-status.warn { background: #fef3c7; color: #b45309; }
.mini-status.ok { background: #dcfce7; color: #15803d; }

/* Laptop Base */
.laptop-base {
    height: 12px;
    width: 480px;
    margin-left: -15px;
    background: linear-gradient(90deg, #64748b 0%, #cbd5e1 22%, #e2e8f0 55%, #94a3b8 100%);
    border-radius: 3px 3px 12px 12px;
    box-shadow: 0 10px 22px rgba(2, 10, 28, 0.65);
    position: relative;
}

/* Notebook & Pen on Left */
.desk-notebook {
    position: absolute;
    left: -20px;
    bottom: 2px;
    width: 110px;
    height: 24px;
    background: linear-gradient(135deg, #0b295e, #06183a);
    border-radius: 4px 6px 6px 4px;
    border-bottom: 5px solid #e2e8f0;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    transform: skewX(-18deg);
    z-index: 4;
}

.desk-pen {
    position: absolute;
    left: 26px;
    bottom: 22px;
    width: 66px;
    height: 4.5px;
    background: linear-gradient(90deg, #e2e8f0 0%, #3b82f6 65%, #1d4ed8 100%);
    border-radius: 3px;
    transform: rotate(-14deg);
    z-index: 5;
    box-shadow: 0 3px 6px rgba(0,0,0,0.3);
}

/* Plant in White Pot on Right */
.desk-plant {
    position: absolute;
    right: -12px;
    bottom: 10px;
    width: 88px;
    height: 140px;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
}

/* Bottom 4 Features Bar */
.hero-features {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: clamp(8px, 1.2vw, 16px);
    padding-top: clamp(8px, 1.6vh, 18px);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    flex-shrink: 0;
}

.feature-item {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.feature-icon-circle {
    width: clamp(32px, 3.8vh, 40px);
    height: clamp(32px, 3.8vh, 40px);
    border-radius: 50%;
    background: rgba(16, 78, 178, 0.55);
    border: 1.5px solid rgba(88, 166, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(4px, 0.8vh, 8px);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 15, 45, 0.25);
}

.feature-icon-circle svg {
    width: clamp(16px, 2vh, 19px);
    height: clamp(16px, 2vh, 19px);
}

.feature-title {
    font-size: clamp(11px, 0.95vw, 12.5px);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 2px;
}

.feature-desc {
    font-size: clamp(9.5px, 0.8vw, 11px);
    color: #b8d3ff;
    line-height: 1.35;
    max-width: 135px;
}

/* ================= RIGHT LOGIN PANEL ================= */
.login-right {
    width: 47%;
    height: 100vh;
    max-height: 100vh;
    background: linear-gradient(180deg, #f6f9fd 0%, #edf4fc 100%);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(14px, 2vh, 26px) clamp(20px, 3.2vw, 44px);
    overflow: hidden;
    box-sizing: border-box;
}

.login-right::before {
    content: '';
    position: absolute;
    right: -120px;
    top: 18%;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: rgba(219, 234, 254, 0.45);
    pointer-events: none;
}

.right-top-bar {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    font-size: clamp(12px, 0.9vw, 13px);
    color: #475569;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
}

.right-top-bar a {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.right-top-bar a:hover {
    text-decoration: underline;
}

.right-center-box {
    width: 100%;
    max-width: 420px;
    margin: auto auto;
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.right-brand-center {
    text-align: center;
    margin-bottom: clamp(10px, 1.8vh, 18px);
}

.right-shield-icon {
    width: clamp(38px, 5vh, 52px);
    height: auto;
    aspect-ratio: 80 / 90;
    margin: 0 auto clamp(4px, 0.8vh, 8px);
    display: block;
    filter: drop-shadow(0 6px 14px rgba(13, 110, 253, 0.22));
}

.right-brand-title {
    font-size: clamp(22px, 2.2vw, 29px);
    font-weight: 800;
    color: #0f2342;
    letter-spacing: -0.5px;
    line-height: 1.15;
}

.right-brand-title span {
    color: #0d74ff;
}

.right-brand-sub {
    font-size: clamp(12px, 0.95vw, 14px);
    color: #64748b;
    margin-top: 3px;
    font-weight: 400;
}

/* Login Form Card */
.login-card {
    background: #ffffff;
    border-radius: 14px;
    padding: clamp(18px, 2.8vh, 30px) clamp(20px, 2.4vw, 32px);
    box-shadow: 0 12px 36px rgba(15, 35, 66, 0.07), 0 1px 3px rgba(15, 35, 66, 0.04);
    border: 1px solid rgba(226, 232, 240, 0.85);
}

.card-heading {
    font-size: clamp(19px, 1.8vw, 23px);
    font-weight: 800;
    color: #0f2342;
    margin-bottom: 3px;
    letter-spacing: -0.3px;
}

.card-subheading {
    font-size: clamp(12px, 0.95vw, 13.5px);
    color: #64748b;
    margin-bottom: clamp(12px, 1.8vh, 18px);
}

.form-group {
    margin-bottom: clamp(10px, 1.6vh, 16px);
}

.form-label {
    display: block;
    font-size: clamp(12px, 0.9vw, 13px);
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 5px;
}

.input-group {
    display: flex;
    align-items: stretch;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    background: #ffffff;
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
    height: clamp(38px, 4.4vh, 44px);
}

.input-group:focus-within {
    border-color: #0d6efd;
    box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.14);
}

.input-icon-prefix {
    width: clamp(38px, 4.4vh, 44px);
    background: #f8fafc;
    border-right: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1d7dfa;
    flex-shrink: 0;
}

.input-icon-prefix svg {
    width: clamp(15px, 2vh, 17px);
    height: clamp(15px, 2vh, 17px);
}

.input-group input {
    flex: 1;
    border: none;
    outline: none;
    padding: 0 12px;
    font-size: clamp(12.5px, 0.95vw, 14px);
    color: #0f2342;
    font-family: inherit;
    background: transparent;
}

.input-group input::placeholder {
    color: #94a3b8;
}

.password-toggle-btn {
    width: clamp(38px, 4.4vh, 42px);
    border: none;
    background: transparent;
    color: #64748b;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s;
}

.password-toggle-btn:hover {
    color: #0d6efd;
}

.form-options-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: clamp(10px, 1.6vh, 16px) 0 clamp(12px, 1.8vh, 18px);
    font-size: clamp(11.5px, 0.9vw, 13px);
}

.remember-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #334155;
    cursor: pointer;
    user-select: none;
    font-weight: 500;
}

.remember-label input[type="checkbox"] {
    width: 15px;
    height: 15px;
    accent-color: #0d6efd;
    border-radius: 4px;
    cursor: pointer;
}

.forgot-link {
    color: #0d6efd;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
}

.forgot-link:hover {
    text-decoration: underline;
}

.signin-btn {
    width: 100%;
    height: clamp(40px, 4.6vh, 46px);
    border: none;
    border-radius: 8px;
    background: linear-gradient(90deg, #0d74ff 0%, #0b5ed7 100%);
    color: #ffffff;
    font-size: clamp(13.5px, 1vw, 15px);
    font-weight: 600;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 5px 16px rgba(13, 110, 253, 0.28);
    transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.signin-btn:hover {
    background: linear-gradient(90deg, #0b65e0 0%, #094eb5 100%);
    box-shadow: 0 7px 20px rgba(13, 110, 253, 0.36);
    transform: translateY(-1px);
}

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

/* Bottom Secure • Reliable • Efficient */
.right-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    color: #64748b;
    font-size: clamp(11px, 0.85vw, 12px);
    font-weight: 500;
    flex-shrink: 0;
}

.right-footer::before,
.right-footer::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #cbd5e1;
}

/* Modal Styling for Contact Admin & Forgot Password */
.lt-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(9, 25, 56, 0.55);
    backdrop-filter: blur(3px);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 999;
    padding: 20px;
}

.lt-modal-backdrop.open {
    display: flex;
}

.lt-modal {
    background: #ffffff;
    border-radius: 14px;
    width: 100%;
    max-width: 430px;
    padding: 26px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
}

.lt-modal h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0f2342;
    margin-bottom: 8px;
}

.lt-modal p {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 16px;
    line-height: 1.5;
}

.lt-modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}

.btn-secondary {
    padding: 8px 15px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #f8fafc;
    color: #334155;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

.btn-primary {
    padding: 8px 18px;
    border-radius: 8px;
    border: none;
    background: #0d6efd;
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    font-size: 13px;
}

/* Dynamic scaling for different screen heights so there is NEVER a scrollbar */
@media (max-height: 850px) and (min-width: 901px) {
    .desk-objects {
        transform: scale(0.86);
    }
}

@media (max-height: 750px) and (min-width: 901px) {
    .desk-objects {
        transform: scale(0.74);
    }
    .hero-description {
        line-height: 1.4;
    }
}

@media (max-height: 650px) and (min-width: 901px) {
    .desk-objects {
        transform: scale(0.60);
    }
    .hero-description {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
    .feature-desc {
        display: none;
    }
    .right-brand-center {
        margin-bottom: 8px;
    }
}

@media (max-height: 560px) and (min-width: 901px) {
    .desk-objects {
        transform: scale(0.50);
    }
    .hero-features {
        display: none;
    }
}

/* Mobile & Tablet layout */
@media (max-width: 900px) {
    html, body {
        height: auto;
        overflow-y: auto;
    }
    .login-wrapper {
        flex-direction: column;
        height: auto;
        max-height: none;
        overflow: visible;
    }
    .login-left, .login-right {
        width: 100%;
        height: auto;
        max-height: none;
        overflow: visible;
        padding: 30px 20px;
    }
    .login-left {
        order: 2;
    }
    .login-right {
        order: 1;
    }
    .laptop-scene {
        display: none;
    }
    .hero-features {
        grid-template-columns: repeat(2, 1fr);
    }
}
