*, *::before, *::after { box-sizing: border-box; }
body {
    font-family: 'Inter', sans-serif;
    background: #0f172a;
    min-height: 100vh;
    margin: 0;
    display: flex;
}

/* ── Left branding panel ───────────────────────────────────── */
.sys-panel-left {
    width: 420px;
    flex-shrink: 0;
    background: linear-gradient(160deg,
        var(--fs-primary) 0%,
        color-mix(in srgb, var(--fs-primary) 60%, #000) 100%);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 3rem 2.5rem;
    position: relative;
    overflow: hidden;
}
.sys-panel-left::before {
    content: "";
    position: absolute; inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.sys-brand-wrap { position: relative; }
.sys-logo {
    display: inline-flex; align-items: center; gap: .7rem;
    color: #fff; font-size: 1.4rem; font-weight: 800; margin-bottom: 2.5rem;
}
.sys-logo-icon {
    width: 44px; height: 44px; border-radius: 12px;
    background: rgba(255,255,255,.15);
    display: flex; align-items: center; justify-content: center;
}
.sys-panel-headline {
    color: #fff; font-size: 1.7rem; font-weight: 800; line-height: 1.25;
    margin-bottom: .75rem;
}
.sys-panel-sub { color: rgba(255,255,255,.7); font-size: .92rem; line-height: 1.6; }
.sys-security-list { list-style: none; padding: 0; margin: 2rem 0 0; }
.sys-security-list li {
    display: flex; align-items: center; gap: .75rem;
    color: rgba(255,255,255,.85); font-size: .87rem; margin-bottom: .85rem;
}
.sys-security-list li i {
    width: 32px; height: 32px; border-radius: 8px;
    background: rgba(255,255,255,.12);
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem; color: #fff; flex-shrink: 0;
}
.sys-panel-footer {
    color: rgba(255,255,255,.45); font-size: .78rem; position: relative;
}

/* ── Right form panel ──────────────────────────────────────── */
.sys-panel-right {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: #f8fafc;
}
.sys-form-wrap {
    width: 100%;
    max-width: 400px;
}

/* ── Form elements ─────────────────────────────────────────── */
.sys-form-label {
    font-size: .83rem; font-weight: 600; color: #374151;
    margin-bottom: .35rem; display: block;
}
.sys-form-control {
    width: 100%; padding: .65rem .9rem;
    border: 1.5px solid #d1d5db; border-radius: 8px;
    font-size: .92rem; font-family: inherit;
    background: #fff; color: #111827;
    transition: border-color .15s, box-shadow .15s;
    outline: none;
}
.sys-form-control:focus {
    border-color: var(--fs-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--fs-primary) 15%, transparent);
}
.sys-btn {
    width: 100%; padding: .7rem 1rem;
    background: var(--fs-primary); color: #fff;
    border: none; border-radius: 8px;
    font-size: .95rem; font-weight: 700;
    font-family: inherit; cursor: pointer;
    transition: opacity .18s;
}
.sys-btn:hover { opacity: .88; }
.sys-badge {
    display: inline-flex; align-items: center; gap: .4rem;
    font-size: .75rem; font-weight: 700;
    background: color-mix(in srgb, var(--fs-primary) 12%, transparent);
    color: var(--fs-primary);
    border: 1px solid color-mix(in srgb, var(--fs-primary) 25%, transparent);
    padding: .25rem .75rem; border-radius: 50px; margin-bottom: 1rem;
}
.sys-divider {
    border: none; border-top: 1px solid #e5e7eb; margin: 1.5rem 0;
}
.sys-alert-danger {
    background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b;
    border-radius: 8px; padding: .65rem 1rem; font-size: .85rem;
    display: flex; align-items: flex-start; gap: .6rem; margin-bottom: 1rem;
}

/* ── Responsive ────────────────────────────────────────────── */
@media (max-width: 768px) {
    .sys-panel-left { display: none; }
    .sys-panel-right { background: #0f172a; }
    .sys-form-wrap {
        background: #1e293b; padding: 2rem 1.5rem;
        border-radius: 16px; border: 1px solid #334155;
    }
    .sys-form-label  { color: #94a3b8; }
    .sys-form-control { background: #0f172a; border-color: #334155; color: #f1f5f9; }
    .sys-form-control:focus {
        border-color: var(--fs-primary);
        box-shadow: 0 0 0 3px color-mix(in srgb, var(--fs-primary) 20%, transparent);
    }
}
