.login-body {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #07111f;
}

.login-tech-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background:
        radial-gradient(circle at 18% 18%, rgba(20, 214, 255, 0.22), transparent 28%),
        radial-gradient(circle at 82% 68%, rgba(37, 255, 190, 0.18), transparent 30%),
        linear-gradient(135deg, #07111f 0%, #0a263d 48%, #050915 100%);
}

.login-body::before,
.login-body::after {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
}

.login-body::before {
    background:
        linear-gradient(115deg, transparent 0 16%, rgba(36, 221, 198, 0.18) 16% 16.4%, transparent 16.4% 56%, rgba(37, 150, 255, 0.18) 56% 56.4%, transparent 56.4%),
        linear-gradient(90deg, transparent 0 49.8%, rgba(38, 204, 255, 0.14) 49.8% 50.1%, transparent 50.1%);
    opacity: 0.9;
}

.login-body::after {
    display: none;
}

.login-panel {
    position: relative;
    z-index: 1;
    width: min(420px, calc(100vw - 32px));
    padding: 36px;
    border: 1px solid rgba(64, 221, 255, 0.26);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.35), 0 0 32px rgba(48, 208, 255, 0.16);
    backdrop-filter: blur(8px);
}

.login-brand {
    margin-bottom: 26px;
    text-align: center;
}

.login-brand h1 {
    margin: 0 0 8px;
    font-size: 28px;
    letter-spacing: 0;
}

.login-brand p {
    margin: 0;
    color: #697783;
}

.login-panel .layui-input {
    border-color: #cfd8e3;
    background: #fff;
}

.login-panel .layui-input:focus {
    border-color: #16b6d8;
    box-shadow: 0 0 0 2px rgba(22, 182, 216, 0.12);
}

.login-submit-row {
    text-align: right;
}

.login-submit-btn {
    width: 180px;
}

.captcha-row {
    display: grid;
    grid-template-columns: 1fr 120px;
    gap: 10px;
    align-items: center;
}

.captcha-image {
    width: 120px;
    height: 42px;
    border: 1px solid #d8dee6;
    border-radius: 4px;
    background: #f4f7fb;
    cursor: pointer;
}

.admin-frame-content {
    box-sizing: border-box;
    padding: 24px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.list-page {
    height: calc(100vh - 48px);
    min-height: 360px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.table-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow: auto;
    border: 1px solid #e6ebf1;
    border-radius: 6px;
    background: #fff;
}

.table-scroll .layui-table {
    margin: 0;
    border: 0;
}

.table-scroll .layui-table th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.layui-table-page {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    text-align: right;
}

.layui-table-page > div {
    width: auto;
}

.toolbar-form {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.toolbar-form .layui-input,
.toolbar-form .layui-select {
    width: 220px;
}

.form-panel {
    max-width: 760px;
    padding: 24px;
    border: 1px solid #e6ebf1;
    border-radius: 6px;
    background: #fff;
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 20px;
}

.stat-card {
    padding: 18px;
    border: 1px solid #e6ebf1;
    border-radius: 6px;
    background: #fff;
}

.stat-card span {
    display: block;
    margin-bottom: 10px;
    color: #697783;
}

.stat-card strong {
    font-size: 30px;
}

.page-box {
    flex: 0 0 auto;
    padding-top: 14px;
    background: #f4f6f8;
}

.pagination {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.pagination li {
    list-style: none;
}

.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 34px;
    height: 34px;
    padding: 0 10px;
    border: 1px solid #d8dee6;
    border-radius: 4px;
    background: #fff;
}

.pagination .active span {
    border-color: #1677ff;
    background: #1677ff;
    color: #fff;
}

.pagination .disabled span {
    color: #aab3bd;
}

.permission-title {
    margin-bottom: 16px;
    font-weight: 700;
}

.permission-tree {
    margin-bottom: 20px;
}

.permission-group {
    margin-bottom: 14px;
    padding: 14px;
    border: 1px solid #e6ebf1;
    border-radius: 6px;
}

.permission-parent {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
}

.permission-children {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 12px;
    padding-left: 24px;
}

.permission-children label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.tree-indent {
    padding-left: 24px;
    color: #46515c;
}

.sort-input {
    width: 82px;
    height: 30px;
    padding: 0 8px;
}

input[type="number"] {
    appearance: textfield;
    -moz-appearance: textfield;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    margin: 0;
    appearance: none;
    -webkit-appearance: none;
}

.ua-cell {
    max-width: 360px;
    word-break: break-all;
}

.empty-state {
    padding: 60px 20px;
    text-align: center;
}

.empty-state h2 {
    margin: 0 0 10px;
    font-size: 54px;
}

.empty-state p {
    color: #697783;
}

@media (max-width: 900px) {
    .stat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
