* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

#particle-canvas {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: linear-gradient(135deg, #0a3040 0%, #0f3d52 35%, #124a62 65%, #0a2838 100%);
}

.bg-glow {
    position: fixed;
    border-radius: 50%;
    pointer-events: none;
    z-index: 1;
    filter: blur(90px);
    will-change: transform, opacity;
}

.bg-glow-main {
    width: clamp(360px, 52vmin, 680px);
    height: clamp(360px, 52vmin, 680px);
    left: 0;
    top: 0;
    right: auto;
    bottom: auto;
    transform: translate(-32%, -32%);
    background: radial-gradient(
        circle,
        rgba(38, 194, 153, 0.55) 0%,
        rgba(45, 212, 168, 0.28) 35%,
        rgba(38, 194, 153, 0.08) 55%,
        transparent 72%
    );
    animation: glowPulseMain 7s ease-in-out infinite;
}

@keyframes glowPulseMain {
    0%, 100% {
        opacity: 0.75;
        transform: translate(-32%, -32%) scale(1);
    }
    50% {
        opacity: 1;
        transform: translate(-32%, -32%) scale(1.08);
    }
}

.bg-glow-sub {
    width: clamp(320px, 46vmin, 620px);
    height: clamp(320px, 46vmin, 620px);
    right: 0;
    bottom: 0;
    left: auto;
    top: auto;
    transform: translate(32%, 32%);
    background: radial-gradient(
        circle,
        rgba(38, 194, 153, 0.45) 0%,
        rgba(45, 212, 168, 0.22) 35%,
        rgba(56, 189, 248, 0.1) 55%,
        transparent 72%
    );
    animation: glowPulseSub 8s ease-in-out infinite reverse;
}

@keyframes glowPulseSub {
    0%, 100% {
        opacity: 0.65;
        transform: translate(32%, 32%) scale(1);
    }
    50% {
        opacity: 0.95;
        transform: translate(32%, 32%) scale(1.08);
    }
}

