/* ── IMPORTS ── */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ── RESET ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

/* ── TOKENS ── */
:root {
    --red: #e94560;
    --red-dim: rgba(233,69,96,0.12);
    --red-glow: rgba(233,69,96,0.22);
    --navy-deep: #07101e;
    --navy-mid: #0f1c2e;
    --navy-hi: #162840;
    --navy-card: #111d2d;
    --text-hi: #ffffff;
    --text-mid: rgba(255,255,255,0.60);
    --text-lo: rgba(255,255,255,0.32);
    --border: rgba(255,255,255,0.07);
    --inp-bg: #f5f6fa;
    --inp-border: #e2e5ee;
    --card-bg: #ffffff;
    --page-bg: #f4f5f9;
    --label: #374151;
    --sub: #6b7280;
    --shadow: 0 20px 60px rgba(7,16,30,0.13);
}

/* ── GLOBAL ── */
html, body {
    height: 100%;
    margin: 0;
    font-family: 'DM Sans', 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
}

/* ── WRAPPER ── */
.login-wrap {
    display: grid;
    grid-template-columns: 1fr 480px;
    min-height: 100vh;
}
.login-right {
    position: relative;
}
.back-btn {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 9999; /* 🔥 forces it above card */
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 500;
    color: #1e293b;
    text-decoration: none;
}

    .back-btn:hover {
        color: #0f172a;
    }

/* 🔥 push card down so button has space */
.login-card {
    margin-top: 70px;
}
/* ════════════════════════════════
   LEFT PANEL
════════════════════════════════ */
.login-left {
    background: var(--navy-deep);
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(1.8rem, 4vw, 3rem) clamp(2rem, 5vw, 3.5rem);
    overflow: hidden;
}

    /* Ambient blobs */
    .login-left::before {
        content: '';
        position: absolute;
        top: -140px;
        right: -140px;
        width: 480px;
        height: 480px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(233,69,96,0.18) 0%, transparent 70%);
        pointer-events: none;
    }

    .login-left::after {
        content: '';
        position: absolute;
        bottom: -120px;
        left: -80px;
        width: 360px;
        height: 360px;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(15,52,96,0.55) 0%, transparent 70%);
        pointer-events: none;
    }

/* Subtle grid */
.grid-deco {
    position: absolute;
    inset: 0;
    background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

/* ── BRAND ── */
.ll-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 1;
    position: relative;
}

.ll-brand-dot {
    width: 9px;
    height: 9px;
    background: var(--red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--red);
    animation: pulse-dot 2.5s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%,100% {
        box-shadow: 0 0 6px var(--red);
    }

    50% {
        box-shadow: 0 0 16px var(--red), 0 0 28px rgba(233,69,96,0.35);
    }
}

.ll-brand-name {
    font-family: 'Syne', sans-serif;
    color: var(--text-hi);
    font-size: 2.0rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

/* ── HERO TEXT ── */
.ll-body {
    z-index: 1;
    position: relative;
}

    .ll-body h1 {
        font-family: sans-serif;
        color: var(--text-hi);
        font-size: clamp(1.6rem, 3.2vw, 2.4rem);
        font-weight: 800;
        line-height: 1.25;
        max-width: 420px;
        margin-bottom: 1rem;
        letter-spacing: -0.01em;
    }

        .ll-body h1 span {
            color: var(--red);
        }

    .ll-body p {
        color: var(--text-mid);
        font-size: clamp(0.8rem, 1.2vw, 0.9rem);
        max-width: 340px;
        line-height: 1.8;
        font-weight: 300;
    }

/* ── STAT CHIPS ── */
.ll-stats {
    display: flex;
    gap: 14px;
    margin-top: 1.6rem;
    flex-wrap: wrap;
}

.ll-stat {
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.55rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.ll-stat-val {
    font-family: 'Syne', sans-serif;
    color: var(--red);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1;
}

.ll-stat-lbl {
    color: var(--text-lo);
    font-size: 0.7rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── FEATURES ── */
.ll-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 1;
    position: relative;
}

.ll-feat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0.55rem 0.75rem;
    border-radius: 10px;
    transition: background 0.2s;
}

    .ll-feat:hover {
        background: rgba(255,255,255,0.04);
    }

.ll-feat-icon {
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: var(--red-dim);
    border: 1px solid var(--red-glow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--red);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.ll-feat span {
    color: var(--text-mid);
    font-size: 0.8rem;
    font-weight: 400;
}

/* ════════════════════════════════
   RIGHT PANEL
════════════════════════════════ */
.login-right {
    background: var(--page-bg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.2rem, 3vw, 2rem);
    gap: 1.5rem;
}

/* ── CARD ── */
.login-card {
    background: var(--card-bg);
    border: 1px solid #e6e9f2;
    border-radius: 22px;
    padding: clamp(1.5rem, 4vw, 2.4rem) clamp(1.4rem, 3.5vw, 2.2rem);
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow);
}

/* Secure badge */
.secure-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #eefbf2;
    border: 1px solid #c3ecd4;
    color: #1a7f46;
    font-size: 0.7rem;
    font-weight: 600;
    border-radius: 20px;
    padding: 4px 10px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.02em;
}

