/* ==========================================================
   HRMS Login v2 — split layout (light form card + light #c552a0 hero)
   All selectors are scoped under .hl-login so the admin theme
   CSS loaded after this file cannot override them.
   ========================================================== */

html, body { height: 100%; }
body.hl-body { margin: 0; background: #f5e6f0; overflow-x: hidden; }

.hl-login {
    --hl-primary: #c552a0;
    --hl-primary-dark: #a83f88;
    --hl-ink: #16121f;
    --hl-muted: #5d5868;
    --hl-border: #ead6e3;
    display: flex;
    min-height: 100vh;
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    color: var(--hl-ink);
}
.hl-login *, .hl-login *::before, .hl-login *::after { box-sizing: border-box; }

/* ---------------- Left: form ---------------- */
.hl-login .hl-left {
    flex: 0 0 40%;
    max-width: 40%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px 38px;
    height: 100vh; min-height: 100vh;
    background:
        radial-gradient(420px 420px at -60px 110%, rgba(226, 150, 200, .45), transparent 70%),
        radial-gradient(380px 380px at 100% -40px, rgba(236, 180, 216, .50), transparent 70%),
        #f6e8f1;
    overflow: hidden;
}
.hl-login .hl-left::before {
    content: "";
    position: absolute;
    left: -180px; top: 20%;
    width: 360px; height: 520px;
    border-radius: 50%;
    border: 1px solid rgba(197, 82, 160, .16);
}

.hl-login .hl-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 540px;
    background: rgba(255, 255, 255, .92);
    border: 1px solid #f2e3ed;
    border-radius: 22px;
    box-shadow: 0 18px 50px rgba(150, 40, 110, .10), 0 2px 6px rgba(150, 40, 110, .04);
    padding: 24px 40px 16px;
}

.hl-login .hl-card-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 36px;
}
.hl-login .hl-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.hl-login .hl-brand-logo { width: 46px; height: 46px; flex: 0 0 46px; object-fit: contain; }
.hl-login .hl-brand-name {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 23px; font-weight: 700; letter-spacing: .5px; line-height: 1;
    color: var(--hl-ink);
    position: relative;
}
.hl-login .hl-brand-name::after {
    content: ""; position: absolute; right: -6px; top: 1px;
    width: 3px; height: 3px; border-radius: 50%; background: var(--hl-primary);
}
.hl-login .hl-brand-sub { display: block; font-size: 10px; color: var(--hl-muted); margin-top: 5px; letter-spacing: .1px; }

