/* Professional ERP login — split layout + centered ERP orbit */
:root {
    --brand: #0A4D8C;
    --ink: #101828;
    --muted: #667085;
    --line: rgba(16, 24, 40, 0.1);
    --font: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body.erp-login-body {
    margin: 0;
    min-height: 100%;
    font-family: var(--font);
    background: #fff;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

.erp-login-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(380px, 460px) 1fr;
}

/* Left panel */
.erp-login-panel {
    background: #fff;
    padding: 1.35rem 1.6rem 1.1rem;
    display: flex;
    flex-direction: column;
    border-right: 1px solid var(--line);
    position: relative;
    z-index: 2;
    overflow: auto;
}

.erp-login-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.erp-login-brand {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
}

.erp-login-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border-radius: 12px;
    background: #f8fafc;
    border: 1px solid var(--line);
    padding: 4px;
}

.erp-login-brand strong {
    display: block;
    font-size: 0.95rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.erp-login-brand small {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 500;
}

.erp-login-home {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.78rem;
    font-weight: 650;
    color: var(--brand);
    text-decoration: none;
    border: 1px solid color-mix(in srgb, var(--brand) 28%, #fff);
    background: color-mix(in srgb, var(--brand) 6%, #fff);
    border-radius: 999px;
    padding: 0.4rem 0.8rem;
    transition: 0.15s ease;
}

.erp-login-home:hover {
    background: color-mix(in srgb, var(--brand) 12%, #fff);
}

.erp-login-form-wrap {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
}

.erp-field { margin-bottom: 0.85rem; }

.erp-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 650;
    margin-bottom: 0.35rem;
    color: #344054;
}

.erp-input {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: #f8fafc;
    border: 1px solid #e4e7ec;
    border-radius: 12px;
    padding: 0 0.9rem;
    transition: 0.15s ease;
}

.erp-input:focus-within {
    border-color: var(--brand);
    background: #fff;
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 16%, transparent);
}

.erp-input iconify-icon {
    color: #98a2b3;
    font-size: 1.1rem;
}

.erp-input input {
    flex: 1;
    border: 0;
    background: transparent;
    outline: none;
    padding: 0.85rem 0;
    font: inherit;
    font-size: 0.92rem;
    color: var(--ink);
}

.erp-eye {
    border: 0;
    background: transparent;
    color: #98a2b3;
    cursor: pointer;
    padding: 0;
    display: grid;
    place-items: center;
}

.erp-login-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 0.15rem 0 1rem;
    font-size: 0.82rem;
}

.erp-login-row a {
    color: var(--brand);
    text-decoration: none;
    font-weight: 650;
}

.erp-check {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--muted);
}

.erp-btn-primary,
.erp-btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    width: 100%;
    border-radius: 12px;
    padding: 0.85rem 1rem;
    font-weight: 700;
    font-size: 0.94rem;
    text-decoration: none;
    border: 1px solid transparent;
    cursor: pointer;
    transition: 0.15s ease;
}

.erp-demo-login {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 0 0 0.85rem;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
    border: 1px dashed color-mix(in srgb, var(--brand) 40%, #d0d5dd);
    background: color-mix(in srgb, var(--brand) 7%, #fff);
    color: var(--ink);
    cursor: pointer;
    text-align: left;
    transition: 0.18s ease;
}

.erp-demo-login:hover {
    border-style: solid;
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 12%, #fff);
    box-shadow: 0 8px 20px color-mix(in srgb, var(--brand) 18%, transparent);
    transform: translateY(-1px);
}

.erp-demo-login__badge {
    flex: 0 0 auto;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.erp-demo-login__body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}

.erp-demo-login__body strong {
    font-size: 0.88rem;
    font-weight: 750;
}

.erp-demo-login__body em {
    font-style: normal;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--brand);
}

.erp-demo-login__body small {
    font-size: 0.72rem;
    color: var(--muted);
}

.erp-demo-login iconify-icon {
    color: var(--brand);
    flex-shrink: 0;
}

.erp-demo-login.is-filled {
    border-style: solid;
    border-color: var(--brand);
}

.erp-btn-primary {
    background: var(--brand);
    color: #fff;
    margin-bottom: 0.65rem;
    box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 28%, transparent);
}

.erp-btn-primary:hover {
    filter: brightness(1.05);
    transform: translateY(-1px);
}

.erp-btn-outline {
    background: #fff;
    color: var(--brand);
    border-color: #d0d5dd;
}

