/* 全局样式 - 整合自PHP内联样式 + 原有基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
}

body {
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

/* 系统主标题 - 来自PHP内联样式 */
.system-title {
    color: #ffffff;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.system-title h1 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.system-title p {
    font-size: 1rem;
    opacity: 0.8;
}

/* 表单卡片 - 整合优化版样式 */
.form-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    padding: 40px 35px;
    width: 100%;
    max-width: 450px;
    position: relative;
    overflow: hidden;
}

/* 表单项基础样式 */
.form-item {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 500;
    font-size: 0.95rem;
}

/* 输入框样式 - 整合优化版 */
.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 0.95rem;
    color: #333;
    outline: none;
    transition: all 0.3s ease;
}

.form-input::placeholder {
    color: #9ca3af;
}

.form-input:focus {
    outline: none;
    border-color: #2a5298;
    box-shadow: 0 0 0 3px rgba(42, 82, 152, 0.1);
}

/* 切换栏样式 - 整合优化版 */
.btn-toggle {
    color: #2a5298;
    cursor: pointer;
    font-size: 1.3rem;
}

.btn-toggle.active {
    font-weight: 600;
    padding-bottom: 8px;
    border-bottom: 3px solid #2a5298;
}

.toggle-bar {
    text-align: center;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    justify-content: center;
}

/* 提交按钮 - 整合优化版 */
.btn-submit {
    width: 100%;
    background: #2a5298;
    color: white;
    border: none;
    padding: 13px 0;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    margin-bottom: 12px;
    transition: all 0.3s ease;
}

.btn-submit:disabled {
    background: #cccccc;
    cursor: not-allowed;
}

.btn-submit:not(:disabled):hover {
    background: #1e3c72;
    box-shadow: 0 5px 15px rgba(30, 60, 114, 0.3);
}

/* 错误提示 - 整合版 */
.error-msg {
    height: 20px;
    color: #dc2626;
    font-size: 0.85rem;
    margin-bottom: 20px;
    text-align: center;
    min-height: 18px;
}

/* 滑块验证样式 - 整合优化版 */
.slider-wrap {
    width: 100%;
    height: 50px;
    line-height: 50px;
    background: #f5f5f5;
    position: relative;
    margin: 15px 0 25px;
    border-radius: 8px;
    overflow: hidden;
    user-select: none;
}

.slider-bg {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 0%;
    background: #67c23a;
    z-index: 1;
    border-radius: 8px;
}

.slider-text {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    text-align: center;
    font-size: 0.9rem;
    color: #666;
    z-index: 2;
    pointer-events: none;
}

.slider-btn {
    width: 50px;
    height: 100%;
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    position: absolute;
    left: 0;
    top: 0;
    cursor: grab;
    text-align: center;
    line-height: 50px;
    font-size: 18px;
    box-sizing: border-box;
    z-index: 3;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: box-shadow 0.2s ease;
}

.slider-btn:hover {
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.slider-btn:active {
    cursor: grabbing;
}

.slider-success .slider-text {
    color: #fff;
}

.slider-success .slider-btn {
    background: #67c23a;
    color: #fff;
    border-color: #67c23a;
}

/* 版权信息 - 来自PHP内联样式 */
.copyright {
    margin-top: 40px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
    text-align: center;
}

/* 通用隐藏类 */
.hidden {
    display: none;
}

/* ==================== 移动端响应式优化（核心修改） ==================== */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }

    /* 缩小系统标题 */
    .system-title {
        margin-bottom: 20px;
    }

    .system-title h1 {
        font-size: 1.5rem; /* 从2.2rem缩小到1.5rem */
        margin-bottom: 5px;
    }

    .system-title p {
        font-size: 0.85rem; /* 从1rem缩小到0.85rem */
    }

    /* 缩小登录卡片 */
    .form-card {
        padding: 25px 20px; /* 从40px 35px缩小到25px 20px */
        max-width: 92%; /* 左右留边距，不要占满屏幕 */
        border-radius: 12px; /* 稍微减小圆角 */
    }

    /* 缩小切换栏 */
    .toggle-bar {
        margin-bottom: 20px;
    }

    .btn-toggle {
        font-size: 1.1rem; /* 从1.3rem缩小到1.1rem */
    }

    .btn-toggle.active {
        padding-bottom: 5px;
        border-bottom-width: 2px;
    }

    /* 缩小表单项 */
    .form-item {
        margin-bottom: 18px; /* 从25px缩小到18px */
    }

    .form-label {
        font-size: 0.85rem; /* 从0.95rem缩小到0.85rem */
        margin-bottom: 6px;
    }

    .form-input {
        padding: 10px 12px; /* 从12px 15px缩小到10px 12px */
        font-size: 0.85rem; /* 从0.95rem缩小到0.85rem */
        border-radius: 6px;
    }

    /* 缩小滑块验证 */
    .slider-wrap {
        height: 42px; /* 从50px缩小到42px */
        line-height: 42px;
        margin: 12px 0 20px;
        border-radius: 6px;
    }

    .slider-btn {
        width: 42px; /* 从50px缩小到42px */
        font-size: 16px; /* 从18px缩小到16px */
    }

    .slider-text {
        font-size: 0.8rem; /* 从0.9rem缩小到0.8rem */
    }

    /* 缩小登录按钮 */
    .btn-submit {
        padding: 11px 0; /* 从13px 0缩小到11px 0 */
        font-size: 0.9rem; /* 从1rem缩小到0.9rem */
        border-radius: 6px;
    }

    /* 缩小错误提示 */
    .error-msg {
        font-size: 0.75rem; /* 从0.85rem缩小到0.75rem */
        height: 16px;
        margin-bottom: 15px;
    }

    /* 缩小版权信息 */
    .copyright {
        margin-top: 30px;
        font-size: 0.75rem; /* 从0.9rem缩小到0.75rem */
    }
}