.grid-overlay {
    position: fixed;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(38, 194, 153, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(38, 194, 153, 0.04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 100%);
}

.login-page {
    position: relative;
    z-index: 3;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 24px;
    gap: 64px;
}

.brand-panel {
    flex: 0 1 520px;
    max-width: 520px;
    color: #fff;
    animation: fadeSlideIn 0.8s ease-out;
}

.brand-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: linear-gradient(135deg, #1a1a1a 0%, #333 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 24px rgba(38, 194, 153, 0.35);
    overflow: hidden;
}

.brand-logo svg {
    width: 32px;
    height: 32px;
}

.brand-name {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: 1px;
}

.brand-title {
    font-size: 42px;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: 16px;
    background: linear-gradient(90deg, #ffffff 0%, #a8e6cf 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.8;
    margin-bottom: 36px;
}

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.feature-card {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(8px);
    transition: transform 0.25s, border-color 0.25s, box-shadow 0.25s;
}

.feature-card:hover {
    transform: translateY(-2px);
    border-color: rgba(38, 194, 153, 0.35);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.feature-icon.green { background: linear-gradient(135deg, #26c299, #1a9b76); }
.feature-icon.blue { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.feature-icon.purple { background: linear-gradient(135deg, #8b5cf6, #7c3aed); }
.feature-icon.yellow { background: linear-gradient(135deg, #f59e0b, #d97706); }

.feature-text h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 4px;
    color: rgba(255, 255, 255, 0.95);
}

.feature-text p {
    font-size: 12px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.5;
}

.login-card {
    position: relative;
    flex: 0 1 420px;
    width: 100%;
    max-width: 420px;
    padding: 44px 38px 36px;
    border-radius: 20px;
    background:
        linear-gradient(125deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.06) 45%, transparent 70%),
        linear-gradient(145deg, rgba(48, 105, 125, 0.52) 0%, rgba(38, 88, 108, 0.44) 48%, rgba(42, 95, 115, 0.48) 100%);
    border: 1px solid rgba(255, 255, 255, 0.24);
    backdrop-filter: blur(32px) saturate(1.4);
    -webkit-backdrop-filter: blur(32px) saturate(1.4);
    box-shadow:
        0 0 0 1px rgba(38, 194, 153, 0.14),
        0 20px 50px rgba(0, 0, 0, 0.22),
        0 0 60px rgba(38, 194, 153, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.24),
        inset 0 -1px 0 rgba(0, 0, 0, 0.06);
    animation: fadeSlideIn 0.8s ease-out 0.15s both;
    overflow: hidden;
}

.card-border-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 5;
    overflow: visible;
}

.card-border-glow,
.card-border-path {
    fill: none;
    stroke: url(#inputBorderLightGrad);
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-dasharray: 88 912;
    stroke-dashoffset: 0;
    animation: cardPathLight 4s ease-in-out infinite alternate;
}

.card-border-glow {
    stroke-width: 6;
    opacity: 0.45;
    filter: blur(2px) drop-shadow(0 0 14px rgba(38, 194, 153, 0.55));
}

.card-border-path {
    stroke-width: 2;
    filter: drop-shadow(0 0 10px rgba(38, 194, 153, 0.55)) drop-shadow(0 0 6px rgba(94, 234, 212, 0.4));
}

@keyframes cardPathLight {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: 1000;
    }
}

.login-card-header,
.login-card .layui-form {
    position: relative;
    z-index: 1;
}

.login-card-header {
    margin-bottom: 32px;
}

.login-card-header h2 {
    font-size: 34px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    letter-spacing: 1px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.login-card-header p {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.48);
    font-weight: 300;
}

.input-group {
    position: relative;
    margin-bottom: 18px;
    border-radius: 10px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 -1px 0 rgba(0, 0, 0, 0.08);
}

.input-border-track {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
    overflow: visible;
}

.input-border-glow,
.input-border-path {
    fill: none;
    stroke: url(#inputBorderLightGrad);
    vector-effect: non-scaling-stroke;
    stroke-linecap: round;
    stroke-dasharray: 72 928;
    stroke-dashoffset: 0;
    animation: inputPathLight 3.2s ease-in-out infinite alternate;
}

.input-border-glow {
    stroke-width: 5;
    opacity: 0.5;
    filter: blur(2px) drop-shadow(0 0 12px rgba(38, 194, 153, 0.6));
}

.input-border-path {
    stroke-width: 2;
    filter: drop-shadow(0 0 8px rgba(38, 194, 153, 0.6)) drop-shadow(0 0 4px rgba(94, 234, 212, 0.45));
}

@keyframes inputPathLight {
    from {
        stroke-dashoffset: 0;
    }
    to {
        stroke-dashoffset: 1000;
    }
}

.input-group .input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.58);
    font-size: 18px;
    z-index: 3;
    pointer-events: none;
}

.input-group input {
    position: relative;
    z-index: 2;
    display: block;
    width: 100%;
    height: 50px;
    padding: 0 16px 0 48px;
    border-radius: 10px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: box-shadow 0.25s;
}

.input-group input::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.input-group input:focus {
    box-shadow: inset 0 0 0 1px rgba(38, 194, 153, 0.28), inset 0 0 20px rgba(38, 194, 153, 0.1);
}

.input-group:focus-within {
    border-color: rgba(38, 194, 153, 0.35);
    background: rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        0 0 20px rgba(38, 194, 153, 0.15);
}

.input-group:focus-within .input-border-glow,
.input-group:focus-within .input-border-path {
    stroke-dasharray: 80 920;
    animation-duration: 2.4s;
}

.input-group:focus-within .input-border-glow {
    opacity: 0.65;
    filter: blur(2px) drop-shadow(0 0 16px rgba(94, 234, 212, 0.75));
}

.input-group:focus-within .input-border-path {
    filter: drop-shadow(0 0 12px rgba(94, 234, 212, 0.85)) drop-shadow(0 0 6px rgba(38, 194, 153, 0.75));
}

.input-group input:-webkit-autofill,
.input-group input:-webkit-autofill:hover,
.input-group input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.1) inset;
    transition: background-color 5000s ease-in-out 0s;
}

.captcha-row {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
}

.captcha-row .input-group {
    flex: 1;
    margin-bottom: 0;
}

.captcha-img {
    flex-shrink: 0;
    width: 120px;
    height: 50px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    cursor: pointer;
    object-fit: cover;
    background: rgba(255, 255, 255, 0.92);
    transition: opacity 0.2s;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.captcha-img:hover {
    opacity: 0.85;
}

.remember-row {
    display: flex;
    align-items: center;
    margin-bottom: 24px;
}

.remember-row label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.55);
    user-select: none;
}

.remember-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #26c299;
    cursor: pointer;
}

.login-btn {
    width: 100%;
    height: 50px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(180deg, #34d399 0%, #26c299 42%, #1a9b76 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 3px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    box-shadow:
        0 6px 24px rgba(38, 194, 153, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.login-btn:hover {
    transform: translateY(-1px);
    box-shadow:
        0 10px 32px rgba(38, 194, 153, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    filter: brightness(1.04);
}

.login-btn:active {
    transform: translateY(0);
}

.login-footer {
    margin-top: 28px;
    text-align: center;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.28);
    letter-spacing: 0.5px;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 960px) {
    .login-page {
        flex-direction: column;
        gap: 32px;
        padding: 32px 20px;
        overflow-y: auto;
        height: 100vh;
    }

    .brand-panel {
        flex: none;
        max-width: 420px;
        text-align: center;
    }

    .brand-header {
        justify-content: center;
    }

    .brand-title {
        font-size: 28px;
    }

    .feature-grid {
        display: none;
    }

    body {
        overflow: auto;
    }
}
