/* ============ IKON POS — Login & halaman auth (self-contained) ============ */
:root {
    --il-primary: #10b981;
    --il-primary-dark: #059669;
    --il-ink: #0f172a;
    --il-muted: #64748b;
    --il-border: #e5e9f0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
}

.il-page {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: auto;
    background:
        radial-gradient(1200px 600px at 10% -10%, rgba(16, 185, 129, 0.18), transparent 60%),
        radial-gradient(1000px 700px at 110% 110%, rgba(5, 150, 105, 0.22), transparent 55%),
        linear-gradient(135deg, #0b1220 0%, #0f2027 45%, #10261f 100%);
    font-family: "Roboto", "Segoe UI", system-ui, -apple-system, sans-serif;
}

.il-card {
    display: flex;
    width: 100%;
    max-width: 960px;
    min-height: 560px;
    border-radius: 24px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}

/* ---------- Panel brand (kiri) ---------- */
.il-brand {
    position: relative;
    flex: 1 1 52%;
    padding: 44px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    background:
        radial-gradient(600px 300px at 120% 0%, rgba(255, 255, 255, 0.16), transparent 60%),
        linear-gradient(160deg, #064e3b 0%, #059669 55%, #10b981 100%);
    overflow: hidden;
}

.il-brand::after {
    content: "";
    position: absolute;
    right: -80px;
    bottom: -90px;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
}

.il-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 34px;
    position: relative;
    z-index: 1;
}

.il-logo img {
    height: 42px;
    width: auto;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.25));
}

.il-logo span {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.5px;
}

.il-brand h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 12px;
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1.25;
}

.il-brand p.il-sub {
    position: relative;
    z-index: 1;
    margin: 0 0 28px;
    font-size: 0.98rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.82);
    max-width: 380px;
}

.il-features {
    position: relative;
    z-index: 1;
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.il-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.92);
}

.il-feat-ic {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.16);
}

.il-feat-ic svg {
    width: 16px;
    height: 16px;
}

.il-brand-foot {
    position: relative;
    z-index: 1;
    margin-top: auto;
    padding-top: 28px;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.7);
}

/* ---------- Panel form (kanan) ---------- */
.il-form-wrap {
    flex: 1 1 48%;
    padding: 48px 44px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #ffffff;
}

.il-form-head {
    margin-bottom: 26px;
}

.il-form-head h1 {
    margin: 0 0 6px;
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--il-ink);
}

.il-form-head p {
    margin: 0;
    font-size: 0.9rem;
    color: var(--il-muted);
}

/* Banner pesan (menggantikan bootbox) */
.il-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #b91c1c;
    font-size: 0.86rem;
    line-height: 1.5;
}

.il-alert svg {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin-top: 1px;
}

.il-alert a { color: inherit; font-weight: 600; }

.il-field {
    margin-bottom: 18px;
}

.il-field label {
    display: block;
    margin-bottom: 7px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
}

.il-input {
    position: relative;
    display: flex;
    align-items: center;
}

.il-input .il-ic {
    position: absolute;
    left: 14px;
    display: flex;
    color: var(--il-muted);
    pointer-events: none;
}

.il-input .il-ic svg {
    width: 18px;
    height: 18px;
}

.il-input input {
    width: 100%;
    height: 52px;
    padding: 0 44px 0 44px;
    border: 1.5px solid var(--il-border);
    border-radius: 13px;
    background: #f8fafc;
    font-size: 0.95rem;
    color: var(--il-ink);
    transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
    outline: none;
}

.il-input input::placeholder {
    color: #aeb8c6;
}

.il-input input:focus {
    border-color: var(--il-primary);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.14);
}

#formLogin.was-validated input:invalid {
    border-color: #ef4444;
    background: #fff5f5;
}

.il-toggle-pw {
    position: absolute;
    right: 12px;
    display: flex;
    padding: 6px;
    border: 0;
    background: transparent;
    color: var(--il-muted);
    cursor: pointer;
}

.il-toggle-pw svg {
    width: 18px;
    height: 18px;
}

.il-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.il-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.85rem;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

.il-check input {
    width: 16px;
    height: 16px;
    accent-color: var(--il-primary);
}

.il-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--il-primary-dark);
    text-decoration: none;
}

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

.il-btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 13px;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--il-primary), var(--il-primary-dark));
    box-shadow: 0 12px 24px rgba(16, 185, 129, 0.35);
    transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.il-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 30px rgba(16, 185, 129, 0.42);
    filter: brightness(1.03);
}

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

.il-form-foot {
    margin-top: 26px;
    text-align: center;
    font-size: 0.78rem;
    color: #94a3b8;
}

/* ---------- Responsif ---------- */
@media (max-width: 820px) {
    .il-card {
        flex-direction: column;
        max-width: 460px;
        min-height: 0;
    }
    .il-brand {
        padding: 30px 30px 26px;
    }
    .il-brand h2 {
        font-size: 1.5rem;
        text-align: center;
    }
    .il-features,
    .il-brand p.il-sub,
    .il-brand-foot {
        display: none;
    }
    .il-logo {
        margin-bottom: 16px;
        justify-content: center;
    }
    .il-form-wrap {
        padding: 32px 26px 30px;
    }
}

@media (max-width: 400px) {
    .il-page { padding: 0; }
    .il-card { border-radius: 0; min-height: 100vh; }
}
