﻿@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700;800;900&display=swap');

/* ── Override site.css body rules for login page only ─────── */
html, body {
    height: 100%;
    overflow: auto !important; /* site.css sets overflow:hidden — must undo for login */
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f4f6f9; /* --bg from site.css */
    font-family: 'Montserrat', sans-serif;
    margin: 0;
    padding: 24px 16px;
}

    /* ── Full-page brand watermark ────────────────────────────── */
    body::before {
        content: '';
        position: fixed;
        inset: 0;
        background-image: url('../images/investicalogo.jpg');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: contain; /* contain — no distortion */
        opacity: 0.06;
        pointer-events: none;
        z-index: 0;
    }

/* ── Login card ───────────────────────────────────────────── */
.login-card {
    position: relative;
    width: 100%;
    max-width: 400px;
    padding: 44px 36px 36px;
    border-radius: 14px; /* --card-radius */
    background: #ffffff;
    box-shadow: 0 8px 40px rgba(15, 20, 69, 0.12), 0 2px 8px rgba(15, 20, 69, 0.06); /* --card-shadow extended */
    z-index: 1;
    overflow: hidden;
}

    /* Subtle inner brand watermark on the card */
    .login-card::before {
        content: '';
        position: absolute;
        inset: 0;
        background-image: url('../images/investicalogo.jpg');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: contain;
        opacity: 0.04;
        pointer-events: none;
        z-index: 0;
    }

    .login-card > * {
        position: relative;
        z-index: 1;
    }

/* ── Logo / brand mark at top of card ────────────────────── */
.login-logo-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 6px;
}

.login-logo-img {
    height: 44px;
    width: auto;
    display: block;
    object-fit: contain;
}

/* Fallback icon badge matching sidebar logo-icon */
.login-logo-icon {
    width: 44px;
    height: 44px;
    border-radius: 11px;
    background: rgba(245, 184, 0, 0.14);
    border: 1.5px solid rgba(245, 184, 0, 0.28);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #f5b800; /* --gold */
    font-size: 22px;
    flex-shrink: 0;
}

/* ── Brand heading ────────────────────────────────────────── */
.brand {
    text-align: center;
    margin-bottom: 28px;
}

.brand-name {
    display: block;
    font-weight: 900;
    font-size: 1.55rem;
    color: #0f1445; /* --navy */
    letter-spacing: 1px;
    line-height: 1.1;
}

.brand-sub {
    display: block;
    font-weight: 500;
    font-size: 0.78rem;
    color: #8892a4; /* --txt-muted */
    letter-spacing: 0.4px;
    margin-top: 5px;
}

/* ── Divider line ─────────────────────────────────────────── */
.login-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(15,20,69,0.10), transparent);
    margin-bottom: 24px;
}

/* ── Form labels ──────────────────────────────────────────── */
.form-label {
    font-weight: 600;
    font-size: 0.78rem;
    color: #0f1445;
    margin-bottom: 6px;
    letter-spacing: 0.2px;
    text-transform: uppercase;
}

/* ── Input wrapper (for icon inside) ─────────────────────── */
.input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

    .input-wrap .input-icon {
        position: absolute;
        left: 12px;
        color: #8892a4;
        font-size: 14px;
        pointer-events: none;
        z-index: 2;
    }

/* ── Form controls ────────────────────────────────────────── */
.form-control {
    width: 100%;
    background: #f4f6f9; /* --bg */
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: 11px 14px 11px 38px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.875rem;
    color: #1a1f4b; /* --txt */
    outline: none;
    transition: border-color 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
    -webkit-appearance: none;
}

    /* Input without icon (fallback when .input-wrap not used) */
    .form-control:not(.with-icon) {
        padding-left: 14px;
    }

    .form-control::placeholder {
        color: #b0bac8;
        font-weight: 400;
    }

    .form-control:hover {
        border-color: #c8d0de;
        background: #f8f9fc;
    }

    .form-control:focus {
        border-color: #0f1445; /* --navy */
        background: #ffffff;
        box-shadow: 0 0 0 3px rgba(15, 20, 69, 0.08);
    }

/* ── Show/hide password toggle ───────────────────────────── */
.input-wrap .pwd-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    color: #8892a4;
    font-size: 14px;
    display: flex;
    align-items: center;
    transition: color 0.18s;
}

    .input-wrap .pwd-toggle:hover {
        color: #0f1445;
    }

/* ── Sign-in button ───────────────────────────────────────── */
.btn-signin {
    width: 100%;
    background: #f5b800; /* --gold */
    border: none;
    border-radius: 9px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: 0.9rem;
    letter-spacing: 0.6px;
    color: #0f1445; /* --navy on gold */
    padding: 13px;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    text-transform: uppercase;
}

    .btn-signin:hover {
        background: #e6ac00;
        box-shadow: 0 6px 20px rgba(245, 184, 0, 0.38);
        transform: translateY(-1px);
    }

    .btn-signin:active {
        transform: translateY(0);
        box-shadow: none;
        background: #d9a200;
    }

    .btn-signin:disabled {
        opacity: 0.6;
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }

/* ── Error / alert messages ───────────────────────────────── */
#loginError {
    font-size: 0.82rem;
    font-weight: 600;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 14px;
}

/* ── Employees table (shown after successful login debug) ─── */
#employeesTable {
    width: 100%;
    max-width: 400px;
    margin-top: 16px;
}

.employees-table {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 400;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 
    
    
    
    
    
    
    
    px 10px rgba(15,20,69,0.07);
}

    .employees-table thead th {
        background: #0f1445 !important;
        color: #fff !important;
        font-weight: 700;
        font-size: 11px;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        border: none;
        padding: 10px 12px;
    }

    .employees-table tbody td {
        padding: 9px 12px;
        font-weight: 500;
        border-top: 1px solid #f0f0f0;
        color: #1a1f4b;
    }

    .employees-table tbody tr:hover td {
        background: #f8f9fc;
    }

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 480px) {
    .login-card {
        padding: 32px 22px 28px;
        border-radius: 12px;
    }

    .brand-name {
        font-size: 1.3rem;
    }
}
