.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));
    }
}

.login-body {
    min-height: 100vh;
    padding: 32px;
    overflow: hidden;
    background:
        linear-gradient(135deg, #071311 0%, #0d2520 46%, #f3f5f3 46%, #f6f7f5 100%);
    color: #1f2926;
}

.login-tech-canvas {
    background:
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 72px),
        repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.03) 0 1px, transparent 1px 72px),
        linear-gradient(135deg, rgba(7, 19, 17, 0.98) 0%, rgba(15, 46, 39, 0.98) 46%, rgba(246, 247, 245, 0.98) 46%, rgba(246, 247, 245, 0.98) 100%);
}

.login-body::before {
    z-index: 0;
    background:
        linear-gradient(112deg, transparent 0 46%, rgba(216, 190, 127, 0.34) 46% 46.35%, transparent 46.35% 100%),
        linear-gradient(108deg, transparent 0 49%, rgba(255, 255, 255, 0.42) 49% 49.2%, transparent 49.2% 100%);
    opacity: 1;
}

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

.login-shell {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    min-height: min(760px, calc(100vh - 64px));
    display: grid;
    grid-template-columns: 1.02fr 0.98fr;
    overflow: hidden;
    border: 1px solid rgba(218, 226, 220, 0.24);
    border-radius: 22px;
    box-shadow: 0 30px 90px rgba(0, 0, 0, 0.3);
}

.login-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 640px;
    padding: clamp(34px, 5vw, 60px);
    background: linear-gradient(160deg, #071513 0%, #0c2822 54%, #14372f 100%);
    color: #f4f2e8;
    overflow: hidden;
}

.login-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(115deg, transparent 0 28%, rgba(218, 190, 127, 0.18) 28% 28.3%, transparent 28.3% 100%),
        radial-gradient(circle at 18% 72%, rgba(83, 184, 148, 0.16), transparent 24%);
}

.login-hero-content {
    position: relative;
    z-index: 1;
    max-width: 460px;
}

.login-hero-art {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center bottom;
    pointer-events: none;
    opacity: 0.96;
}

.login-hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border: 1px solid rgba(218, 190, 127, 0.42);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: #dfca98;
    font-size: 13px;
}

.login-hero h1 {
    margin: 24px 0 14px;
    color: #f8f3e8;
    font-size: clamp(44px, 3.8vw, 66px);
    line-height: 1.04;
    letter-spacing: 0;
}

.login-hero p {
    max-width: 28em;
    margin: 0;
    color: rgba(239, 246, 241, 0.82);
    font-size: 17px;
    line-height: 1.8;
}

.login-hero-list {
    display: grid;
    gap: 12px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
}

.login-hero-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #eef3ed;
}

.login-hero-list li::before {
    content: "";
    width: 10px;
    height: 10px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: linear-gradient(135deg, #78d9b2 0%, #dec98f 100%);
    box-shadow: 0 0 0 4px rgba(120, 217, 178, 0.1);
}

.login-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: auto;
    padding: clamp(30px, 4.4vw, 54px);
    border: 0;
    border-radius: 0;
    background: rgba(246, 248, 246, 0.96);
    box-shadow: none;
    backdrop-filter: blur(12px);
}

.login-panel-head {
    margin-bottom: 26px;
}

.login-panel-head h2 {
    margin: 0 0 8px;
    color: #1d2a26;
    font-size: 30px;
    line-height: 1.2;
}

.login-panel-head p {
    margin: 0;
    color: #6d7d78;
}

.login-panel .layui-form-item {
    margin-bottom: 18px;
}

.login-panel .layui-form-label {
    width: 108px;
    padding: 0 14px 0 0;
    color: #33423d;
    font-weight: 600;
    line-height: 52px;
    text-align: left;
}

.login-panel .layui-input-block {
    min-height: 52px;
    margin-left: 108px;
}

.login-field,
.login-captcha-field {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 52px;
    gap: 12px;
    padding: 0 14px;
    border: 1px solid #dbe3dd;
    border-radius: 14px;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.login-field:focus-within,
.login-captcha-field:focus-within {
    border-color: #5fbf9a;
    box-shadow: 0 0 0 3px rgba(95, 191, 154, 0.14);
}

.login-field-icon {
    display: inline-flex;
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
    color: #96a4ac;
}

.login-field-icon svg,
.login-password-toggle svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
}

.login-field-input {
    height: 52px;
    padding: 0;
    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    line-height: 52px;
}

.login-field-input::placeholder {
    color: #a1aeb7;
}

.login-password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    padding: 0;
    flex: 0 0 auto;
    border: 0;
    background: transparent;
    color: #95a1aa;
    cursor: pointer;
}

.login-password-toggle:hover,
.login-password-toggle:focus-visible,
.login-password-toggle.is-active {
    color: #1b8f70;
    outline: none;
}

.login-captcha-row {
    display: grid;
    grid-template-columns: 1fr 136px;
    gap: 12px;
    align-items: center;
}

.captcha-image {
    width: 136px;
    height: 52px;
    border: 1px solid #d8e1da;
    border-radius: 14px;
    background: #eef4ef;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
    cursor: pointer;
}

.login-submit-row {
    margin-top: 8px;
    text-align: left;
}

.login-submit-btn {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #4fb28e 0%, #28856f 100%);
    box-shadow: 0 16px 28px rgba(40, 133, 111, 0.24);
    font-size: 16px;
    font-weight: 700;
}

.login-submit-btn:hover {
    opacity: 0.98;
}

.login-panel-foot {
    margin-top: 16px;
    color: #85949a;
    font-size: 13px;
    text-align: center;
}

@media (max-width: 960px) {
    .login-body {
        padding: 16px;
    }

    .login-shell {
        grid-template-columns: 1fr;
        min-height: auto;
        border-radius: 20px;
    }

    .login-hero {
        min-height: 300px;
    }

    .login-hero-ornament {
        height: 180px;
    }

    .jade-ring {
        width: 160px;
    }

    .login-panel {
        padding: 28px;
    }
}

@media (max-width: 560px) {
    .login-hero {
        min-height: 240px;
        padding: 24px;
    }

    .login-hero h1 {
        font-size: 34px;
    }

    .login-hero p,
    .login-hero-list {
        font-size: 14px;
    }

    .login-panel .layui-form-label {
        float: none;
        display: block;
        width: auto;
        padding: 0 0 8px;
        line-height: 1.4;
    }

    .login-panel .layui-input-block {
        margin-left: 0;
    }

    .login-captcha-row {
        grid-template-columns: 1fr;
    }

    .captcha-image {
        width: 100%;
    }
}
