* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    -webkit-tap-highlight-color: transparent;
}

#star-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

#LAY_app {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.login-wrapper {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 60px 70px;
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

.layadmin-user-login-system {
    flex: 1;
    text-align: left;
    padding-right: 40px;
}

.layadmin-user-login-system .system-name {
    color: #ffffff;
    font-size: 48px;
    font-weight: bold;
    text-shadow: 0 0 30px rgba(100, 200, 255, 0.8), 0 0 60px rgba(100, 200, 255, 0.4);
    letter-spacing: 8px;
    animation: titleGlow 3s ease-in-out infinite;
    line-height: 1.3;
}

.layadmin-user-login-system .system-subtitle {
    color: rgba(255, 255, 255, 0.7);
    font-size: 18px;
    margin-top: 20px;
    letter-spacing: 4px;
}

@keyframes titleGlow {
    0%, 100% { text-shadow: 0 0 30px rgba(100, 200, 255, 0.8), 0 0 60px rgba(100, 200, 255, 0.4); }
    50% { text-shadow: 0 0 50px rgba(100, 200, 255, 1), 0 0 100px rgba(100, 200, 255, 0.6), 0 0 150px rgba(100, 200, 255, 0.3); }
}

.layadmin-user-login-main {
    width: 380px;
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
    padding: 40px 35px;
    animation: panelFadeIn 0.6s ease-out;
}

@keyframes panelFadeIn {
    from { opacity: 0; transform: translateX(30px); }
    to { opacity: 1; transform: translateX(0); }
}

.layadmin-user-login-header {
    margin-bottom: 30px;
}

.layadmin-user-login-header p {
    font-size: 22px;
    font-weight: 600;
    color: #333;
    text-align: center;
}

.layui-form-item {
    margin-bottom: 20px;
    position: relative;
}

.layui-form-item .layui-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    color: #999;
}

.layui-input {
    height: 48px;
    line-height: 48px;
    padding: 0 15px 0 42px;
    font-size: 15px;
    border-radius: 8px;
    border: 1px solid #e8e8e8;
    transition: all 0.3s ease;
    width: 100%;
}

.layui-input:focus {
    border-color: #1890ff;
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.15);
}

.layui-btn {
    height: 48px;
    line-height: 48px;
    font-size: 16px;
    border-radius: 8px;
    width: 100%;
    background: linear-gradient(135deg, #1890ff 0%, #36cfc9 100%);
    border: none;
    margin-top: 5px;
}

.layui-btn:hover {
    background: linear-gradient(135deg, #40a9ff 0%, #36cfc9 100%);
}

.captcha-item {
    position: relative;
}

.captcha-item .layui-input {
    padding-right: 120px;
}

.captcha-item img {
    position: absolute;
    right: 4px;
    top: 4px;
    height: 40px;
    width: 100px;
    cursor: pointer;
    border-radius: 6px;
}

.layui-form-item label.error {
    color: #ff4d4f;
    font-size: 12px;
    margin-top: 5px;
    display: block;
}

.layui-form-item:last-child {
    margin-bottom: 0;
}

.leoweather2 {
    height: 50px;
    line-height: 50px;
    text-align: center;
    background: rgba(0, 0, 0, 0.4);
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    z-index: 2;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    padding: 0 15px;
}

@media only screen and (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding: 40px 15px 60px;
        gap: 40px;
        min-height: calc(100vh - 110px);
    }
    
    .layadmin-user-login-system {
        width: 100%;
        text-align: center;
        padding-right: 0;
        padding-left: 0;
    }
    
    .layadmin-user-login-system .system-name {
        font-size: 30px;
        letter-spacing: 4px;
    }
    
    .layadmin-user-login-system .system-subtitle {
        font-size: 14px;
        margin-top: 12px;
    }
    
    .layadmin-user-login-main {
        width: 100%;
        max-width: 360px;
        padding: 30px 25px;
        animation-name: panelFadeInMobile;
    }
    
    @keyframes panelFadeInMobile {
        from { opacity: 0; transform: translateY(20px); }
        to { opacity: 1; transform: translateY(0); }
    }
    
    .layadmin-user-login-header p {
        font-size: 18px;
    }
    
    .layui-form-item {
        margin-bottom: 16px;
    }
    
    .layui-input {
        height: 44px;
        line-height: 44px;
        font-size: 14px;
    }
    
    .layui-btn {
        height: 44px;
        line-height: 44px;
        font-size: 15px;
    }
    
    .leoweather2 {
        height: 42px;
        line-height: 42px;
        font-size: 11px;
    }
}

@media only screen and (max-width: 480px) {
    .login-wrapper {
        padding: 20px 15px 50px;
        gap: 25px;
    }
    
    .layadmin-user-login-system .system-name {
        font-size: 26px;
        letter-spacing: 3px;
    }
    
    .layadmin-user-login-system .system-subtitle {
        font-size: 12px;
        margin-top: 10px;
    }
    
    .layadmin-user-login-main {
        padding: 25px 20px;
        border-radius: 12px;
    }
    
    .layadmin-user-login-header p {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .layui-form-item {
        margin-bottom: 14px;
    }
    
    .layui-input {
        height: 42px;
        line-height: 42px;
        font-size: 14px;
        padding-left: 38px;
    }
    
    .layui-form-item .layui-icon {
        font-size: 16px;
        left: 10px;
    }
    
    .layui-btn {
        height: 42px;
        line-height: 42px;
        font-size: 15px;
    }
    
    .captcha-item .layui-input {
        padding-right: 100px;
    }
    
    .captcha-item img {
        width: 85px;
        height: 34px;
        right: 3px;
        top: 4px;
    }
    
    .leoweather2 {
        height: 38px;
        line-height: 38px;
        font-size: 10px;
    }
}

@media only screen and (max-width: 360px) {
    .login-wrapper {
        padding: 12px 10px 45px;
    }
    
    .layadmin-user-login-system .system-name {
        font-size: 20px;
        letter-spacing: 2px;
    }
    
    .layadmin-user-login-system .system-subtitle {
        font-size: 11px;
    }
    
    .layadmin-user-login-main {
        padding: 20px 15px;
    }
    
    .captcha-item .layui-input {
        padding-right: 85px;
    }
    
    .captcha-item img {
        width: 75px;
        height: 30px;
    }
}