/* Card headings */
.login-card h2 {
    font-family: 'Syne', sans-serif;
 
    font-weight: 600;
    color: #111827;
    line-height: 1.2;
    margin-bottom: 0.3rem;
    letter-spacing: -0.02em;
}

.login-card .sub {
    color: var(--sub);
    font-size: 0.85rem;
    margin-bottom: 1.6rem;
}

/* ── LABEL ── */
.hrm-lbl {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--label);
    margin-bottom: 5px;
    letter-spacing: 0.02em;
}
.ll-brand-logo {
    width: 50px; /* adjust as needed */
    height: 50px;
    object-fit: contain;
}
/* ── INPUT WRAPPER ── */
.inp-wrap {
    position: relative;
    margin-bottom: 1rem;
}

    .inp-wrap i {
        position: absolute;
        left: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #9ca3af;
        font-size: 0.85rem;
        pointer-events: none;
        transition: color 0.2s;
    }

    .inp-wrap:focus-within i {
        color: var(--red);
    }

/* ── INPUT ── */
.hrm-inp {
    width: 100%;
    background: var(--inp-bg);
    border: 1.5px solid var(--inp-border);
    border-radius: 11px;
    padding: 0.7rem 0.9rem 0.7rem 2.4rem;
    font-size: 0.875rem;
    font-family: 'DM Sans', sans-serif;
    color: #111827;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
    -webkit-appearance: none;
}

    .hrm-inp::placeholder {
        color: #b4b9c5;
    }

    .hrm-inp:focus {
        outline: none;
        border-color: var(--red);
        background: #fff;
        box-shadow: 0 0 0 4px rgba(233,69,96,0.08);
    }
.inp-wrap .toggle-password {
    position: absolute;
    left: auto; 
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #9ca3af;
    font-size: 0.95rem;
    pointer-events: auto;
    cursor: pointer;
    transition: color 0.2s;
    z-index: 2;
}

    .inp-wrap .toggle-password:hover {
        color: var(--red);
    }
   
/* ── DIVIDER ── */
.divider {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 1.25rem 0;
    color: #c4c9d9;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

    .divider::before, .divider::after {
        content: '';
        flex: 1;
        height: 1px;
        background: #e8eaf2;
    }

/* ── CONTACT ROW ── */
.contact-row {
    text-align: center;
    font-size: 0.8rem;
    color: var(--sub);
}

    .contact-row a {
        color: var(--red);
        text-decoration: none;
        font-weight: 600;
    }

        .contact-row a:hover {
            text-decoration: underline;
        }

/* ── BUTTON ── */
.btn-hrm-login {
    width: 100%;
    background: var(--red);
    border: none;
    border-radius: 11px;
    padding: 0.8rem 1rem;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 600;
    font-family: 'DM Sans', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 0.25rem;
    margin-bottom: 0;
    transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
    box-shadow: 0 4px 16px rgba(233,69,96,0.32);
    letter-spacing: 0.01em;
}

    .btn-hrm-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 24px rgba(233,69,96,0.4);
    }

    .btn-hrm-login:active {
        transform: translateY(0);
        opacity: 0.9;
    }

/* ── VALIDATION ── */
.text-danger {
    font-size: 0.72rem;
    color: var(--red);
    display: block;
    margin-top: -0.6rem;
    margin-bottom: 0.6rem;
}

/* ── FOOTER ── */
.login-footer {
    font-size: 0.72rem;
    color: #b0b5c4;
    text-align: center;
}

    .login-footer a {
        color: #9098ae;
        text-decoration: none;
    }

        .login-footer a:hover {
            color: var(--red);
        }

/* ════════════════════════════════
   TOAST
════════════════════════════════ */
#hrm-toast {
    position: fixed !important;
    top: 1.25rem !important;
    right: 1.25rem !important;
    z-index: 9999 !important;
}

