
body {
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    height: 100vh;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}
main.container{
    height: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.login-container {
    /* min-height: 100vh; */
    display: flex;
    align-items: center;
    justify-content: center;
    /* 备选深色渐变方案，如果用户觉得太亮可以切换 */
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
}

.login-card {
    max-width: 420px;
    width: 90%;
    padding: 2.5rem;
    background: rgba(255, 255, 255, 0.98);
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.login-card h2 {
    color: #2c3e50;
    font-weight: 700;
    margin-bottom: 2rem !important;
    letter-spacing: -0.5px;
}

.form-label {
    font-weight: 600;
    color: #495057;
    font-size: 0.95rem;
    margin-bottom: 0.5rem;
}

.form-control {
    padding: 0.75rem 1rem;
    border-radius: 8px;
    border: 1px solid #ced4da;
    background-color: #f8f9fa;
    transition: all 0.2s ease-in-out;
    font-size: 1rem;
}

.form-control:focus {
    background-color: #fff;
    border-color: #0d6efd;
    box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.15);
    outline: none;
}

/* 滑块验证区域 */
.slider-captcha {
    width: 100%;
    height: 48px;
    background-color: #f8f9fa;
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
    user-select: none;
    border: 1px solid #ced4da; /* 增加边框使其与输入框风格一致 */
}

.slider-handle {
    width: 54px;
    height: 100%;
    background-color: #0d6efd; /* 改为蓝色背景 */
    position: absolute;
    top: 0;
    left: 0;
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff; /* 改为白色图标 */
    box-shadow: 2px 0 8px rgba(13, 110, 253, 0.3); /* 调整阴影颜色 */
    transition: background-color 0.2s, color 0.2s;
    z-index: 10; /* 确保在文字之上 */
    border-right: 1px solid rgba(0,0,0,0.05);
}

.slider-handle:active {
    cursor: grabbing;
    background-color: #0b5ed7; /* 按下时加深 */
}

/* 滑块箭头图标 */
.slider-handle::after {
    content: '→';
    font-family: system-ui, sans-serif;
    font-size: 20px;
    font-weight: bold;
    display: block;
    line-height: 1;
}

.slider-text {
    font-size: 14px;
    color: #888;
    z-index: 5;
    pointer-events: none; /* 防止文字阻挡鼠标事件 */
    white-space: nowrap;
    transition: color 0.3s;
    font-weight: 500;
}

/* 验证成功状态 */
.slider-success {
    background-color: #d1e7dd;
    transition: background-color 0.4s;
}

.slider-success .slider-handle {
    background-color: #198754;
    color: #fff;
    border-right: none;
}

.slider-success .slider-handle::after {
    content: '✓';
    font-size: 22px;
}

.slider-success .slider-text {
    color: #0f5132;
    /* 成功后让文字更清晰 */
}

/* 登录按钮 */
#loginBtn {
    padding: 0.8rem;
    font-size: 1.05rem;
    font-weight: 600;
    border-radius: 8px;
    margin-top: 1.5rem;
    transition: all 0.2s;
    letter-spacing: 0.5px;
}

#loginBtn:not(:disabled):hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(13, 110, 253, 0.25);
}

#loginBtn:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}
