/* ========================================
   后台登陆系统通用样式
   ======================================== */
 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB',
                'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
        }

        .login-container {
            width: 100%;
            max-width: 518px;
            padding: 20px;
        }

        .login-card {
            background: white;
            border-radius: 16px;
            padding: 40px;
            box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
        }

        .login-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .login-title {
            font-size: 24px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 8px;
        }

        .login-desc {
            color: #999;
            font-size: 14px;
        }

        .form-group {
            margin-bottom: 24px;
        }

        .form-label {
            display: block;
            margin-bottom: 8px;
            color: #2c3e50;
            font-weight: 500;
        }

        input[type="text"],
        input[type="password"],
        input[type="email"],
        input[type="tel"],
        input[type="number"],
        .form-input {
            width: 100%;
            padding: 12px 16px;
            border: 2px solid #e8e8e8;
            border-radius: 8px;
            font-size: 14px;
            line-height: 1.4;
            height: 44px;
            transition: all 0.3s ease;
            box-sizing: border-box;
            appearance: none;
            margin: 0;
        }

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

        /* 验证图标样式 */
        .validation-icon {
            position: absolute;
            right: 12px;
            top: calc((44px - 16px) / 2);
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 16px;
            opacity: 0;
            transition: opacity 0.3s;
            pointer-events: none;
        }

        .validation-icon i {
            display: block;
            font-size: 16px;
            line-height: 1;
        }

        .validation-icon.show {
            opacity: 1;
        }

        .validation-icon.success {
            color: #52c41a;
        }

        .validation-icon.error {
            color: #ff4757;
        }

        .validation-icon.warning {
            color: #faad14;
        }

        /* 表单提示样式 */
        .form-hint {
            display: block;
            font-size: 12px;
            margin-top: 6px;
            color: #999;
            transition: color 0.3s;
            min-height: 16px;
        }

        .form-hint.success {
            color: #52c41a;
        }

        .form-hint.error {
            color: #ff4757;
        }

        .form-hint.warning {
            color: #faad14;
        }

        /* 输入框验证状态样式 */
        .form-input.valid {
            border-color: #52c41a !important;
        }

        .form-input.valid:focus {
            box-shadow: 0 0 0 3px rgba(82, 196, 26, 0.1) !important;
        }

        .form-input.invalid {
            border-color: #ff4757 !important;
        }

        .form-input.invalid:focus {
            box-shadow: 0 0 0 3px rgba(255, 71, 87, 0.1) !important;
        }

        .form-input.warning {
            border-color: #faad14 !important;
        }

        .form-input.warning:focus {
            box-shadow: 0 0 0 3px rgba(250, 173, 20, 0.1) !important;
        }

        .form-options {
            display: flex;
            justify-content: space-between;
            align-items: center;
            margin-bottom: 24px;
        }

        .checkbox-label {
            display: flex;
            align-items: center;
            gap: 8px;
            cursor: pointer;
            color: #666;
            font-size: 14px;
        }

        .checkbox-label input[type="checkbox"] {
            width: 16px;
            height: 16px;
            cursor: pointer;
        }

        .forgot-link {
            color: #667eea;
            font-size: 14px;
            text-decoration: none;
        }

        .forgot-link:hover {
            text-decoration: underline;
        }

        .btn-login {
            width: 100%;
            padding: 14px;
    /* background: linear-gradient(135deg, #667eea 0%, #764ba2 100%); */
    background: linear-gradient(135deg, #273059 0%, #8c58bf 100%); 
            color: white;
            border: none;
            border-radius: 8px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s ease;
        }

        .btn-login:hover {
            transform: translateY(-2px);
            box-shadow: 0 8px 16px rgba(102, 126, 234, 0.3);
        }

        .divider {
            text-align: center;
            margin: 24px 0;
            position: relative;
        }

        .divider::before {
            content: '';
            position: absolute;
            left: 0;
            top: 50%;
            right: 0;
            height: 1px;
            background: #e8e8e8;
        }

        .divider span {
            background: white;
            padding: 0 16px;
            color: #999;
            font-size: 14px;
            position: relative;
            z-index: 1;
        }

        .social-login {
            display: flex;
            gap: 12px;
        }

        .social-btn {
            flex: 1;
            padding: 12px;
            border: 2px solid #e8e8e8;
            border-radius: 8px;
            background: white;
            cursor: pointer;
            font-size: 14px;
            color: #666;
            transition: all 0.3s ease;
        }

        .social-btn:hover {
            border-color: #667eea;
            color: #667eea;
        }

/* ========================================
   登录页面专用样式 - 配合母版页
   ======================================== */

.login-page-wrapper {
    min-height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    background: linear-gradient(135deg, #273059 0%, #8c58bf 100%);
}

.login-container {
    width: 100%;
    max-width: 450px;
}

.login-card {
    background: white;
    border-radius: 24px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.25);
    padding: 50px 40px;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-header .logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    border-radius: 50%;
}

/* 按钮样式与主题一致 */
.btn-login {
    background: linear-gradient(135deg, #273059, #8c58bf) !important;
}

.btn-login:hover {
    box-shadow: 0 8px 16px rgba(140, 88, 191, 0.4) !important;
}

/* 焦点样式 */
.form-input:focus {
    border-color: #8c58bf !important;
    box-shadow: 0 0 0 3px rgba(140, 88, 191, 0.1) !important;
}

.forgot-link {
    color: #8c58bf !important;
}

@media (max-width: 480px) {
    .login-card {
        padding: 30px 20px;
    }
}