/* ════════════════════════════════
   RESPONSIVE — TABLET  769–1024px
════════════════════════════════ */
@media (min-width: 769px) and (max-width: 1024px) {
    .login-wrap {
        grid-template-columns: 1fr 400px;
    }

    .ll-body h1 {
        font-size: 1.75rem;
    }
    .ll-brand-logo {
        width: 20px; /* adjust as needed */
        height: 20px;
        object-fit: contain;
    }

}

/* ════════════════════════════════
   RESPONSIVE — MOBILE  ≤ 768px
════════════════════════════════ */
@media (max-width: 768px) {

    /* Stack vertically */
    .login-wrap {
        grid-template-columns: 1fr;
        grid-template-rows: auto 1fr;
        min-height: 100svh;
    }
    .ll-brand-name {
        font-family: 'Syne', sans-serif;
        color: var(--text-hi);
        font-size: 1.05rem;
        font-weight: 700;
        letter-spacing: 0.01em;
    }

    /* ── Left panel collapses to a compact header banner ── */
    .login-left {
        padding: 1.4rem 1.4rem 1.6rem;
        flex-direction: column;
        gap: 1.1rem;
        justify-content: flex-start;
    }

        .login-left::before {
            top: -80px;
            right: -80px;
            width: 240px;
            height: 240px;
        }

        .login-left::after {
            bottom: -60px;
            left: -60px;
            width: 180px;
            height: 180px;
        }

    .ll-body h1 {
        font-size: clamp(1.35rem, 5vw, 1.85rem);
        max-width: 100%;
        margin-bottom: 0.5rem;
    }

    .ll-body p {
        max-width: 100%;
        font-size: 1.0rem;
        line-height: 1.7;
    }

    /* Stats row — horizontal scroll on tiny screens */
    .ll-stats {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        gap: 10px;
        margin-top: 1rem;
        padding-bottom: 2px;
    }

        .ll-stats::-webkit-scrollbar {
            display: none;
        }

    .ll-stat {
        flex-shrink: 0;
    }

    /* Features: 2-column grid */
    .ll-features {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    .ll-feat {
        padding: 0.5rem 0.6rem;
        gap: 8px;
        background: rgba(255,255,255,0.04);
        border: 1px solid var(--border);
        border-radius: 10px;
    }

        .ll-feat span {
            font-size: 0.92rem;
        }

    .ll-feat-icon {
        width: 30px;
        height: 30px;
        font-size: 0.85rem;
    }

    .ll-brand {
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .ll-brand-logo {
        width: 20px; /* adjust as needed */
        height: 20px;
        object-fit: contain;
    }

    /* ── Right panel ── */
    .login-right {
        justify-content: flex-start;
        padding: 1.4rem 1rem 1.5rem;
        gap: 1rem;
        background: #f0f2f7;
    }

    .login-card {
        border-radius: 18px;
        padding: 1.5rem 1.3rem;
        max-width: 100%;
        box-shadow: 0 10px 30px rgba(7,16,30,0.10);
    }

        .login-card h2 {
            font-size: 1.35rem;
        }

        .login-card .sub {
            font-size: 0.8rem;
            margin-bottom: 1.3rem;
        }

    .hrm-inp {
        font-size: 1rem; /* prevent iOS zoom */
        padding: 0.75rem 0.9rem 0.75rem 2.4rem;
    }

    .btn-hrm-login {
        padding: 0.85rem;
        font-size: 0.9rem;
    }

    /* Toast full-width on mobile */
    #hrm-toast {
        top: 0.75rem !important;
        right: 0.75rem !important;
        left: 0.75rem !important;
        min-width: unset !important;
        max-width: unset !important;
        width: auto !important;
        font-size: 0.82rem !important;
        border-radius: 12px !important;
    }
}

/* ════════════════════════════════
   RESPONSIVE — SMALL MOBILE ≤ 400px
════════════════════════════════ */
@media (max-width: 400px) {
    .ll-features {
        grid-template-columns: 1fr;
    }

    .ll-feat {
        flex-direction: row;
    }

    .login-card h2 {
        font-size: 1.2rem;
    }

    .btn-hrm-login {
        font-size: 0.85rem;
    }

    .ll-body h1 {
        font-size: 1.15rem;
    }
}

/* ════════════════════════════════
   RESPONSIVE — LARGE SCREENS ≥ 1400px
════════════════════════════════ */
@media (min-width: 1400px) {
    .login-wrap {
        grid-template-columns: 1fr 540px;
    }

    .ll-body h1 {
        font-size: 2.6rem;
        max-width: 480px;
    }

    .ll-body p {
        font-size: 0.95rem;
        max-width: 380px;
    }

    .login-card {
        max-width: 430px;
    }
}