.hl-login .hl-tabs { display: flex; align-items: center; gap: 10px; padding-top: 8px; font-size: 14px; color: #6a6475; }
.hl-login .hl-tabs span.dot { width: 3px; height: 3px; border-radius: 50%; background: #9a93a6; }
.hl-login .hl-tabs span.active { color: #a83f88; position: relative; }
.hl-login .hl-tabs span.active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -12px;
    height: 2px; border-radius: 2px; background: var(--hl-primary);
}

.hl-login h1.hl-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 33px; font-weight: 600; letter-spacing: .2px;
    margin: 0 0 8px; color: var(--hl-ink); line-height: 1.15;
}
.hl-login .hl-subtitle { font-size: 17px; line-height: 1.3; color: var(--hl-muted); margin: 0 0 22px; max-width: 380px; }

.hl-login .hl-field { margin-bottom: 14px; }
.hl-login .hl-field label { display: block; font-size: 14px; font-weight: 500; color: var(--hl-ink); margin-bottom: 8px; }
.hl-login .hl-input {
    position: relative; display: flex; align-items: center;
    height: 46px; border: 1px solid var(--hl-border); border-radius: 9px; background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.hl-login .hl-input:focus-within { border-color: #e2a3cd; box-shadow: 0 0 0 3px rgba(197, 82, 160, .14); }
.hl-login .hl-input .hl-icon { width: 50px; display: flex; justify-content: center; color: #5f5a6a; }
.hl-login .hl-input .hl-icon svg { width: 18px; height: 18px; }
.hl-login .hl-input input {
    flex: 1; height: 100%; border: 0; outline: 0; background: transparent;
    font: inherit; font-size: 14px; color: var(--hl-ink); padding: 0 12px 0 6px;
}
.hl-login .hl-input input::placeholder { color: #8b8696; }
.hl-login .hl-eye { border: 0; background: transparent; padding: 0 14px; color: #5f5a6a; cursor: pointer; display: flex; }
.hl-login .hl-eye svg { width: 20px; height: 20px; }

.hl-login .hl-forgot { display: block; text-align: right; margin: -8px 0 8px; font-size: 14px; font-weight: 500; color: #a83f88; text-decoration: none; }
.hl-login .hl-forgot:hover { text-decoration: underline; }

.hl-login .hl-btn {
    width: 100%; height: 48px; border: 0; border-radius: 9px; cursor: pointer; margin-top: 10px;
    display: flex; align-items: center; justify-content: center; gap: 10px;
    font: inherit; font-size: 16px; font-weight: 500; color: #fff;
    background: linear-gradient(90deg, #c552a0 0%, #b5468f 50%, #a23a80 100%);
    box-shadow: 0 8px 18px rgba(197, 82, 160, .30);
    transition: filter .15s, transform .15s;
}
.hl-login .hl-btn:hover { filter: brightness(1.06); }
.hl-login .hl-btn:active { transform: translateY(1px); }
.hl-login .hl-btn:disabled { opacity: .75; cursor: default; }
.hl-login .hl-btn svg { width: 17px; height: 17px; }

.hl-login .hl-sep {
    display: flex; align-items: center; gap: 12px; margin: 18px 10px 14px;
    font-size: 11px; letter-spacing: .8px; text-transform: uppercase; color: #7b7586;
}
.hl-login .hl-sep::before, .hl-login .hl-sep::after { content: ""; flex: 1; height: 1px; background: #dcd8e2; }

.hl-login .hl-social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hl-login .hl-social a {
    height: 50px; display: flex; align-items: center; justify-content: center; gap: 12px;
    border: 1px solid var(--hl-border); border-radius: 9px; background: #fff; cursor: pointer;
    font-size: 13px; font-weight: 500; color: var(--hl-ink); text-decoration: none;
    transition: background .15s, border-color .15s;
}
.hl-login .hl-social a:hover { background: #fdf5fa; border-color: #ecc5de; }
.hl-login .hl-social svg { width: 22px; height: 22px; }

.hl-login .hl-secure {
    display: flex; align-items: center; gap: 16px; margin-top: 14px;
    padding: 12px 20px; border-radius: 10px; background: #fbedf5;
}
.hl-login .hl-secure svg { width: 24px; height: 24px; flex: 0 0 24px; color: #c552a0; }
.hl-login .hl-secure strong { display: block; font-size: 13px; font-weight: 500; color: var(--hl-ink); }
.hl-login .hl-secure span { display: block; font-size: 10px; color: var(--hl-muted); margin-top: 3px; }

/* ---------------- Right: hero ---------------- */
.hl-login .hl-right {
    flex: 1; position: relative; overflow: hidden; color: #fff;
    padding: clamp(20px, 6.5vh, 52px) 40px clamp(16px, 4.5vh, 36px) 74px;
    height: 100vh;
    background:
        radial-gradient(560px 400px at 100% 0%, rgba(240, 160, 210, .30), transparent 70%),
        radial-gradient(700px 520px at 85% 45%, rgba(214, 110, 176, .30), transparent 70%),
        radial-gradient(520px 420px at 25% 100%, rgba(255, 255, 255, .06), transparent 70%),
        linear-gradient(135deg, #a53c86 0%, #b5468f 40%, #c552a0 72%, #cf66ac 100%);
}
/* soft flowing waves */
.hl-login .hl-waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hl-login .hl-devices {
    position: absolute; right: 0; bottom: 0;
    width: auto; height: min(439px, 62vh); max-width: 42%; object-fit: contain; object-position: right bottom;
    pointer-events: none; user-select: none;
}
.hl-login .hl-script {
    position: absolute; right: 44px; top: 56px;
    font-family: 'Dancing Script', cursive; font-size: 30px; line-height: 1.05;
    color: rgba(255, 244, 251, .92); transform: rotate(-22deg); transform-origin: right top;
    pointer-events: none;
}
.hl-login .hl-script span { display: block; }
.hl-login .hl-script span:nth-child(2) { padding-left: 28px; }
.hl-login .hl-script span:nth-child(3) { padding-left: 32px; }
.hl-login .hl-script svg { display: block; width: 110px; margin: -2px 0 0 60px; }

.hl-login .hl-hero { position: relative; z-index: 2; max-width: 600px; }
.hl-login .hl-pill {
    display: inline-flex; align-items: center; gap: 12px;
    padding: 9px 16px; border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .16);
    font-size: 12px; letter-spacing: 1px; color: #fff;
}
.hl-login .hl-pill i { width: 10px; height: 10px; border-radius: 50%; background: #f5b82e; box-shadow: 0 0 8px rgba(245, 184, 46, .7); }

.hl-login h2.hl-hero-title {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 58px; font-weight: 500; line-height: .92; letter-spacing: -.5px;
    margin: 24px 0 20px; color: #fff; text-shadow: 0 2px 14px rgba(120, 20, 80, .18);
}
.hl-login h2.hl-hero-title em {
    font-style: normal; font-weight: 600; display: block;
    background: linear-gradient(90deg, #ffffff 0%, #ffe6f4 60%, #ffd6ec 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hl-login .hl-hero-sub { font-size: 19px; line-height: 1.3; color: #fff7fc; margin: 0 0 24px; max-width: 560px; }

.hl-login .hl-features { display: grid; grid-template-columns: repeat(4, 132px); gap: 14px; margin-bottom: 34px; }
.hl-login .hl-feature {
    height: 148px; padding: 16px 12px 14px 16px; border-radius: 12px;
    background: linear-gradient(180deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, .12));
    border: 1px solid rgba(255, 255, 255, .34);
    backdrop-filter: blur(6px);
}
.hl-login .hl-feature .ic {
    width: 46px; height: 46px; border-radius: 10px; margin-bottom: 18px;
    display: flex; align-items: center; justify-content: center;
    background: linear-gradient(145deg, #e283c2, #a83f88);
    box-shadow: 0 6px 16px rgba(160, 40, 120, .28);
}
.hl-login .hl-feature .ic svg { width: 24px; height: 24px; }
.hl-login .hl-feature h4 { font-size: 14px; font-weight: 600; margin: 0 0 8px; color: #fff; }
.hl-login .hl-feature p { font-size: 11px; line-height: 1.4; margin: 0; color: #fff3fa; white-space: nowrap; }

.hl-login .hl-quote {
    position: relative; max-width: 434px;
    padding: 24px 24px 18px 40px; border-radius: 12px;
    background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .32);
    backdrop-filter: blur(6px);
}
.hl-login .hl-quote .qmark { position: absolute; left: 14px; top: 16px; font-family: Georgia, serif; font-size: 34px; line-height: 1; color: #ffe0f1; }
.hl-login .hl-quote p { font-size: 14.5px; line-height: 1.35; margin: 0 0 12px; color: #fff; }
.hl-login .hl-quote cite { font-style: normal; font-size: 14.5px; color: #fff; position: relative; display: inline-block; padding-bottom: 3px; }
.hl-login .hl-quote cite::after { content: ""; position: absolute; left: 0; width: 34px; bottom: -2px; height: 2px; background: #fff; }


/* ---------------- Responsive ---------------- */
@media (max-width: 1400px) {
    .hl-login h2.hl-hero-title { font-size: 54px; }
    .hl-login .hl-features { grid-template-columns: repeat(4, 120px); }
    .hl-login .hl-right { padding-left: 50px; }
}
@media (max-width: 1199px) {
    .hl-login .hl-left { flex-basis: 48%; max-width: 48%; }
    .hl-login .hl-features { grid-template-columns: repeat(2, 132px); }
    .hl-login .hl-script { display: none; }
}
@media (max-width: 991px) {
    .hl-login { flex-direction: column; }
    .hl-login .hl-left { flex-basis: auto; max-width: 100%; height: auto; min-height: 100vh; padding: 24px 16px; overflow: visible; }
    .hl-login .hl-right { display: none; }
}
@media (max-width: 575px) {
    .hl-login .hl-card { padding: 22px 20px 14px; border-radius: 18px; }
    .hl-login .hl-card-head { margin-bottom: 30px; }
    .hl-login .hl-tabs { display: none; }
    .hl-login h1.hl-title { font-size: 28px; }
    .hl-login .hl-subtitle { font-size: 15px; }
    .hl-login .hl-social { grid-template-columns: 1fr; }
}

/* ---------------- Login status popup (loading / success) ---------------- */
.hl-body .hl-status {
    position: fixed; inset: 0; z-index: 10000;
    display: flex; align-items: center; justify-content: center; padding: 16px;
    background: rgba(70, 18, 52, .38);
    backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px);
    font-family: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
    animation: hlFade .18s ease-out;
}
.hl-body .hl-status[hidden] { display: none; }
.hl-body .hl-status-card {
    display: none; width: 100%; text-align: center; color: #1b1530;
    background: linear-gradient(180deg, #fdf4f9 0%, #fffafd 100%);
    border: 1px solid rgba(255, 255, 255, .8); border-radius: 18px;
    box-shadow: 0 24px 60px rgba(90, 20, 65, .30);
    animation: hlPop .22s cubic-bezier(.2, .9, .3, 1.2);
}
.hl-body .hl-status.is-loading .hl-status-loading,
.hl-body .hl-status.is-success .hl-status-success { display: block; }
.hl-body .hl-status-card h3 {
    font-family: 'Outfit', 'Plus Jakarta Sans', sans-serif;
    font-size: 22px; font-weight: 600; margin: 0 0 10px; color: #1b1530;
}
.hl-body .hl-status-card p { font-size: 12.5px; line-height: 1.55; color: #5d5875; margin: 0; }

/* loading */
.hl-body .hl-status-loading { max-width: 322px; padding: 26px 28px 26px; }
.hl-body .hl-lock {
    width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; background: #f9dcee;
}
.hl-body .hl-lock svg { width: 26px; height: 26px; }
.hl-body .hl-bar { height: 8px; margin: 20px 0 16px; border-radius: 8px; background: #f6e2ef; overflow: hidden; position: relative; }
.hl-body .hl-bar span {
    position: absolute; left: 0; top: 0; bottom: 0; width: 22%; border-radius: 8px;
    background: linear-gradient(90deg, #c552a0 0%, #dc7fbd 60%, #f2b9dc 100%);
    animation: hlLoad 2.4s cubic-bezier(.25, .8, .3, 1) forwards;
}
.hl-body .hl-almost { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: #3b2236; }
.hl-body .hl-almost svg { width: 16px; height: 16px; }

/* success */
.hl-body .hl-status-success { max-width: 372px; padding: 28px 26px 22px; }
.hl-body .hl-check { position: relative; width: 58px; height: 58px; margin: 0 auto 14px; }
.hl-body .hl-check span {
    display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%;
    background: linear-gradient(145deg, #e283c2 0%, #c552a0 55%, #a83f88 100%);
    box-shadow: 0 0 0 7px rgba(197, 82, 160, .14), 0 8px 18px rgba(168, 63, 136, .32);
    animation: hlPop .35s cubic-bezier(.2, .9, .3, 1.4);
}
.hl-body .hl-check span svg { width: 28px; height: 28px; }
.hl-body .hl-check .spark { position: absolute; width: 14px; height: 2px; border-radius: 2px; background: #e7a9d1; }
.hl-body .hl-check .s1 { left: -26px; top: 14px; transform: rotate(20deg); }
.hl-body .hl-check .s2 { left: -24px; top: 36px; transform: rotate(-12deg); width: 10px; }
.hl-body .hl-check .s3 { right: -26px; top: 14px; transform: rotate(-20deg); }
.hl-body .hl-check .s4 { right: -24px; top: 36px; transform: rotate(12deg); width: 10px; }
.hl-body .hl-status-success h3 { margin-bottom: 6px; }
.hl-body .hl-welcome { font-size: 16px; color: #4a3442; margin-bottom: 10px; }
.hl-body .hl-welcome b { font-weight: 700; color: #a83f88; }
.hl-body .hl-bar-green { height: 6px; margin: 14px 8px 8px; background: #f6e2ef; }
.hl-body .hl-bar-green span {
    width: 100%; background: linear-gradient(90deg, #a83f88, #c552a0 60%, #e283c2);
    animation: hlFill .7s ease-out forwards;
}
.hl-body .hl-illus { display: block; width: 285px; max-width: 100%; height: auto; margin: 4px auto 0; }
.hl-body .hl-allset {
    display: inline-block; margin-top: 8px; font-family: 'Dancing Script', cursive;
    font-size: 19px; color: #a83f88; transform: rotate(-4deg);
}
.hl-body .hl-allset svg { display: block; width: 120px; height: 10px; margin: -2px auto 0; }

@keyframes hlFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes hlPop { from { opacity: 0; transform: scale(.92); } to { opacity: 1; transform: scale(1); } }
@keyframes hlLoad { 0% { width: 8%; } 40% { width: 38%; } 100% { width: 82%; } }
@keyframes hlFill { from { width: 0; } to { width: 100%; } }
@media (prefers-reduced-motion: reduce) {
    .hl-body .hl-status, .hl-body .hl-status-card, .hl-body .hl-check span, .hl-body .hl-bar span { animation: none; }
}
