.system-login,
.system-body {
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at 20% 20%, rgba(217, 40, 40, 0.26), transparent 30%),
        radial-gradient(circle at 80% 12%, rgba(31, 111, 235, 0.22), transparent 28%),
        linear-gradient(160deg, #101317, #07090c);
}

.login-shell {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 28px;
}

.login-card {
    width: min(520px, 100%);
    padding: 34px;
    border: 1px solid var(--border);
    border-radius: 30px;
    background: rgba(16, 19, 23, 0.9);
    box-shadow: var(--shadow);
}

.login-card h1 {
    font-size: clamp(2rem, 5vw, 3.4rem);
}

.login-card > p:not(.eyebrow) {
    color: #dce5ec;
}

.alert {
    margin: 18px 0;
    padding: 14px 16px;
    border: 1px solid rgba(217, 40, 40, 0.45);
    border-radius: 16px;
    color: #fff;
    background: rgba(217, 40, 40, 0.18);
    font-weight: 700;
}

.system-header {
    border-bottom: 1px solid var(--border);
    background: rgba(8, 10, 13, 0.92);
}

.system-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 78px;
    gap: 20px;
}

.user-box {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #fff;
}

.user-box small {
    color: var(--muted);
}

.user-box a {
    padding: 9px 14px;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-weight: 800;
}

.system-main {
    padding: 58px 0 80px;
}

.system-hero {
    display: grid;
    grid-template-columns: 1.3fr 0.7fr;
    gap: 24px;
    align-items: stretch;
    margin-bottom: 28px;
}

.system-hero > div,
.system-note,
.module-card {
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.07);
    box-shadow: var(--shadow);
}

.system-hero > div {
    padding: 32px;
}

.system-hero h1 {
    font-size: clamp(2.2rem, 5vw, 4.8rem);
}

.system-hero p,
.system-note p,
.module-card p {
    color: #dce5ec;
}

.system-note strong {
    display: block;
    margin-bottom: 10px;
    font-family: "Montserrat", sans-serif;
    font-size: 1.2rem;
}

.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.module-card {
    padding: 24px;
}

.module-link {
    display: block;
    transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.module-link:hover,
.module-link:focus {
    border-color: rgba(217, 40, 40, 0.7);
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-3px);
}

.module-card span {
    display: inline-block;
    margin-bottom: 18px;
    padding: 8px 11px;
    border-radius: 999px;
    color: #fff;
    background: rgba(217, 40, 40, 0.82);
    font-size: 0.78rem;
    font-weight: 800;
}

.module-card h2 {
    margin-bottom: 12px;
    font-size: 1.35rem;
}

.module-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    margin-bottom: 24px;
}

.module-header h1 {
    margin-bottom: 0;
    font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.system-panel {
    margin-bottom: 24px;
    padding: 26px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow);
}

.system-panel h2 {
    font-size: 1.7rem;
}

.system-panel h3 {
    margin-top: 28px;
}

.system-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.system-form label {
    margin-bottom: 0;
}

.system-form textarea,
.system-form select,
.system-form input {
    min-height: 48px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 22px;
}

.notice {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 16px;
    font-weight: 800;
}

.notice-success {
    color: #eafff1;
    border: 1px solid rgba(55, 214, 122, 0.42);
    background: rgba(55, 214, 122, 0.16);
}

.notice-error {
    color: #fff1f1;
    border: 1px solid rgba(217, 40, 40, 0.5);
    background: rgba(217, 40, 40, 0.18);
}

.table-wrap {
    overflow-x: auto;
}

.system-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

.system-table th,
.system-table td {
    padding: 13px 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.13);
    text-align: left;
    vertical-align: top;
}

.system-table th {
    color: #fff;
    font-family: "Montserrat", sans-serif;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.system-table td {
    color: #dce5ec;
}

.actions-cell {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.actions-cell a,
.actions-cell button {
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    padding: 8px 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    font: inherit;
    font-weight: 800;
}

.actions-cell button {
    border-color: rgba(217, 40, 40, 0.45);
    background: rgba(217, 40, 40, 0.18);
}

@media (max-width: 920px) {
    .system-hero,
    .module-grid,
    .system-form-grid {
        grid-template-columns: 1fr;
    }

    .system-nav,
    .user-box {
        align-items: flex-start;
        flex-direction: column;
    }

    .system-nav {
        padding: 18px 0;
    }

    .module-header {
        align-items: flex-start;
        flex-direction: column;
    }
}
