/* 登录页现代化样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    height: 100%;
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    overflow: hidden;
}

/* 背景装饰 */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at 30% 20%, rgba(255,255,255,0.1) 0%, transparent 50%),
                radial-gradient(ellipse at 70% 80%, rgba(255,255,255,0.08) 0%, transparent 40%);
    pointer-events: none;
}

.login-div {
    width: 420px;
    padding: 48px 40px 36px;
    border-radius: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15),
                0 0 0 1px rgba(255, 255, 255, 0.1);
}

.login-div h2 {
    text-align: center;
    font-size: 26px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 32px;
    letter-spacing: 2px;
}

.login-div h2::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 2px;
    margin: 12px auto 0;
}

.layui-form-item {
    margin-bottom: 20px;
}

.layui-form-label {
    width: 70px;
    padding: 9px 5px;  /* 收窄左右内边距，保证"用户名"三个字能在一行内显示 */
    font-weight: 500;
    color: #4b5563;
    font-size: 14px;
    white-space: nowrap;  /* 禁止标签文字换行 */
}

.layui-input-block {
    margin-left: 80px;
}

.layui-input {
    height: 42px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 0 14px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #f9fafb;
}

.layui-input:focus {
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    background: #fff;
}

.login-bt {
    width: 100%;
    height: 44px;
    margin-left: 0 !important;
    margin-top: 12px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.35);
}

.login-bt:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.45);
}

.login-bt:active {
    transform: translateY(0);
}