.erp-btn-outline:hover {
    border-color: var(--brand);
    background: color-mix(in srgb, var(--brand) 6%, #fff);
}

/* ===== ERP CIRCLE (ERP in center) ===== */
.erp-circle-block {
    margin-top: 1.35rem;
    padding-top: 1.1rem;
    border-top: 1px solid #eef2f6;
    text-align: center;
}

.erp-circle-block__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.75rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 750;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand);
    background: color-mix(in srgb, var(--brand) 10%, #fff);
    border: 1px solid color-mix(in srgb, var(--brand) 22%, #fff);
    margin-bottom: 0.45rem;
}

.erp-circle-block__sub {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.82rem;
}

.erp-orbit {
    --orbit-size: 280px;
    --hub-size: 86px;
    --sat-size: 58px;
    position: relative;
    width: var(--orbit-size);
    height: var(--orbit-size);
    margin: 0.25rem auto 0.5rem;
}

.erp-orbit__ring {
    position: absolute;
    inset: 18%;
    border-radius: 50%;
    border: 1.5px dashed color-mix(in srgb, var(--brand) 28%, #cbd5e1);
    pointer-events: none;
}

.erp-orbit__hub {
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--hub-size);
    height: var(--hub-size);
    margin: calc(var(--hub-size) / -2) 0 0 calc(var(--hub-size) / -2);
    border-radius: 50%;
    background: linear-gradient(145deg, var(--brand), color-mix(in srgb, var(--brand) 70%, #0f172a));
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.15rem;
    z-index: 3;
    box-shadow:
        0 0 0 6px color-mix(in srgb, var(--brand) 14%, transparent),
        0 14px 32px color-mix(in srgb, var(--brand) 35%, transparent);
}

.erp-orbit__hub strong {
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    font-weight: 800;
    line-height: 1;
}

.erp-orbit__hub iconify-icon {
    opacity: 0.95;
}

.erp-orbit__sat {
    --angle: calc(var(--i) * (360deg / var(--n)) - 90deg);
    position: absolute;
    top: 50%;
    left: 50%;
    width: var(--sat-size);
    height: var(--sat-size);
    margin: calc(var(--sat-size) / -2) 0 0 calc(var(--sat-size) / -2);
    transform: rotate(var(--angle)) translate(calc(var(--orbit-size) * 0.38)) rotate(calc(-1 * var(--angle)));
    z-index: 2;
}

.erp-orbit__sat-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background: #fff;
    border: 1px solid #e4e7ec;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    transition: 0.2s ease;
}

.erp-orbit__sat:hover .erp-orbit__sat-inner {
    border-color: color-mix(in srgb, var(--brand) 45%, #e4e7ec);
    box-shadow: 0 10px 22px color-mix(in srgb, var(--brand) 18%, transparent);
    transform: scale(1.06);
}

.erp-orbit__sat-inner iconify-icon {
    color: var(--brand);
}

.erp-orbit__sat-inner em {
    font-style: normal;
    font-size: 0.52rem;
    font-weight: 700;
    color: #475467;
    line-height: 1;
    max-width: 90%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.erp-login-foot {
    text-align: center;
    color: #98a2b3;
    font-size: 0.74rem;
    margin: 0.65rem 0 0;
}

.erp-login-foot strong {
    color: #667085;
}

/* Right showcase */
.erp-login-showcase {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(160deg, #07111d 0%, #0c1f36 45%, #081722 100%);
}

.erp-login-showcase__glow {
    position: absolute;
    width: 560px;
    height: 560px;
    left: 50%;
    top: 35%;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: radial-gradient(circle, color-mix(in srgb, var(--brand) 40%, transparent), transparent 68%);
    filter: blur(8px);
    pointer-events: none;
}

.erp-login-showcase__grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 45%, #000 15%, transparent 75%);
    opacity: 0.65;
    pointer-events: none;
}

.erp-login-showcase__network {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.35;
    background-image:
        radial-gradient(circle at 20% 30%, color-mix(in srgb, var(--brand) 55%, transparent) 0 1.5px, transparent 2px),
        radial-gradient(circle at 70% 25%, color-mix(in srgb, var(--brand) 55%, transparent) 0 1.5px, transparent 2px),
        radial-gradient(circle at 45% 60%, color-mix(in srgb, var(--brand) 55%, transparent) 0 1.5px, transparent 2px),
        radial-gradient(circle at 80% 70%, color-mix(in srgb, var(--brand) 55%, transparent) 0 1.5px, transparent 2px),
        radial-gradient(circle at 30% 75%, color-mix(in srgb, var(--brand) 55%, transparent) 0 1.5px, transparent 2px);
}

.erp-login-showcase__inner {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    padding: clamp(2rem, 5vw, 4rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 640px;
}

.erp-login-kicker {
    margin: 0 0 1.25rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
    font-weight: 700;
    color: rgba(255,255,255,0.55);
}

.erp-login-tagline h2 {
    margin: 0 0 0.85rem;
    font-size: clamp(2rem, 4vw, 3.1rem);
    letter-spacing: -0.04em;
    line-height: 1.12;
    max-width: 520px;
    font-weight: 800;
}

.erp-login-tagline p {
    margin: 0;
    color: rgba(255,255,255,0.7);
    font-size: 1.05rem;
    max-width: 420px;
    line-height: 1.55;
}

.erp-login-slides {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 2.5rem;
}

.erp-slide-btn {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.28);
    background: transparent;
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: 0.15s ease;
}

.erp-slide-btn:hover {
    background: rgba(255,255,255,0.1);
    border-color: #fff;
}

.erp-slide-dash {
    width: 28px;
    height: 3px;
    border-radius: 999px;
    background: rgba(255,255,255,0.55);
    margin-left: 0.25rem;
}

@media (max-width: 1100px) {
    .erp-orbit {
        --orbit-size: 250px;
        --hub-size: 78px;
        --sat-size: 52px;
    }
}

@media (max-width: 980px) {
    .erp-login-shell {
        grid-template-columns: 1fr;
    }
    .erp-login-showcase {
        display: none;
    }
    .erp-login-panel {
        border-right: 0;
        min-height: 100vh;
    }
}

@media (max-height: 820px) {
    .erp-orbit {
        --orbit-size: 230px;
        --hub-size: 72px;
        --sat-size: 48px;
    }
    .erp-orbit__sat-inner em {
        font-size: 0.48rem;
    }
}
